@@ -14,10 +14,10 @@ discard block |
||
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 | - * @param $command |
|
20 | + * @param Commands\CheckExpansions $command |
|
21 | 21 | * |
22 | 22 | * @return void |
23 | 23 | */ |
@@ -69,6 +69,9 @@ discard block |
||
69 | 69 | return $path; |
70 | 70 | } |
71 | 71 | |
72 | + /** |
|
73 | + * @param string $name |
|
74 | + */ |
|
72 | 75 | private static function ask($command, $name) |
73 | 76 | { |
74 | 77 | return $command->getOutput()->confirm('Do you want to generate a service provider: '.$name, true); |
@@ -83,6 +86,9 @@ discard block |
||
83 | 86 | \in_array(T_DOUBLE_ARROW, [$tokens[$i + 1][0], $tokens[$i + 2][0]]); |
84 | 87 | } |
85 | 88 | |
89 | + /** |
|
90 | + * @param string $providerPath |
|
91 | + */ |
|
86 | 92 | private static function addToProvidersArray($providerPath) |
87 | 93 | { |
88 | 94 | $tokens = token_get_all(file_get_contents(config_path('app.php'))); |
@@ -107,6 +113,11 @@ discard block |
||
107 | 113 | return $tokens; |
108 | 114 | } |
109 | 115 | |
116 | + /** |
|
117 | + * @param \Symfony\Component\Finder\SplFileInfo $classFilePath |
|
118 | + * @param string $namespace |
|
119 | + * @param string $prefix |
|
120 | + */ |
|
110 | 121 | protected static function generateFolderStructure($classFilePath, $namespace, $prefix) |
111 | 122 | { |
112 | 123 | $_basePath = $classFilePath->getPath().DIRECTORY_SEPARATOR; |