@@ -27,7 +27,7 @@ discard block |
||
| 27 | 27 | */ |
| 28 | 28 | public function __construct(File $file_dispatch) |
| 29 | 29 | { |
| 30 | - $this->stubs_dir = __DIR__.'/'; |
|
| 30 | + $this->stubs_dir = __DIR__ . '/'; |
|
| 31 | 31 | $this->file_dispatch = $file_dispatch; |
| 32 | 32 | } |
| 33 | 33 | |
@@ -41,7 +41,7 @@ discard block |
||
| 41 | 41 | */ |
| 42 | 42 | public function get($stub) |
| 43 | 43 | { |
| 44 | - $file = $this->stubs_dir.$stub.'.stub'; |
|
| 44 | + $file = $this->stubs_dir . $stub . '.stub'; |
|
| 45 | 45 | |
| 46 | 46 | if (false === $this->file_dispatch->exists($file)) { |
| 47 | 47 | throw new InvalidArgumentException( |
@@ -64,7 +64,7 @@ discard block |
||
| 64 | 64 | public function hydrate($contents, array $data) |
| 65 | 65 | { |
| 66 | 66 | foreach ($data as $key => $value) { |
| 67 | - $contents = str_replace('%'.$key.'%', $value, $contents); |
|
| 67 | + $contents = str_replace('%' . $key . '%', $value, $contents); |
|
| 68 | 68 | } |
| 69 | 69 | |
| 70 | 70 | return $contents; |
@@ -23,7 +23,7 @@ |
||
| 23 | 23 | /** |
| 24 | 24 | * Create a new stub manager. |
| 25 | 25 | * |
| 26 | - * @param Enzyme\Parrot\File $file_dispatch A parrot file dispatch wrapper. |
|
| 26 | + * @param File $file_dispatch A parrot file dispatch wrapper. |
|
| 27 | 27 | */ |
| 28 | 28 | public function __construct(File $file_dispatch) |
| 29 | 29 | { |
@@ -158,7 +158,7 @@ |
||
| 158 | 158 | |
| 159 | 159 | $class = $dont_affix_type === true |
| 160 | 160 | ? $name |
| 161 | - : $name.$uc_type; |
|
| 161 | + : $name . $uc_type; |
|
| 162 | 162 | |
| 163 | 163 | if (true === $output->isVerbose()) { |
| 164 | 164 | $output->writeln("<comment> Namespace -> {$this->namespace}</comment>"); |
@@ -44,8 +44,8 @@ |
||
| 44 | 44 | /** |
| 45 | 45 | * Instantiate a new command. |
| 46 | 46 | * |
| 47 | - * @param Enzyme\Axiom\Console\Stubs\Manager $stub_manager |
|
| 48 | - * @param Enzyme\Axiom\Console\Config $config |
|
| 47 | + * @param StubManager $stub_manager |
|
| 48 | + * @param Config $config |
|
| 49 | 49 | */ |
| 50 | 50 | public function __construct(StubManager $stub_manager, Config $config) |
| 51 | 51 | { |
@@ -39,8 +39,8 @@ |
||
| 39 | 39 | /** |
| 40 | 40 | * Create a new configuration manager. |
| 41 | 41 | * |
| 42 | - * @param Symfony\Component\Yaml\Parser $parser |
|
| 43 | - * @param Enzyme\Parrot\File $file_dispatch |
|
| 42 | + * @param Parser $parser |
|
| 43 | + * @param File $file_dispatch |
|
| 44 | 44 | */ |
| 45 | 45 | public function __construct(Parser $parser, File $file_dispatch) |
| 46 | 46 | { |