Skip to content

Commit

Permalink
feat: laminas coding standard 2.2.0
Browse files Browse the repository at this point in the history
Signed-off-by: Geert Eltink <geert.eltink@gmail.com>
  • Loading branch information
geerteltink committed May 15, 2021
1 parent 3b03af2 commit f4409b8
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 12 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/.phpcs-cache
/.phpunit.result.cache
/clover.xml
/coveralls-upload.json
/phpunit.xml
/vendor/
.phpunit.result.cache
7 changes: 5 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@
"forum": "https://discourse.laminas.dev"
},
"config": {
"sort-packages": true
"sort-packages": true,
"platform": {
"php": "7.4"
}
},
"extra": {
"laminas": {
Expand All @@ -37,7 +40,7 @@
},
"require-dev": {
"ext-json": "*",
"laminas/laminas-coding-standard": "~2.1.0",
"laminas/laminas-coding-standard": "~2.2.0",
"laminas/laminas-diactoros": "^2.5.0",
"mockery/mockery": "^1.4.2",
"phpspec/prophecy-phpunit": "^2.0",
Expand Down
16 changes: 9 additions & 7 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 14 additions & 2 deletions phpcs.xml.dist
Original file line number Diff line number Diff line change
@@ -1,8 +1,20 @@
<?xml version="1.0"?>
<ruleset name="Laminas coding standard">
<rule ref="LaminasCodingStandard" />
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="vendor/squizlabs/php_codesniffer/phpcs.xsd">

<arg name="basepath" value="."/>
<arg name="cache" value=".phpcs-cache"/>
<arg name="colors"/>
<arg name="extensions" value="php"/>
<arg name="parallel" value="80"/>

<!-- Show progress -->
<arg value="p"/>

<!-- Paths to check -->
<file>src</file>
<file>test</file>

<!-- Include all rules from the Laminas Coding Standard -->
<rule ref="LaminasCodingStandard"/>
</ruleset>

0 comments on commit f4409b8

Please sign in to comment.