Completed
Push — master ( 1ecf33...bdf91e )
by Iman
01:55
created
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/CheckNamespaces.php 1 patch
Doc Comments   +8 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,10 +18,10 @@  discard block
 block discarded – undo
18 18
     /**
19 19
      * Get all of the listeners and their corresponding events.
20 20
      *
21
-     * @param  iterable  $paths
21
+     * @param  \Symfony\Component\Finder\Finder  $paths
22 22
      * @param  $composerPath
23 23
      * @param  $composerNamespace
24
-     * @param  $command
24
+     * @param  Commands\CheckPsr4 $command
25 25
      *
26 26
      * @return void
27 27
      */
@@ -96,6 +96,9 @@  discard block
 block discarded – undo
96 96
         return Str::startsWith($buffer, '<?php');
97 97
     }
98 98
 
99
+    /**
100
+     * @param string $correctNamespace
101
+     */
99 102
     protected static function doNamespaceCorrection($absFilePath, $currentNamespace, $correctNamespace)
100 103
     {
101 104
         event('laravel_microscope.namespace_fixing', get_defined_vars());
@@ -103,6 +106,9 @@  discard block
 block discarded – undo
103 106
         event('laravel_microscope.namespace_fixed', get_defined_vars());
104 107
     }
105 108
 
109
+    /**
110
+     * @param string $correctNamespace
111
+     */
106 112
     private static function changedNamespaces($class, $currentNamespace, $correctNamespace)
107 113
     {
108 114
         $_currentClass = $currentNamespace.'\\'.$class;
Please login to merge, or discard this patch.
src/Analyzers/ClassMethods.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -74,6 +74,9 @@  discard block
 block discarded – undo
74 74
         return $class;
75 75
     }
76 76
 
77
+    /**
78
+     * @param string $content
79
+     */
77 80
     private static function requestIssue($content)
78 81
     {
79 82
         dump('(O_o)   Well, It seems we had some problem parsing the contents of:   (o_O)');
@@ -82,6 +85,9 @@  discard block
 block discarded – undo
82 85
         dump($content);
83 86
     }
84 87
 
88
+    /**
89
+     * @param integer $i
90
+     */
85 91
     private static function findVisibility($tokens, $i)
86 92
     {
87 93
         $isStatic = $tokens[$i][0] === T_STATIC && $i -= 2;
Please login to merge, or discard this patch.
src/Analyzers/NamespaceCorrector.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -14,6 +14,9 @@
 block discarded – undo
14 14
         return trim(implode('\\', $segments), '\\');
15 15
     }
16 16
 
17
+    /**
18
+     * @param string $class1
19
+     */
17 20
     public static function haveSameNamespace($class1, $class2)
18 21
     {
19 22
         return self::getNamespaceFromFullClass($class1) == self::getNamespaceFromFullClass($class2);
Please login to merge, or discard this patch.
src/Commands/CheckPsr4.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -145,6 +145,10 @@
 block discarded – undo
145 145
         app(ErrorPrinter::class)->simplePendError('', $_path, $lineNumber, 'ns_replacement', 'Namespace replacement:');
146 146
     }
147 147
 
148
+    /**
149
+     * @param ErrorPrinter $errorPrinter
150
+     * @param double $time
151
+     */
148 152
     private function printErrorsCount($errorPrinter, $time)
149 153
     {
150 154
         if ($errorCount = $errorPrinter->errorsList['total']) {
Please login to merge, or discard this patch.
src/Commands/CheckRoutes.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -66,6 +66,9 @@
 block discarded – undo
66 66
         return $msg;
67 67
     }
68 68
 
69
+    /**
70
+     * @param ErrorPrinter $errorPrinter
71
+     */
69 72
     private function checkRouteDefinitions($errorPrinter, $routes)
70 73
     {
71 74
         foreach ($routes as $route) {
Please login to merge, or discard this patch.
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,6 +4,7 @@  discard block
 block discarded – undo
4 4
 
5 5
 use Exception;
6 6
 use Illuminate\Console\Command;
7
+use Illuminate\Filesystem\Filesystem;
7 8
 use Illuminate\Routing\Router;
8 9
 use Illuminate\Support\Str;
9 10
 use Imanghafoori\LaravelMicroscope\BladeFiles;
@@ -11,7 +12,6 @@  discard block
 block discarded – undo
11 12
 use Imanghafoori\LaravelMicroscope\Checks\CheckRouteCalls;
12 13
 use Imanghafoori\LaravelMicroscope\ErrorReporters\ErrorPrinter;
13 14
 use Imanghafoori\LaravelMicroscope\Psr4Classes;
14
-use Illuminate\Filesystem\Filesystem;
15 15
 use Imanghafoori\LaravelMicroscope\Traits\LogsErrors;
16 16
 
17 17
 class CheckRoutes extends Command
Please login to merge, or discard this patch.