@@ -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 | } |
@@ -33,7 +33,7 @@ |
||
33 | 33 | */ |
34 | 34 | protected function onConstruct() |
35 | 35 | { |
36 | - $this->_workDir = \realpath(\getcwd()); |
|
36 | + $this->_workDir = \realpath(\getcwd()); |
|
37 | 37 | |
38 | 38 | $this |
39 | 39 | ->option('-o --output', 'Output file (default README.md). For old project you should use something else' |
@@ -128,7 +128,7 @@ |
||
128 | 128 | $ext = '.' . \ltrim($ext, '.'); |
129 | 129 | $len = \strlen($ext); |
130 | 130 | |
131 | - $finder->filter(function ($file) use ($ext, $len) { |
|
131 | + $finder->filter(function($file) use ($ext, $len) { |
|
132 | 132 | return \substr($file, -$len) === $ext; |
133 | 133 | }); |
134 | 134 | } |
@@ -137,23 +137,23 @@ |
||
137 | 137 | $options |
138 | 138 | ); |
139 | 139 | |
140 | - $this->twig->addFilter(new \Twig_SimpleFilter('snake', function ($x) { |
|
140 | + $this->twig->addFilter(new \Twig_SimpleFilter('snake', function($x) { |
|
141 | 141 | return $this->inflector->snakeCase($x); |
142 | 142 | })); |
143 | 143 | |
144 | - $this->twig->addFilter(new \Twig_SimpleFilter('lcfirst', function ($x) { |
|
144 | + $this->twig->addFilter(new \Twig_SimpleFilter('lcfirst', function($x) { |
|
145 | 145 | return \lcfirst($x); |
146 | 146 | })); |
147 | 147 | |
148 | - $this->twig->addFilter(new \Twig_SimpleFilter('ucfirst', function ($x) { |
|
148 | + $this->twig->addFilter(new \Twig_SimpleFilter('ucfirst', function($x) { |
|
149 | 149 | return \ucfirst($x); |
150 | 150 | })); |
151 | 151 | |
152 | - $this->twig->addFunction(new \Twig_Function('gmdate', function ($f = null) { |
|
152 | + $this->twig->addFunction(new \Twig_Function('gmdate', function($f = null) { |
|
153 | 153 | return \gmdate($f ?? 'Y-m-d H:i:s'); |
154 | 154 | })); |
155 | 155 | |
156 | - $this->twig->addFilter(new \Twig_SimpleFilter('call', function ($fn) { |
|
156 | + $this->twig->addFilter(new \Twig_SimpleFilter('call', function($fn) { |
|
157 | 157 | return $fn(\array_slice(\func_get_args(), 1)); |
158 | 158 | })); |
159 | 159 | } |