Skip to content
This repository was archived by the owner on Feb 6, 2020. It is now read-only.

Commit 6ed63fd

Browse files
committed
Merge branch 'hotfix/license-docblocks-etc' into develop
Close #157
2 parents cd97cd1 + b7e5cce commit 6ed63fd

File tree

68 files changed

+183
-247
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+183
-247
lines changed

.travis.yml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,15 @@ env:
2222
- secure: "KoLcNj22t668IhAhm5ej6DNf23waoGrZpQ1kmuq5ptTqsXjFjy/cjOJCvWOeRX62Tl2kjc7co9UeK0f91osZ2Wq7HLb+1bIXX5SrB6SfyPUajCQtCtu0xGgEKZfuQwzLWSYoR3tsaD6vqgMjKwwst10d+AyICjdLNu9dHtdu9HpozZtK3kM9+0FwMOiRqFEND2GY05oVYXOrzgu1xNmE1YEGpjKzqqBNpqFOP4W+OnTMRTQcyrlbFzOFvAip7X3GGw9iUSnSzZTnIOWJgMdah8/eFqhrPO8O73faW+/v3ZTxdwupOEZyg7s3TD6+W9rjmN+TgOZEP484PcSlUc6sXA4QM4iL8xthG3bWk8+CDrsnuQmunrXz7T5xUEHs/7B8NuGJ8yT89fMCYGySERKIfCx17+N9kP/848A/+39LE1NIlTxnaPISfm9WMNG67xsEKyJluC/YataPGl0zZ6/7Q7w1oDYvjhsqooUsxKRD2/psd1zrVDJurDa7Ayv/E21u2dIDtbp6w9Zl+he+kwRItMNhtCdzyShqtuY0V/JRmn2lZY2PsfbICRXXAbQnDveNFYz5tE2K40Qm4RWrdZ4cnaLiNJeukdYKVJCFHtZr9rdx1uVeK78Pf5o3rt4S8S1aat35eMZQunc6s4gmeXU5+wIxwXiyOtkdlL3LztSox9s="
2323

2424
matrix:
25-
fast_finish: true
2625
include:
2726
- php: 5.6
2827
env:
29-
- EXECUTE_TEST_COVERALLS=true
28+
- TEST_COVERAGE=true
3029
- DEPLOY_DOCS="$(if [[ $TRAVIS_BRANCH == 'master' && $TRAVIS_PULL_REQUEST == 'false' ]]; then echo -n 'true' ; else echo -n 'false' ; fi)"
3130
- PATH="$HOME/.local/bin:$PATH"
3231
- php: 7
3332
env:
34-
- EXECUTE_CS_CHECK=true
33+
- CS_CHECK=true
3534
- php: hhvm
3635
allow_failures:
3736
- php: hhvm
@@ -41,21 +40,21 @@ notifications:
4140
email: false
4241

4342
before_install:
44-
- if [[ $EXECUTE_TEST_COVERALLS != 'true' ]]; then phpenv config-rm xdebug.ini || return 0 ; fi
43+
- if [[ $TEST_COVERAGE != 'true' ]]; then phpenv config-rm xdebug.ini || return 0 ; fi
4544
- composer self-update
46-
- if [[ $EXECUTE_TEST_COVERALLS == 'true' ]]; then composer require --dev --no-update satooshi/php-coveralls:^1.0 ; fi
45+
- if [[ $TEST_COVERAGE == 'true' ]]; then composer require --dev --no-update satooshi/php-coveralls:^1.0 ; fi
4746

4847
install:
4948
- travis_retry composer install --no-interaction
5049

5150
script:
52-
- if [[ $EXECUTE_TEST_COVERALLS == 'true' ]]; then ./vendor/bin/phpunit --coverage-clover clover.xml ; fi
53-
- if [[ $EXECUTE_TEST_COVERALLS != 'true' ]]; then ./vendor/bin/phpunit ; fi
54-
- if [[ $EXECUTE_CS_CHECK == 'true' ]]; then ./vendor/bin/phpcs ; fi
51+
- if [[ $TEST_COVERAGE == 'true' ]]; then composer test-coverage ; fi
52+
- if [[ $TEST_COVERAGE != 'true' ]]; then composer test ; fi
53+
- if [[ $CS_CHECK == 'true' ]]; then composer cs-check ; fi
5554
- if [[ $DEPLOY_DOCS == "true" && "$TRAVIS_TEST_RESULT" == "0" ]]; then wget -O theme-installer.sh "https://raw.githubusercontent.com/zendframework/zf-mkdoc-theme/master/theme-installer.sh" ; chmod 755 theme-installer.sh ; ./theme-installer.sh ; fi
5655

5756
after_success:
5857
- if [[ $DEPLOY_DOCS == "true" ]]; then echo "Preparing to build and deploy documentation" ; ./zf-mkdoc-theme/deploy.sh ; echo "Completed deploying documentation" ; fi
5958

6059
after_script:
61-
- if [[ $EXECUTE_TEST_COVERALLS == 'true' ]]; then ./vendor/bin/coveralls -v ; fi
60+
- if [[ $TEST_COVERAGE == 'true' ]]; then composer upload-coverage ; fi

CONTRIBUTING.md

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,13 @@ To run tests:
6262

6363
If you don't have `curl` installed, you can also download `composer.phar` from https://getcomposer.org/
6464

65-
- Run the tests via `phpunit` and the provided PHPUnit config, like in this example:
65+
- Run the tests:
6666

6767
```console
68-
$ ./vendor/bin/phpunit
68+
$ composer test
6969
```
7070

71-
You can turn on conditional tests with the phpunit.xml file.
71+
You can turn on conditional tests with the `phpunit.xml` file.
7272
To do so:
7373

7474
- Copy `phpunit.xml.dist` file to `phpunit.xml`
@@ -77,24 +77,23 @@ To do so:
7777

7878
## Running Coding Standards Checks
7979

80-
This component uses [phpcs](https://github.com/squizlabs/PHP_CodeSniffer) for coding
81-
standards checks, and provides configuration for our selected checks.
82-
`phpcs` is installed by default via Composer.
80+
This component follows [PSR-1](http://www.php-fig.org/psr/psr-1/) and
81+
[PSR-2](http://www.php-fig.org/psr/psr-2/) guidelines, and ships with tooling
82+
for both checking code against standards, as well as fixing most errors.
8383

8484
To run checks only:
8585

8686
```console
87-
$ ./vendor/bin/phpcs
87+
$ composer cs-check
8888
```
8989

90-
`phpcs` provides another tool, `phpcbf`, that can automatically fix many common
91-
problems:
90+
To fix common errors:
9291

9392
```console
94-
$ ./vendor/bin/phpcbf
93+
$ composer cs-fix
9594
```
9695

97-
If you allow `phpcbf` to fix CS issues, please re-run the tests to ensure
96+
If you allow tooling to fix CS issues, please re-run the tests to ensure
9897
they pass, and make sure you add and commit the changes after verification.
9998

10099
## Recommended Workflow for Contributions

LICENSE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2005-2015, Zend Technologies USA, Inc.
1+
Copyright (c) 2005-2016, Zend Technologies USA, Inc.
22

33
All rights reserved.
44

benchmarks/BenchAsset/AbstractFactoryFoo.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
<?php
2+
/**
3+
* @link http://github.com/zendframework/zend-servicemanager for the canonical source repository
4+
* @copyright Copyright (c) 2016 Zend Technologies USA Inc. (http://www.zend.com)
5+
* @license http://framework.zend.com/license/new-bsd New BSD License
6+
*/
7+
28
namespace ZendBench\ServiceManager\BenchAsset;
39

410
use Zend\ServiceManager\Factory\AbstractFactoryInterface;
@@ -18,5 +24,4 @@ public function canCreate(ContainerInterface $container, $requestedName)
1824
{
1925
return ($requestedName === 'foo');
2026
}
21-
2227
}

benchmarks/BenchAsset/Bar.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
<?php
2+
/**
3+
* @link http://github.com/zendframework/zend-servicemanager for the canonical source repository
4+
* @copyright Copyright (c) 2016 Zend Technologies USA Inc. (http://www.zend.com)
5+
* @license http://framework.zend.com/license/new-bsd New BSD License
6+
*/
7+
28
namespace ZendBench\ServiceManager\BenchAsset;
39

410
class Bar

benchmarks/BenchAsset/FactoryFoo.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
<?php
2+
/**
3+
* @link http://github.com/zendframework/zend-servicemanager for the canonical source repository
4+
* @copyright Copyright (c) 2016 Zend Technologies USA Inc. (http://www.zend.com)
5+
* @license http://framework.zend.com/license/new-bsd New BSD License
6+
*/
7+
28
namespace ZendBench\ServiceManager\BenchAsset;
39

410
use Zend\ServiceManager\Factory\FactoryInterface;

benchmarks/BenchAsset/Foo.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
<?php
2+
/**
3+
* @link http://github.com/zendframework/zend-servicemanager for the canonical source repository
4+
* @copyright Copyright (c) 2016 Zend Technologies USA Inc. (http://www.zend.com)
5+
* @license http://framework.zend.com/license/new-bsd New BSD License
6+
*/
7+
28
namespace ZendBench\ServiceManager\BenchAsset;
39

410
class Foo

benchmarks/FetchCachedServicesBench.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
<?php
2+
/**
3+
* @link http://github.com/zendframework/zend-servicemanager for the canonical source repository
4+
* @copyright Copyright (c) 2016 Zend Technologies USA Inc. (http://www.zend.com)
5+
* @license http://framework.zend.com/license/new-bsd New BSD License
6+
*/
27

38
namespace ZendBench\ServiceManager;
49

benchmarks/FetchNewServiceManagerBench.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
<?php
2+
/**
3+
* @link http://github.com/zendframework/zend-servicemanager for the canonical source repository
4+
* @copyright Copyright (c) 2016 Zend Technologies USA Inc. (http://www.zend.com)
5+
* @license http://framework.zend.com/license/new-bsd New BSD License
6+
*/
27

38
namespace ZendBench\ServiceManager;
49

benchmarks/FetchNewServicesBench.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
<?php
2+
/**
3+
* @link http://github.com/zendframework/zend-servicemanager for the canonical source repository
4+
* @copyright Copyright (c) 2016 Zend Technologies USA Inc. (http://www.zend.com)
5+
* @license http://framework.zend.com/license/new-bsd New BSD License
6+
*/
27

38
namespace ZendBench\ServiceManager;
49

0 commit comments

Comments
 (0)