| @@ -27,7 +27,7 @@ | ||
| 27 | 27 | /** | 
| 28 | 28 | * Converts a parse exception to a string. | 
| 29 | 29 | * | 
| 30 | - * @param Tarsana\Syntax\Exceptions\ParseException $e | |
| 30 | + * @param ParseException $e | |
| 31 | 31 | * @return string | 
| 32 | 32 | */ | 
| 33 | 33 | public function printParseException(ParseException $e) : string | 
| @@ -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 | } | 
| @@ -69,7 +69,7 @@ | ||
| 69 | 69 | * or if many exists. | 
| 70 | 70 | * | 
| 71 | 71 | * @param string $name | 
| 72 | - * @return Tarsana\Command\Interfaces\TemplateInterface | |
| 72 | + * @return TemplateInterface | |
| 73 | 73 | * @throws Tarsana\Command\Exceptions\TemplateNotFound | 
| 74 | 74 | * @throws Tarsana\Command\Exceptions\TemplateNameConflict | 
| 75 | 75 | */ | 
| @@ -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,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); | 
| @@ -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 | } | 
| @@ -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; |