@@ -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 | |
@@ -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 | } |
@@ -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 clear () : TemplateInterface |
|
| 55 | + public function clear() : TemplateInterface |
|
| 56 | 56 | { |
| 57 | 57 | $this->data = []; |
| 58 | 58 | return $this; |
@@ -4,7 +4,7 @@ |
||
| 4 | 4 | |
| 5 | 5 | class RepeatCommand extends Command { |
| 6 | 6 | |
| 7 | - protected function init () |
|
| 7 | + protected function init() |
|
| 8 | 8 | { |
| 9 | 9 | $this->name('Repeat') |
| 10 | 10 | ->version('1.0.0') |
@@ -4,7 +4,7 @@ |
||
| 4 | 4 | |
| 5 | 5 | class RenderCommand extends Command { |
| 6 | 6 | |
| 7 | - protected function init () |
|
| 7 | + protected function init() |
|
| 8 | 8 | { |
| 9 | 9 | $this->name('Render') |
| 10 | 10 | ->version('1.0.0') |
@@ -4,7 +4,7 @@ discard block |
||
| 4 | 4 | |
| 5 | 5 | class ListCommand extends Command { |
| 6 | 6 | |
| 7 | - protected function init () |
|
| 7 | + protected function init() |
|
| 8 | 8 | { |
| 9 | 9 | $this->name('List') |
| 10 | 10 | ->version('1.0.0-alpha') |
@@ -13,7 +13,7 @@ discard block |
||
| 13 | 13 | |
| 14 | 14 | protected function execute() |
| 15 | 15 | { |
| 16 | - foreach($this->fs->find('*')->asArray() as $file) { |
|
| 16 | + foreach ($this->fs->find('*')->asArray() as $file) { |
|
| 17 | 17 | $this->console->line($file->name()); |
| 18 | 18 | } |
| 19 | 19 | } |
@@ -4,7 +4,7 @@ |
||
| 4 | 4 | |
| 5 | 5 | class HelloWorld extends Command { |
| 6 | 6 | |
| 7 | - protected function init () |
|
| 7 | + protected function init() |
|
| 8 | 8 | { |
| 9 | 9 | $this->name('Hello World') |
| 10 | 10 | ->version('1.0.0-alpha') |
@@ -143,7 +143,7 @@ discard block |
||
| 143 | 143 | } |
| 144 | 144 | |
| 145 | 145 | $this->options = []; |
| 146 | - foreach($options as $option) |
|
| 146 | + foreach ($options as $option) |
|
| 147 | 147 | $this->options[$option] = false; |
| 148 | 148 | |
| 149 | 149 | return $this; |
@@ -365,7 +365,7 @@ discard block |
||
| 365 | 365 | protected function clear() |
| 366 | 366 | { |
| 367 | 367 | $this->args = null; |
| 368 | - foreach($this->options as $name => $value) { |
|
| 368 | + foreach ($this->options as $name => $value) { |
|
| 369 | 369 | $this->options[$name] = false; |
| 370 | 370 | } |
| 371 | 371 | } |
@@ -88,11 +88,11 @@ |
||
| 88 | 88 | $default = 'default: ' . json_encode($s->getDefault()); |
| 89 | 89 | else |
| 90 | 90 | $default = 'required'; |
| 91 | - $description = $this->parent()->describe($prefix.$name); |
|
| 91 | + $description = $this->parent()->describe($prefix . $name); |
|
| 92 | 92 | $syntax = $this->helper->asString($s); |
| 93 | 93 | $text = "{$tabs}<warn>{$name}</warn> <success>{$syntax}</success>" |
| 94 | 94 | . " {$description} <info>({$default})</info><br>"; |
| 95 | - $level ++; |
|
| 95 | + $level++; |
|
| 96 | 96 | $prefix .= $name . '.'; |
| 97 | 97 | foreach ($this->helper->fields($s) as $field => $syntax) { |
| 98 | 98 | $text .= $this->fieldHelp($field, $syntax, $prefix, $level); |