@@ -62,11 +62,11 @@ |
||
62 | 62 | $default = 'default: ' . json_encode($s->getDefault()); |
63 | 63 | else |
64 | 64 | $default = 'required'; |
65 | - $description = $this->parent()->describe($prefix.$name); |
|
65 | + $description = $this->parent()->describe($prefix . $name); |
|
66 | 66 | $syntax = $this->formatSyntax($s); |
67 | 67 | $this->console()->line("{$tabs}<warn>{$name}</warn> <success>{$syntax}</success> {$description} <info>({$default})</info>"); |
68 | 68 | |
69 | - $level ++; |
|
69 | + $level++; |
|
70 | 70 | $prefix .= $name . '.'; |
71 | 71 | foreach ($this->getFields($s) as $field => $syntax) { |
72 | 72 | $this->printField($field, $syntax, $prefix, $level); |
@@ -44,14 +44,14 @@ discard block |
||
44 | 44 | { |
45 | 45 | $this->commands = []; |
46 | 46 | $this->setupSubCommands() |
47 | - ->name('Unknown') |
|
48 | - ->version('1.0.0') |
|
49 | - ->description('...') |
|
50 | - ->descriptions([]) |
|
51 | - ->options([]) |
|
52 | - ->console(new Console) |
|
53 | - ->fs(new Filesystem('.')) |
|
54 | - ->init(); |
|
47 | + ->name('Unknown') |
|
48 | + ->version('1.0.0') |
|
49 | + ->description('...') |
|
50 | + ->descriptions([]) |
|
51 | + ->options([]) |
|
52 | + ->console(new Console) |
|
53 | + ->fs(new Filesystem('.')) |
|
54 | + ->init(); |
|
55 | 55 | } |
56 | 56 | |
57 | 57 | /** |
@@ -269,7 +269,7 @@ discard block |
||
269 | 269 | protected function setupSubCommands() |
270 | 270 | { |
271 | 271 | return $this->command('--help', new HelpCommand($this)) |
272 | - ->command('--version', new VersionCommand($this)); |
|
272 | + ->command('--version', new VersionCommand($this)); |
|
273 | 273 | } |
274 | 274 | |
275 | 275 | public function describe(string $name, string $description = null) |
@@ -142,7 +142,7 @@ discard block |
||
142 | 142 | } |
143 | 143 | |
144 | 144 | $this->options = []; |
145 | - foreach($options as $option) |
|
145 | + foreach ($options as $option) |
|
146 | 146 | $this->options[$option] = false; |
147 | 147 | |
148 | 148 | return $this; |
@@ -330,7 +330,7 @@ discard block |
||
330 | 330 | public function clear() |
331 | 331 | { |
332 | 332 | $this->args = null; |
333 | - foreach($this->options as $name => $value) { |
|
333 | + foreach ($this->options as $name => $value) { |
|
334 | 334 | $this->options[$name] = false; |
335 | 335 | } |
336 | 336 | } |
@@ -73,7 +73,7 @@ |
||
73 | 73 | * @throws Tarsana\Command\Exceptions\TemplateNotFound |
74 | 74 | * @throws Tarsana\Command\Exceptions\TemplateNameConflict |
75 | 75 | */ |
76 | - public function load (string $name) : TemplateInterface |
|
76 | + public function load(string $name) : TemplateInterface |
|
77 | 77 | { |
78 | 78 | $supportedExtensions = array_keys(self::$providers); |
79 | 79 |
@@ -16,7 +16,7 @@ discard block |
||
16 | 16 | */ |
17 | 17 | protected $data; |
18 | 18 | |
19 | - public function __construct ($twig) |
|
19 | + public function __construct($twig) |
|
20 | 20 | { |
21 | 21 | $this->twig = $twig; |
22 | 22 | $this->data = []; |
@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | * @param array $data |
29 | 29 | * @return self |
30 | 30 | */ |
31 | - public function bind (array $data) : TemplateInterface |
|
31 | + public function bind(array $data) : TemplateInterface |
|
32 | 32 | { |
33 | 33 | $this->data = array_merge($this->data, $data); |
34 | 34 | return $this; |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | * |
53 | 53 | * @return self |
54 | 54 | */ |
55 | - public function clean () : TemplateInterface |
|
55 | + public function clean() : TemplateInterface |
|
56 | 56 | { |
57 | 57 | $this->data = []; |
58 | 58 | return $this; |
@@ -62,7 +62,7 @@ |
||
62 | 62 | } |
63 | 63 | if ($s instanceof ArraySyntax) { |
64 | 64 | if ($short) return 'array'; |
65 | - return $this->printSyntax($s->syntax()).$s->separator().'...'; |
|
65 | + return $this->printSyntax($s->syntax()) . $s->separator() . '...'; |
|
66 | 66 | } |
67 | 67 | return (string) $s; |
68 | 68 | } |