@@ -25,7 +25,7 @@ |
||
| 25 | 25 | */ |
| 26 | 26 | protected function onConstruct() |
| 27 | 27 | { |
| 28 | - $this->_workDir = \realpath(\getcwd()); |
|
| 28 | + $this->_workDir = \realpath(\getcwd()); |
|
| 29 | 29 | |
| 30 | 30 | $this |
| 31 | 31 | ->option('-t --no-teardown', 'Dont add teardown method') |
@@ -100,11 +100,11 @@ discard block |
||
| 100 | 100 | $options |
| 101 | 101 | ); |
| 102 | 102 | |
| 103 | - $this->twig->addFilter(new \Twig_SimpleFilter('snake', function ($x) { |
|
| 103 | + $this->twig->addFilter(new \Twig_SimpleFilter('snake', function($x) { |
|
| 104 | 104 | return $this->inflector->snakeCase($x); |
| 105 | 105 | })); |
| 106 | 106 | |
| 107 | - $this->twig->addFilter(new \Twig_SimpleFilter('lcfirst', function ($x) { |
|
| 107 | + $this->twig->addFilter(new \Twig_SimpleFilter('lcfirst', function($x) { |
|
| 108 | 108 | return \lcfirst($x); |
| 109 | 109 | })); |
| 110 | 110 | } |
@@ -114,7 +114,7 @@ discard block |
||
| 114 | 114 | $templates = []; |
| 115 | 115 | $finder = new Finder; |
| 116 | 116 | |
| 117 | - $finder->files()->ignoreDotFiles(false)->filter(function ($file) { |
|
| 117 | + $finder->files()->ignoreDotFiles(false)->filter(function($file) { |
|
| 118 | 118 | return \substr($file, -5) === '.twig'; |
| 119 | 119 | }); |
| 120 | 120 | |
@@ -79,7 +79,7 @@ |
||
| 79 | 79 | |
| 80 | 80 | $pathUtil = new Path; |
| 81 | 81 | |
| 82 | - $proc->run(function ($type, $data) use ($pathUtil) { |
|
| 82 | + $proc->run(function($type, $data) use ($pathUtil) { |
|
| 83 | 83 | if ($this->logFile) { |
| 84 | 84 | $pathUtil->writeFile($this->logFile, $data, \FILE_APPEND); |
| 85 | 85 | } |
@@ -64,7 +64,7 @@ |
||
| 64 | 64 | |
| 65 | 65 | protected function missingOptions(array $config) |
| 66 | 66 | { |
| 67 | - return \array_filter($this->userOptions(), function ($name) use ($config) { |
|
| 67 | + return \array_filter($this->userOptions(), function($name) use ($config) { |
|
| 68 | 68 | return false !== ($config[$name] ?? null) && \in_array($this->$name, [null, []], true); |
| 69 | 69 | }, \ARRAY_FILTER_USE_KEY); |
| 70 | 70 | } |