@@ -28,6 +28,9 @@ discard block |
||
28 | 28 | } |
29 | 29 | } |
30 | 30 | |
31 | + /** |
|
32 | + * @param string $fullNamespace |
|
33 | + */ |
|
31 | 34 | protected static function checkActions($tokens, $fullNamespace, $path) |
32 | 35 | { |
33 | 36 | $class = ClassMethods::read($tokens); |
@@ -73,6 +76,9 @@ discard block |
||
73 | 76 | return $routelessActions; |
74 | 77 | } |
75 | 78 | |
79 | + /** |
|
80 | + * @param \Illuminate\Routing\Route $route |
|
81 | + */ |
|
76 | 82 | protected static function getMsg($methods, $route) |
77 | 83 | { |
78 | 84 | $msg = '/**'."\n"; |
@@ -2,8 +2,8 @@ |
||
2 | 2 | |
3 | 3 | namespace Imanghafoori\LaravelMicroscope\Checks; |
4 | 4 | |
5 | -use Imanghafoori\LaravelMicroscope\Analyzers\Refactor; |
|
6 | 5 | use Imanghafoori\LaravelMicroscope\Analyzers\ClassMethods; |
6 | +use Imanghafoori\LaravelMicroscope\Analyzers\Refactor; |
|
7 | 7 | |
8 | 8 | class ActionsComments |
9 | 9 | { |
@@ -37,6 +37,10 @@ discard block |
||
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])) { |
@@ -54,6 +58,11 @@ discard block |
||
54 | 58 | } |
55 | 59 | } |
56 | 60 | |
61 | + /** |
|
62 | + * @param integer $level |
|
63 | + * @param boolean $isInClass |
|
64 | + * @param integer $i |
|
65 | + */ |
|
57 | 66 | private static function writePublic($level, $token, $isInClass, $i, $tokens, $classFilePath) |
58 | 67 | { |
59 | 68 | if ($level != 1 || $token != T_FUNCTION || ! $isInClass) { |