Completed
Push — master ( 0417ac...deae6b )
by Iman
02:07
created
src/Commands/CheckPsr4.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -178,6 +178,10 @@
 block discarded – undo
178 178
         app(ErrorPrinter::class)->simplePendError($_path, $line, '', 'ns_replacement', 'Namespace replacement:');
179 179
     }
180 180
 
181
+    /**
182
+     * @param ErrorPrinter $errorPrinter
183
+     * @param double $time
184
+     */
181 185
     private function printErrorsCount($errorPrinter, $time)
182 186
     {
183 187
         if ($errorCount = $errorPrinter->errorsList['total']) {
Please login to merge, or discard this patch.
src/Commands/CheckEndIf.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -63,6 +63,9 @@
 block discarded – undo
63 63
         $this->warn(PHP_EOL.$tries.' fixes applied to: '.class_basename($filePath));
64 64
     }
65 65
 
66
+    /**
67
+     * @param integer $fixed
68
+     */
66 69
     private function printFinalMsg($fixed)
67 70
     {
68 71
         if ($fixed > 0) {
Please login to merge, or discard this patch.
src/Refactors/SyntaxNormalizer.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -108,6 +108,9 @@
 block discarded – undo
108 108
         return $refactoredTokens;
109 109
     }
110 110
 
111
+    /**
112
+     * @param integer $i
113
+     */
111 114
     private static function removeSemi(&$tokens, $i)
112 115
     {
113 116
         [$next, $u] = FunctionCall::getNextToken($tokens, $i);
Please login to merge, or discard this patch.
src/Commands/CheckEarlyReturns.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -84,6 +84,10 @@
 block discarded – undo
84 84
         return [$fixes, $tokens];
85 85
     }
86 86
 
87
+    /**
88
+     * @param integer $fixed
89
+     * @param integer $fixingFilesCount
90
+     */
87 91
     private function printFinalMsg($fixed, $fixingFilesCount)
88 92
     {
89 93
         if ($fixed > 0) {
Please login to merge, or discard this patch.
src/Analyzers/Refactor.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -59,6 +59,9 @@
 block discarded – undo
59 59
         return $string;
60 60
     }
61 61
 
62
+    /**
63
+     * @param \Closure $refactor
64
+     */
62 65
     private static function recursiveRefactor($tokens, $refactor)
63 66
     {
64 67
         $i = $changes = 0;
Please login to merge, or discard this patch.
src/Checks/PSR12/CurlyBraces.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -37,6 +37,10 @@  discard block
 block discarded – undo
37 37
         }
38 38
     }
39 39
 
40
+    /**
41
+     * @param integer $level
42
+     * @param integer $i
43
+     */
40 44
     private static function openCurly($token, $level, $tokens, $i, $classFilePath)
41 45
     {
42 46
         if ($token == '{' && ! \in_array($tokens[$i - 1][0], [T_DOUBLE_COLON, T_OBJECT_OPERATOR])) {
@@ -55,6 +59,11 @@  discard block
 block discarded – undo
55 59
         }
56 60
     }
57 61
 
62
+    /**
63
+     * @param integer $level
64
+     * @param boolean $isInClass
65
+     * @param integer $i
66
+     */
58 67
     private static function writePublic($level, $token, $isInClass, $i, $tokens, $absolutePath)
59 68
     {
60 69
         if (($level != 1) || ($token[0] != T_FUNCTION) || ! $isInClass) {
Please login to merge, or discard this patch.
src/Analyzers/ClassMethods.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -70,6 +70,9 @@
 block discarded – undo
70 70
         return $class;
71 71
     }
72 72
 
73
+    /**
74
+     * @param integer $i
75
+     */
73 76
     private static function findVisibility($tokens, $i)
74 77
     {
75 78
         $isStatic = $tokens[$i][0] === T_STATIC && $i -= 2;
Please login to merge, or discard this patch.
src/Analyzers/FileManipulator.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -61,6 +61,9 @@
 block discarded – undo
61 61
         return [self::replaceFirst($absPath, $class, $prefix.$correct[0], $lineNum), $correct];
62 62
     }
63 63
 
64
+    /**
65
+     * @param \Closure $lineChanger
66
+     */
64 67
     private static function applyToFile($file, $lineChanger)
65 68
     {
66 69
         $reading = fopen($file, 'r');
Please login to merge, or discard this patch.
src/Checks/CheckStringy.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -55,6 +55,9 @@
 block discarded – undo
55 55
         }
56 56
     }
57 57
 
58
+    /**
59
+     * @param string $string
60
+     */
58 61
     protected function getClassyPath($string)
59 62
     {
60 63
         ($string[0] !== '\\') && ($string = '\\'.$string);
Please login to merge, or discard this patch.