Skip to content

Commit 416fcfe

Browse files
committed
Merge pull request #3 from ray-di/stable
cleanup for stable release
2 parents 9d45dcc + b0d2594 commit 416fcfe

22 files changed

+114
-99
lines changed

.php_cs

Lines changed: 36 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,39 @@
11
<?php
2-
$config = Symfony\CS\Config\Config::create();
3-
$config->level(null);
4-
$config->fixers(
5-
array(
6-
'indentation',
7-
'linefeed',
8-
'trailing_spaces',
9-
'short_tag',
10-
'visibility',
11-
'php_closing_tag',
12-
'braces',
13-
'function_declaration',
14-
'psr0',
15-
'elseif',
16-
'eof_ending',
17-
'unused_use',
18-
)
2+
$finder = Symfony\CS\Finder\DefaultFinder::create()
3+
->in(__DIR__);
4+
5+
$config = Symfony\CS\Config\Config::create()
6+
->level(Symfony\CS\FixerInterface::PSR2_LEVEL)
7+
->finder($finder)
8+
->fixers(
9+
[
10+
'blankline_after_open_tag',
11+
'extra_empty_lines',
12+
'no_blank_lines_after_class_opening',
13+
'no_empty_lines_after_phpdocs',
14+
'operators_spaces',
15+
'duplicate_semicolon',
16+
'namespace_no_leading_whitespace',
17+
'phpdoc_indent',
18+
'phpdoc_no_empty_return',
19+
'phpdoc_no_package',
20+
'phpdoc_params',
21+
'phpdoc_separation',
22+
'phpdoc_to_comment',
23+
'phpdoc_trim',
24+
'phpdoc_var_without_name',
25+
'remove_leading_slash_use',
26+
'remove_lines_between_uses',
27+
'return',
28+
'single_array_no_trailing_comma',
29+
'single_quote',
30+
'spaces_before_semicolon',
31+
'spaces_cast',
32+
'standardize_not_equal',
33+
'ternary_spaces',
34+
'whitespacy_lines',
35+
'ordered_use',
36+
'short_array_syntax'
37+
]
1938
);
2039
return $config;

.travis.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,14 @@ php:
44
- 5.5
55
- 5.6
66
- hhvm
7+
- 7
78

8-
before_script:
9-
- wget https://scrutinizer-ci.com/ocular.phar
10-
- composer install --prefer-source
9+
install: travis_retry composer install --no-interaction --prefer-source
1110

1211
script:
13-
- phpunit --coverage-text --coverage-clover=coverage.clover
12+
- if [ "$TRAVIS_PHP_VERSION" == "hhvm" ]; then phpunit; fi
13+
- if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then phpunit --coverage-text --coverage-clover=coverage.clover; fi
1414

1515
after_script:
16-
- php ocular.phar code-coverage:upload --format=php-clover coverage.clover
16+
- wget https://scrutinizer-ci.com/ocular.phar
17+
- if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then php ocular.phar code-coverage:upload --format=php-clover coverage.clover; fi

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2015 Akihito Koriyama
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in
13+
all copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21+
THE SOFTWARE.

Licence.txt

Lines changed: 0 additions & 24 deletions
This file was deleted.

composer.json

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,13 @@
22
"name": "ray/web-param-module",
33
"description":"Binds the value(s) of a web context to method parameter.",
44
"keywords":[
5-
"Ray.Di Module", "Web context", "Testability"
5+
"Ray.Di Module", "Web context", "Testability"
66
],
7-
"license": "BSD-3-Clause",
7+
"license": "MIT",
8+
"require": {
9+
"ray/di": "~2.0",
10+
"doctrine/cache": "~1.0"
11+
},
812
"autoload":{
913
"psr-4":{
1014
"Ray\\WebContextParam\\": "src/"
@@ -16,16 +20,5 @@
1620
"Ray\\WebContextParam\\": "tests/",
1721
"Ray\\WebContextParam\\": "tests/Fake"
1822
}
19-
},
20-
"minimum-stability": "dev",
21-
"prefer-stable": true,
22-
"extra": {
23-
"branch-alias": {
24-
"dev-develop": "0.1.x-dev"
25-
}
26-
},
27-
"require": {
28-
"ray/di": "~2.0@dev",
29-
"doctrine/cache": "~1.0"
3023
}
3124
}

phpmd.xml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1-
<ruleset xmlns="http://pmd.sf.net/ruleset/1.0.0"
1+
<ruleset
2+
xmlns="http://pmd.sf.net/ruleset/1.0.0"
23
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
34
xsi:schemaLocation="http://pmd.sf.net/ruleset/1.0.0 http://pmd.sf.net/ruleset_xml_schema.xsd"
45
xsi:noNamespaceSchemaLocation="http://pmd.sf.net/ruleset_xml_schema.xsd">
6+
<description>PHP.Skeleton rule set</description>
57
<!--codesize-->
68
<rule ref="rulesets/codesize.xml/CyclomaticComplexity" />
79
<rule ref="rulesets/codesize.xml/NPathComplexity" />

src/Annotation/AbstractWebContextParam.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?php
22
/**
3-
* This file is part of the Ray.WebContextParam
3+
* This file is part of the Ray.WebContextParam.
44
*
5-
* @license http://opensource.org/licenses/bsd-license.php BSD
5+
* @license http://opensource.org/licenses/bsd-license.php MIT
66
*/
77
namespace Ray\WebContextParam\Annotation;
88

src/Annotation/CookieParam.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?php
22
/**
3-
* This file is part of the Ray.WebContextParam
3+
* This file is part of the Ray.WebContextParam.
44
*
5-
* @license http://opensource.org/licenses/bsd-license.php BSD
5+
* @license http://opensource.org/licenses/bsd-license.php MIT
66
*/
77
namespace Ray\WebContextParam\Annotation;
88

src/Annotation/EnvParam.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?php
22
/**
3-
* This file is part of the Ray.WebContextParam
3+
* This file is part of the Ray.WebContextParam.
44
*
5-
* @license http://opensource.org/licenses/bsd-license.php BSD
5+
* @license http://opensource.org/licenses/bsd-license.php MIT
66
*/
77
namespace Ray\WebContextParam\Annotation;
88

src/Annotation/FormParam.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?php
22
/**
3-
* This file is part of the Ray.WebContextParam
3+
* This file is part of the Ray.WebContextParam.
44
*
5-
* @license http://opensource.org/licenses/bsd-license.php BSD
5+
* @license http://opensource.org/licenses/bsd-license.php MIT
66
*/
77
namespace Ray\WebContextParam\Annotation;
88

0 commit comments

Comments
 (0)