Completed
Pull Request — master (#41)
by Innocent
01:36
created
src/Commands/CheckImports.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -80,6 +80,9 @@
 block discarded – undo
80 80
         }
81 81
     }
82 82
 
83
+    /**
84
+     * @param string $msg
85
+     */
83 86
     protected function warnDumping($msg)
84 87
     {
85 88
         $this->info('It seems composer has some trouble with autoload...');
Please login to merge, or discard this patch.
src/Analyzers/NamespaceCorrector.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -50,8 +50,8 @@
 block discarded – undo
50 50
     }
51 51
 
52 52
     /**
53
-     * @param $incorrectNamespace
54
-     * @param $correctNamespace
53
+     * @param string $incorrectNamespace
54
+     * @param string $correctNamespace
55 55
      *
56 56
      * @return array
57 57
      */
Please login to merge, or discard this patch.
src/Commands/CheckRoutes.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -82,6 +82,10 @@
 block discarded – undo
82 82
         }
83 83
     }
84 84
 
85
+    /**
86
+     * @param ErrorPrinter $errorPrinter
87
+     * @param \Symfony\Component\Console\Helper\ProgressBar $bar
88
+     */
85 89
     private function checkRouteDefinitions($errorPrinter, $routes, $bar)
86 90
     {
87 91
         foreach ($routes as $route) {
Please login to merge, or discard this patch.
src/SpyClasses/SpyDispatcher.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -63,6 +63,9 @@
 block discarded – undo
63 63
         }
64 64
     }
65 65
 
66
+    /**
67
+     * @return string
68
+     */
66 69
     private function stringify($event)
67 70
     {
68 71
         return is_object($event) ? get_class($event) : $event;
Please login to merge, or discard this patch.
src/CheckClasses.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
     /**
15 15
      * Get all of the listeners and their corresponding events.
16 16
      *
17
-     * @param  iterable  $files
17
+     * @param  \Symfony\Component\Finder\Finder  $files
18 18
      * @param  FileCheckContractAlias  $fileCheckContract
19 19
      *
20 20
      * @return void
Please login to merge, or discard this patch.
src/ErrorReporters/ErrorPrinter.php 1 patch
Doc Comments   +10 added lines patch added patch discarded remove patch
@@ -53,6 +53,10 @@  discard block
 block discarded – undo
53 53
         $this->pendError($absPath, $lineNumber, $relatedModel, 'badRelation', $header);
54 54
     }
55 55
 
56
+    /**
57
+     * @param string $key
58
+     * @param string $header
59
+     */
56 60
     public function pendError($path, $lineNumber, $absent, $key, $header)
57 61
     {
58 62
         array_push($this->counts[$key], (new PendingError($key))
@@ -89,6 +93,9 @@  discard block
 block discarded – undo
89 93
             ->link($absPath, $lineNumber));
90 94
     }
91 95
 
96
+    /**
97
+     * @param integer $len
98
+     */
92 99
     public function print($msg, $path = '|  ', $len = null)
93 100
     {
94 101
         ! $len && $len = PendingError::$maxLength + 1;
@@ -104,6 +111,9 @@  discard block
 block discarded – undo
104 111
         $this->printer->writeln($path.$msg.str_repeat(' ', $len).'|');
105 112
     }
106 113
 
114
+    /**
115
+     * @param string $msg
116
+     */
107 117
     public function printHeader($msg)
108 118
     {
109 119
         $this->print('');
Please login to merge, or discard this patch.
src/CheckNamespaces.php 1 patch
Doc Comments   +11 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
     /**
15 15
      * Get all of the listeners and their corresponding events.
16 16
      *
17
-     * @param  iterable  $paths
17
+     * @param  \Symfony\Component\Finder\Finder  $paths
18 18
      * @param $composerPath
19 19
      * @param $composerNamespace
20 20
      * @param  FileCheckContractAlias  $fileCheckContract
@@ -72,6 +72,9 @@  discard block
 block discarded – undo
72 72
         }
73 73
     }
74 74
 
75
+    /**
76
+     * @param string $relativePath
77
+     */
75 78
     private static function warn($currentNamespace, $relativePath)
76 79
     {
77 80
         $p = app(ErrorPrinter::class);
@@ -93,6 +96,9 @@  discard block
 block discarded – undo
93 96
         return Str::startsWith($buffer, '<?php');
94 97
     }
95 98
 
99
+    /**
100
+     * @param string $correctNamespace
101
+     */
96 102
     protected static function doNamespaceCorrection($absFilePath, $currentNamespace, $correctNamespace)
97 103
     {
98 104
         event('laravel_microscope.namespace_fixing', get_defined_vars());
@@ -112,6 +118,10 @@  discard block
 block discarded – undo
112 118
         return $migrationDirs;
113 119
     }
114 120
 
121
+    /**
122
+     * @param FileCheckContractAlias $fileCheckContract
123
+     * @param string $correctNamespace
124
+     */
115 125
     private static function ask($fileCheckContract, $correctNamespace)
116 126
     {
117 127
         return $fileCheckContract->getOutput()->confirm('Do you want to change it to: '.$correctNamespace, true);
Please login to merge, or discard this patch.
src/Commands/CheckViews.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@
 block discarded – undo
70 70
     /**
71 71
      * Get all of the listeners and their corresponding events.
72 72
      *
73
-     * @param  iterable  $classes
73
+     * @param  \Symfony\Component\Finder\Finder  $classes
74 74
      *
75 75
      * @return void
76 76
      */
Please login to merge, or discard this patch.
src/Analyzers/FunctionCall.php 1 patch
Doc Comments   +13 added lines patch added patch discarded remove patch
@@ -4,6 +4,9 @@  discard block
 block discarded – undo
4 4
 
5 5
 class FunctionCall
6 6
 {
7
+    /**
8
+     * @param integer $i
9
+     */
7 10
     protected static function getNextToken($tokens, $i)
8 11
     {
9 12
         $i++;
@@ -34,6 +37,9 @@  discard block
 block discarded – undo
34 37
         return ($tokens[0][0] == T_CONSTANT_ENCAPSED_STRING) && ($nextToken !== '.');
35 38
     }
36 39
 
40
+    /**
41
+     * @param string $funcName
42
+     */
37 43
     static function isGlobalCall($funcName, &$tokens, $i)
38 44
     {
39 45
         $expectedTokens = [
@@ -56,6 +62,10 @@  discard block
 block discarded – undo
56 62
         return $index;
57 63
     }
58 64
 
65
+    /**
66
+     * @param string $methodName
67
+     * @param string $className
68
+     */
59 69
     static function isStaticCall($methodName, &$tokens, $i, $className = null)
60 70
     {
61 71
         $expectedTokens = [
@@ -68,6 +78,9 @@  discard block
 block discarded – undo
68 78
         return self::checkTokens($expectedTokens, $tokens, $i);
69 79
     }
70 80
 
81
+    /**
82
+     * @param string $methodName
83
+     */
71 84
     static function isMethodCallOnThis($methodName, &$tokens, $i)
72 85
     {
73 86
         $expectedTokens = [
Please login to merge, or discard this patch.