@@ -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') |
@@ -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 | } |
@@ -111,15 +111,15 @@ discard block |
||
| 111 | 111 | $options |
| 112 | 112 | ); |
| 113 | 113 | |
| 114 | - $this->twig->addFilter(new \Twig_SimpleFilter('snake', function ($x) { |
|
| 114 | + $this->twig->addFilter(new \Twig_SimpleFilter('snake', function($x) { |
|
| 115 | 115 | return $this->inflector->snakeCase($x); |
| 116 | 116 | })); |
| 117 | 117 | |
| 118 | - $this->twig->addFilter(new \Twig_SimpleFilter('lcfirst', function ($x) { |
|
| 118 | + $this->twig->addFilter(new \Twig_SimpleFilter('lcfirst', function($x) { |
|
| 119 | 119 | return \lcfirst($x); |
| 120 | 120 | })); |
| 121 | 121 | |
| 122 | - $this->twig->addFunction(new \Twig_Function('gmdate', function ($f = null) { |
|
| 122 | + $this->twig->addFunction(new \Twig_Function('gmdate', function($f = null) { |
|
| 123 | 123 | return \gmdate($f ?? 'Y-m-d H:i:s'); |
| 124 | 124 | })); |
| 125 | 125 | } |
@@ -129,7 +129,7 @@ discard block |
||
| 129 | 129 | $templates = []; |
| 130 | 130 | $finder = new Finder; |
| 131 | 131 | |
| 132 | - $finder->files()->ignoreDotFiles(false)->filter(function ($file) { |
|
| 132 | + $finder->files()->ignoreDotFiles(false)->filter(function($file) { |
|
| 133 | 133 | return \substr($file, -5) === '.twig'; |
| 134 | 134 | }); |
| 135 | 135 | |