@@ -168,6 +168,9 @@ discard block |
||
168 | 168 | |
169 | 169 | } |
170 | 170 | |
171 | + /** |
|
172 | + * @param string $tag |
|
173 | + */ |
|
171 | 174 | protected function fieldsHavingTag($tag) |
172 | 175 | { |
173 | 176 | return array_map(function($field){ |
@@ -199,6 +202,9 @@ discard block |
||
199 | 202 | }, $this->fields); |
200 | 203 | } |
201 | 204 | |
205 | + /** |
|
206 | + * @return string |
|
207 | + */ |
|
202 | 208 | protected function getBaseModel($path) { |
203 | 209 | $index = strrpos($path, "\\"); |
204 | 210 | if($index) { |
@@ -21,6 +21,9 @@ discard block |
||
21 | 21 | $this->argumentFormatLoader = new ArgumentFormatLoader($fs); |
22 | 22 | } |
23 | 23 | |
24 | + /** |
|
25 | + * @param string $name |
|
26 | + */ |
|
24 | 27 | protected function getTemplate($name) |
25 | 28 | { |
26 | 29 | return $this->templates->load($name); |
@@ -31,6 +34,9 @@ discard block |
||
31 | 34 | return new ArgumentParser($format); |
32 | 35 | } |
33 | 36 | |
37 | + /** |
|
38 | + * @param string $content |
|
39 | + */ |
|
34 | 40 | protected function save($content, $path, $name, $force = false) |
35 | 41 | { |
36 | 42 | if (!$force && $this->fs->exists($path) && $this->input->hasOption('force') && !$this->option('force')) { |
@@ -49,6 +55,9 @@ discard block |
||
49 | 55 | } |
50 | 56 | } |
51 | 57 | |
58 | + /** |
|
59 | + * @param integer $n |
|
60 | + */ |
|
52 | 61 | protected function spaces($n) |
53 | 62 | { |
54 | 63 | return str_repeat(' ', $n); |
@@ -65,6 +74,9 @@ discard block |
||
65 | 74 | }))); |
66 | 75 | } |
67 | 76 | |
77 | + /** |
|
78 | + * @param string $parser |
|
79 | + */ |
|
68 | 80 | protected function parseValue($value, $parser) |
69 | 81 | { |
70 | 82 | if(! $value){ |
@@ -78,6 +90,9 @@ discard block |
||
78 | 90 | return $value; |
79 | 91 | } |
80 | 92 | |
93 | + /** |
|
94 | + * @return string |
|
95 | + */ |
|
81 | 96 | protected function prependNamespace($value, $path = false) |
82 | 97 | { |
83 | 98 | if (strpos($value, '\\') === false) { |
@@ -87,6 +102,9 @@ discard block |
||
87 | 102 | return $value; |
88 | 103 | } |
89 | 104 | |
105 | + /** |
|
106 | + * @return string |
|
107 | + */ |
|
90 | 108 | protected function extractClassName($fqClassName) { |
91 | 109 | $names = array_reverse(explode("\\", $fqClassName)); |
92 | 110 | return $names[0]; |
@@ -143,6 +143,9 @@ discard block |
||
143 | 143 | return $nodes; |
144 | 144 | } |
145 | 145 | |
146 | + /** |
|
147 | + * @param string $key |
|
148 | + */ |
|
146 | 149 | protected function getTables($nodes, $key) { |
147 | 150 | $tables = []; |
148 | 151 | foreach($nodes as $node) { |
@@ -201,6 +204,12 @@ discard block |
||
201 | 204 | } |
202 | 205 | } |
203 | 206 | |
207 | + /** |
|
208 | + * @param string $type |
|
209 | + * @param string $command |
|
210 | + * @param string $model1 |
|
211 | + * @param string $model2 |
|
212 | + */ |
|
204 | 213 | protected function buildTables($type, $command, $model1, $model2, $tableAssignment) |
205 | 214 | { |
206 | 215 | foreach ($tableAssignment as $tables) { |
@@ -334,6 +343,10 @@ discard block |
||
334 | 343 | return $string; |
335 | 344 | } |
336 | 345 | |
346 | + /** |
|
347 | + * @param string $old |
|
348 | + * @param string $new |
|
349 | + */ |
|
337 | 350 | protected function convertArray($list, $old, $new) |
338 | 351 | { |
339 | 352 | return implode($new, array_filter(explode($old, $list), function($item){ |
@@ -398,11 +411,17 @@ discard block |
||
398 | 411 | return array(array(), $seen);//, array($item) |
399 | 412 | } |
400 | 413 | |
414 | + /** |
|
415 | + * @param string $message |
|
416 | + */ |
|
401 | 417 | protected function checkError($message, $model = "", $file = "") { |
402 | 418 | $this->checkErrors[] = array("message" => $message, "model" => $model, "file" => $file); |
403 | 419 | $this->checkedErrors++; |
404 | 420 | } |
405 | 421 | |
422 | + /** |
|
423 | + * @param string $message |
|
424 | + */ |
|
406 | 425 | protected function checkInfo($message, $model = "", $file = "") { |
407 | 426 | $this->checkInfo[] = array("message" => $message, "model" => $model, "file" => $file); |
408 | 427 | } |
@@ -416,6 +435,9 @@ discard block |
||
416 | 435 | } |
417 | 436 | } |
418 | 437 | |
438 | + /** |
|
439 | + * @param string $type |
|
440 | + */ |
|
419 | 441 | protected function checkRelations($relations, $type, $file, $model, $keys) { |
420 | 442 | if ($relations) { |
421 | 443 | $position = array_search($model, $keys); |
@@ -440,6 +462,9 @@ discard block |
||
440 | 462 | } |
441 | 463 | } |
442 | 464 | |
465 | + /** |
|
466 | + * @param string $rType |
|
467 | + */ |
|
443 | 468 | protected function checkPivotRelations($nodes, $relations, $rType) { |
444 | 469 | if ($relations) { |
445 | 470 | foreach($relations as $relation) { |