@@ -89,8 +89,6 @@ |
||
89 | 89 | } |
90 | 90 | |
91 | 91 | /** |
92 | - * @param ConfigEntity $config |
|
93 | - * @param DynamicFieldHandler $handler |
|
94 | 92 | * @param array $args |
95 | 93 | * @param array $wheres |
96 | 94 | * @throws \Exception |
@@ -149,6 +149,10 @@ |
||
149 | 149 | { |
150 | 150 | } |
151 | 151 | |
152 | + /** |
|
153 | + * @param string $container |
|
154 | + * @param string $jsonRet |
|
155 | + */ |
|
152 | 156 | protected function loadReactComponent($container, $title, $jsonRet) |
153 | 157 | { |
154 | 158 |
@@ -58,7 +58,7 @@ |
||
58 | 58 | /** |
59 | 59 | * Get the services provided by the provider. |
60 | 60 | * |
61 | - * @return array |
|
61 | + * @return string[] |
|
62 | 62 | */ |
63 | 63 | public function provides() |
64 | 64 | { |
@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | /** |
56 | 56 | * Execute the console command. |
57 | 57 | * |
58 | - * @return bool|null |
|
58 | + * @return false|null |
|
59 | 59 | */ |
60 | 60 | public function fire() |
61 | 61 | { |
@@ -100,6 +100,10 @@ discard block |
||
100 | 100 | $this->info("Input and modify your plugin information in ./plugins/$name/composer.json file."); |
101 | 101 | } |
102 | 102 | |
103 | + /** |
|
104 | + * @param string $path |
|
105 | + * @param string $namespace |
|
106 | + */ |
|
103 | 107 | protected function checkEnv($path, $name, $namespace, $title) |
104 | 108 | { |
105 | 109 | // check directory exists |
@@ -119,9 +123,9 @@ discard block |
||
119 | 123 | /** |
120 | 124 | * makePluginClass |
121 | 125 | * |
122 | - * @param $path |
|
126 | + * @param string $path |
|
123 | 127 | * @param $name |
124 | - * @param $namespace |
|
128 | + * @param string $namespace |
|
125 | 129 | * |
126 | 130 | * @return void |
127 | 131 | */ |
@@ -188,9 +192,9 @@ discard block |
||
188 | 192 | /** |
189 | 193 | * makeComposerJson |
190 | 194 | * |
191 | - * @param $path |
|
195 | + * @param string $path |
|
192 | 196 | * @param $pluginName |
193 | - * @param $namespace |
|
197 | + * @param string $namespace |
|
194 | 198 | * |
195 | 199 | * @return void |
196 | 200 | */ |
@@ -319,7 +323,6 @@ discard block |
||
319 | 323 | /** |
320 | 324 | * Get the full namespace name for a given class. |
321 | 325 | * |
322 | - * @param string $name |
|
323 | 326 | * |
324 | 327 | * @return string |
325 | 328 | */ |
@@ -342,6 +345,7 @@ discard block |
||
342 | 345 | /** |
343 | 346 | * Get the stub file for the generator. |
344 | 347 | * |
348 | + * @param string $filename |
|
345 | 349 | * @return string |
346 | 350 | */ |
347 | 351 | protected function getStub($filename) |
@@ -389,6 +393,9 @@ discard block |
||
389 | 393 | return $this->argument('title'); |
390 | 394 | } |
391 | 395 | |
396 | + /** |
|
397 | + * @param string $path |
|
398 | + */ |
|
392 | 399 | protected function makeDirectoryStructure($path) |
393 | 400 | { |
394 | 401 | $defaultDirectories = [ |
@@ -409,6 +416,9 @@ discard block |
||
409 | 416 | $this->files->put($path.'/assets/style.css', $stub); |
410 | 417 | } |
411 | 418 | |
419 | + /** |
|
420 | + * @param string $path |
|
421 | + */ |
|
412 | 422 | protected function runComposerUpdate($path) |
413 | 423 | { |
414 | 424 | $composer = $this->findComposer(); |
@@ -421,6 +431,10 @@ discard block |
||
421 | 431 | $output = $this->output; |
422 | 432 | |
423 | 433 | $process->run( |
434 | + |
|
435 | + /** |
|
436 | + * @param string $type |
|
437 | + */ |
|
424 | 438 | function ($type, $line) use ($output) { |
425 | 439 | $output->write($line); |
426 | 440 | } |
@@ -76,7 +76,7 @@ |
||
76 | 76 | /** |
77 | 77 | * getHandler |
78 | 78 | * |
79 | - * @return FrontendHandler |
|
79 | + * @return Mockery\MockInterface |
|
80 | 80 | */ |
81 | 81 | protected function getHandler() |
82 | 82 | { |
@@ -315,6 +315,9 @@ |
||
315 | 315 | ]; |
316 | 316 | } |
317 | 317 | |
318 | + /** |
|
319 | + * @param string $methodName |
|
320 | + */ |
|
318 | 321 | private function invokeMethod(&$object, $methodName, array $parameters = array()) |
319 | 322 | { |
320 | 323 | $reflection = new \ReflectionClass(get_class($object)); |
@@ -58,7 +58,7 @@ |
||
58 | 58 | /** |
59 | 59 | * Get the services provided by the provider. |
60 | 60 | * |
61 | - * @return array |
|
61 | + * @return string[] |
|
62 | 62 | */ |
63 | 63 | public function provides() |
64 | 64 | { |
@@ -58,7 +58,7 @@ |
||
58 | 58 | /** |
59 | 59 | * Get the services provided by the provider. |
60 | 60 | * |
61 | - * @return array |
|
61 | + * @return string[] |
|
62 | 62 | */ |
63 | 63 | public function provides() |
64 | 64 | { |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | * Remove category |
85 | 85 | * |
86 | 86 | * @param Category $category category object |
87 | - * @return bool |
|
87 | + * @return boolean|null |
|
88 | 88 | */ |
89 | 89 | public function remove(Category $category) |
90 | 90 | { |
@@ -158,7 +158,7 @@ discard block |
||
158 | 158 | * |
159 | 159 | * @param CategoryItem $item item object |
160 | 160 | * @param bool $force if true then remove all descendant |
161 | - * @return bool |
|
161 | + * @return boolean|null |
|
162 | 162 | */ |
163 | 163 | public function removeItem(CategoryItem $item, $force = true) |
164 | 164 | { |