Completed
Push — master ( c823b8...bcb263 )
by Tomáš
18:49 queued 12:17
created
src/Sniffs/AbstractPatternSniff.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@
 block discarded – undo
78 78
      *
79 79
      * @param boolean $ignoreComments If true, comments will be ignored.
80 80
      */
81
-    public function __construct($ignoreComments=null)
81
+    public function __construct($ignoreComments = null)
82 82
     {
83 83
         // This is here for backwards compatibility.
84 84
         if ($ignoreComments !== null) {
Please login to merge, or discard this patch.
src/Sniffs/AbstractScopeSniff.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@
 block discarded – undo
86 86
     public function __construct(
87 87
         array $scopeTokens,
88 88
         array $tokens,
89
-        $listenOutside=false
89
+        $listenOutside = false
90 90
     ) {
91 91
         if (empty($scopeTokens) === true) {
92 92
             $error = 'The scope tokens list cannot be empty';
Please login to merge, or discard this patch.
src/Files/File.php 1 patch
Spacing   +25 added lines, -25 removed lines patch added patch discarded remove patch
@@ -572,9 +572,9 @@  discard block
 block discarded – undo
572 572
         $error,
573 573
         $stackPtr,
574 574
         $code,
575
-        $data=array(),
576
-        $severity=0,
577
-        $fixable=false
575
+        $data = array(),
576
+        $severity = 0,
577
+        $fixable = false
578 578
     ) {
579 579
         if ($stackPtr === null) {
580 580
             $line   = 1;
@@ -606,9 +606,9 @@  discard block
 block discarded – undo
606 606
         $warning,
607 607
         $stackPtr,
608 608
         $code,
609
-        $data=array(),
610
-        $severity=0,
611
-        $fixable=false
609
+        $data = array(),
610
+        $severity = 0,
611
+        $fixable = false
612 612
     ) {
613 613
         if ($stackPtr === null) {
614 614
             $line   = 1;
@@ -639,8 +639,8 @@  discard block
 block discarded – undo
639 639
         $error,
640 640
         $line,
641 641
         $code,
642
-        $data=array(),
643
-        $severity=0
642
+        $data = array(),
643
+        $severity = 0
644 644
     ) {
645 645
         return $this->addMessage(true, $error, $line, 1, $code, $data, $severity, false);
646 646
 
@@ -663,8 +663,8 @@  discard block
 block discarded – undo
663 663
         $warning,
664 664
         $line,
665 665
         $code,
666
-        $data=array(),
667
-        $severity=0
666
+        $data = array(),
667
+        $severity = 0
668 668
     ) {
669 669
         return $this->addMessage(false, $warning, $line, 1, $code, $data, $severity, false);
670 670
 
@@ -689,8 +689,8 @@  discard block
 block discarded – undo
689 689
         $error,
690 690
         $stackPtr,
691 691
         $code,
692
-        $data=array(),
693
-        $severity=0
692
+        $data = array(),
693
+        $severity = 0
694 694
     ) {
695 695
         $recorded = $this->addError($error, $stackPtr, $code, $data, $severity, true);
696 696
         if ($recorded === true && $this->fixer->enabled === true) {
@@ -720,8 +720,8 @@  discard block
 block discarded – undo
720 720
         $warning,
721 721
         $stackPtr,
722 722
         $code,
723
-        $data=array(),
724
-        $severity=0
723
+        $data = array(),
724
+        $severity = 0
725 725
     ) {
726 726
         $recorded = $this->addWarning($warning, $stackPtr, $code, $data, $severity, true);
727 727
         if ($recorded === true && $this->fixer->enabled === true) {
@@ -1698,10 +1698,10 @@  discard block
 block discarded – undo
1698 1698
     public function findPrevious(
1699 1699
         $types,
1700 1700
         $start,
1701
-        $end=null,
1702
-        $exclude=false,
1703
-        $value=null,
1704
-        $local=false
1701
+        $end = null,
1702
+        $exclude = false,
1703
+        $value = null,
1704
+        $local = false
1705 1705
     ) {
1706 1706
         $types = (array) $types;
1707 1707
 
@@ -1779,10 +1779,10 @@  discard block
 block discarded – undo
1779 1779
     public function findNext(
1780 1780
         $types,
1781 1781
         $start,
1782
-        $end=null,
1783
-        $exclude=false,
1784
-        $value=null,
1785
-        $local=false
1782
+        $end = null,
1783
+        $exclude = false,
1784
+        $value = null,
1785
+        $local = false
1786 1786
     ) {
1787 1787
         $types = (array) $types;
1788 1788
 
@@ -1825,7 +1825,7 @@  discard block
 block discarded – undo
1825 1825
      *
1826 1826
      * @return int
1827 1827
      */
1828
-    public function findStartOfStatement($start, $ignore=null)
1828
+    public function findStartOfStatement($start, $ignore = null)
1829 1829
     {
1830 1830
         $endTokens = Util\Tokens::$blockOpeners;
1831 1831
 
@@ -1890,7 +1890,7 @@  discard block
 block discarded – undo
1890 1890
      *
1891 1891
      * @return int
1892 1892
      */
1893
-    public function findEndOfStatement($start, $ignore=null)
1893
+    public function findEndOfStatement($start, $ignore = null)
1894 1894
     {
1895 1895
         $endTokens = array(
1896 1896
                       T_COLON                => true,
@@ -1974,7 +1974,7 @@  discard block
 block discarded – undo
1974 1974
      *
1975 1975
      * @return int | bool
1976 1976
      */
1977
-    public function findFirstOnLine($types, $start, $exclude=false, $value=null)
1977
+    public function findFirstOnLine($types, $start, $exclude = false, $value = null)
1978 1978
     {
1979 1979
         if (is_array($types) === false) {
1980 1980
             $types = array($types);
Please login to merge, or discard this patch.
src/Files/FileList.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -106,7 +106,7 @@
 block discarded – undo
106 106
      *
107 107
      * @return void
108 108
      */
109
-    public function addFile($path, $file=null)
109
+    public function addFile($path, $file = null)
110 110
     {
111 111
         // No filtering is done for STDIN.
112 112
         if ($path === 'STDIN'
Please login to merge, or discard this patch.
src/Ruleset.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -261,7 +261,7 @@  discard block
 block discarded – undo
261 261
      * @return string[]
262 262
      * @throws RuntimeException If the ruleset path is invalid.
263 263
      */
264
-    public function processRuleset($rulesetPath, $depth=0)
264
+    public function processRuleset($rulesetPath, $depth = 0)
265 265
     {
266 266
         $rulesetPath = Util\Common::realpath($rulesetPath);
267 267
         if (PHP_CODESNIFFER_VERBOSITY > 1) {
@@ -506,7 +506,7 @@  discard block
 block discarded – undo
506 506
      *
507 507
      * @return array
508 508
      */
509
-    private function expandSniffDirectory($directory, $depth=0)
509
+    private function expandSniffDirectory($directory, $depth = 0)
510 510
     {
511 511
         $sniffs = array();
512 512
 
@@ -569,7 +569,7 @@  discard block
 block discarded – undo
569 569
      * @return array
570 570
      * @throws RuntimeException If the reference is invalid.
571 571
      */
572
-    private function expandRulesetReference($ref, $rulesetDir, $depth=0)
572
+    private function expandRulesetReference($ref, $rulesetDir, $depth = 0)
573 573
     {
574 574
         // Ignore internal sniffs codes as they are used to only
575 575
         // hide and change internal messages.
@@ -751,7 +751,7 @@  discard block
 block discarded – undo
751 751
      * @return void
752 752
      * @throws RuntimeException If rule settings are invalid.
753 753
      */
754
-    private function processRule($rule, $newSniffs, $depth=0)
754
+    private function processRule($rule, $newSniffs, $depth = 0)
755 755
     {
756 756
         $ref  = (string) $rule['ref'];
757 757
         $todo = array($ref);
@@ -861,7 +861,7 @@  discard block
 block discarded – undo
861 861
                         foreach (explode(',', $value) as $val) {
862 862
                             $v = '';
863 863
 
864
-                            list($k,$v) = explode('=>', $val.'=>');
864
+                            list($k, $v) = explode('=>', $val.'=>');
865 865
                             if ($v !== '') {
866 866
                                 $values[$k] = $v;
867 867
                             } else {
@@ -1166,7 +1166,7 @@  discard block
 block discarded – undo
1166 1166
      *
1167 1167
      * @return array
1168 1168
      */
1169
-    public function getIgnorePatterns($listener=null)
1169
+    public function getIgnorePatterns($listener = null)
1170 1170
     {
1171 1171
         if ($listener === null) {
1172 1172
             return $this->ignorePatterns;
@@ -1192,7 +1192,7 @@  discard block
 block discarded – undo
1192 1192
      *
1193 1193
      * @return array
1194 1194
      */
1195
-    public function getIncludePatterns($listener=null)
1195
+    public function getIncludePatterns($listener = null)
1196 1196
     {
1197 1197
         if ($listener === null) {
1198 1198
             return $this->includePatterns;
Please login to merge, or discard this patch.
src/Util/Timing.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
      *
49 49
      * @return void
50 50
      */
51
-    public static function printRunTime($force=false)
51
+    public static function printRunTime($force = false)
52 52
     {
53 53
         if ($force === false && self::$printed === true) {
54 54
             // A double call.
Please login to merge, or discard this patch.
src/Util/Cache.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
         $di     = new \RecursiveDirectoryIterator($installDir);
105 105
         $filter = new \RecursiveCallbackFilterIterator(
106 106
             $di,
107
-            function ($file, $key, $iterator) {
107
+            function($file, $key, $iterator) {
108 108
                 // Skip hidden files.
109 109
                 $filename = $file->getFilename();
110 110
                 if (substr($filename, 0, 1) === '.') {
@@ -276,7 +276,7 @@  discard block
 block discarded – undo
276 276
      *
277 277
      * @return mixed
278 278
      */
279
-    public static function get($key=null)
279
+    public static function get($key = null)
280 280
     {
281 281
         if ($key === null) {
282 282
             return self::$cache;
Please login to merge, or discard this patch.
src/Util/Standards.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -60,8 +60,8 @@
 block discarded – undo
60 60
      * @see    isInstalledStandard()
61 61
      */
62 62
     public static function getInstalledStandards(
63
-        $includeGeneric=false,
64
-        $standardsDir=''
63
+        $includeGeneric = false,
64
+        $standardsDir = ''
65 65
     ) {
66 66
         $installedStandards = array();
67 67
 
Please login to merge, or discard this patch.
src/Util/Common.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -162,7 +162,7 @@  discard block
 block discarded – undo
162 162
      *
163 163
      * @return string
164 164
      */
165
-    public static function prepareForOutput($content, $exclude=array())
165
+    public static function prepareForOutput($content, $exclude = array())
166 166
     {
167 167
         if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') {
168 168
             if (in_array("\r", $exclude) === false) {
@@ -221,9 +221,9 @@  discard block
 block discarded – undo
221 221
      */
222 222
     public static function isCamelCaps(
223 223
         $string,
224
-        $classFormat=false,
225
-        $public=true,
226
-        $strict=true
224
+        $classFormat = false,
225
+        $public = true,
226
+        $strict = true
227 227
     ) {
228 228
         // Check the first character first.
229 229
         if ($classFormat === false) {
Please login to merge, or discard this patch.