-
-
Notifications
You must be signed in to change notification settings - Fork 510
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #294 from marcosmarcolin/refactor-phpcs-part-1
refactor: code improvements with php_codesniffer without affecting logic, part 1
- Loading branch information
Showing
27 changed files
with
1,302 additions
and
1,415 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,4 @@ | |
/docs/ export-ignore | ||
/examples/ export-ignore | ||
/tests/ export-ignore | ||
/phpcs.xml export-ignore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,29 @@ | ||
{ | ||
"name" : "workerman/phpsocket.io", | ||
"type" : "library", | ||
"keywords": ["socket.io"], | ||
"homepage": "http://www.workerman.net", | ||
"license" : "MIT", | ||
"require": { | ||
"workerman/workerman" : "^4.0.0", | ||
"workerman/channel" : ">=1.0.0" | ||
}, | ||
"autoload": { | ||
"psr-4": {"PHPSocketIO\\": "./src"} | ||
"name": "workerman/phpsocket.io", | ||
"description": "A server side alternative implementation of socket.io in PHP based on Workerman", | ||
"type": "library", | ||
"keywords": [ | ||
"socket.io", | ||
"phpsocket.io", | ||
"workerman", | ||
"sockets", | ||
"async", | ||
"stream", | ||
"server", | ||
"non-blocking" | ||
], | ||
"homepage": "https://www.workerman.net", | ||
"license": "MIT", | ||
"require": { | ||
"workerman/workerman": "^4.0.0", | ||
"workerman/channel": ">=1.0.0" | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
"PHPSocketIO\\": "./src" | ||
} | ||
}, | ||
"require-dev": { | ||
"squizlabs/php_codesniffer": "^3.7" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?xml version="1.0"?> | ||
<ruleset name="PHPSocket.io Coding Standard"> | ||
<description>PHPSocket.io Coding Standard</description> | ||
|
||
<!-- display progress --> | ||
<arg value="p"/> | ||
<arg name="colors"/> | ||
|
||
<exclude-pattern>*/tests/*</exclude-pattern> | ||
<exclude-pattern>*/vendor/*</exclude-pattern> | ||
<exclude-pattern>*/examples/*</exclude-pattern> | ||
|
||
<!-- inherit rules from: --> | ||
<rule ref="PSR2"/> | ||
<rule ref="Generic.Files.LineLength"> | ||
<properties> | ||
<property name="lineLimit" value="200"/> | ||
<property name="absoluteLineLimit" value="0"/> | ||
</properties> | ||
</rule> | ||
<rule ref="Generic.Arrays.DisallowLongArraySyntax"/> | ||
<rule ref="Generic.Formatting.SpaceAfterNot"/> | ||
<rule ref="Squiz.WhiteSpace.OperatorSpacing"> | ||
<properties> | ||
<property name="ignoreNewlines" value="true"/> | ||
</properties> | ||
</rule> | ||
<rule ref="Squiz.WhiteSpace.SuperfluousWhitespace"> | ||
<properties> | ||
<property name="ignoreBlankLines" value="false"/> | ||
</properties> | ||
</rule> | ||
</ruleset> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.