@@ -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): string |
53 | 62 | { |
54 | 63 | return str_repeat(' ', $n); |
@@ -92,6 +92,9 @@ |
||
92 | 92 | return $this->buildParameters($this->parseValue($keys, 'foreign-keys'), "// Constraints declaration", [$this, 'getConstraintDeclaration']); |
93 | 93 | } |
94 | 94 | |
95 | + /** |
|
96 | + * @param string $emptyPlaceholder |
|
97 | + */ |
|
95 | 98 | protected function buildParameters($items, $emptyPlaceholder, $callback = null) { |
96 | 99 | if ($items === false) { |
97 | 100 | return $this->spaces(12) . $emptyPlaceholder; |