Completed
Pull Request — master (#57)
by Jitendra
02:01
created
src/Generator/TwigGenerator.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -145,23 +145,23 @@
 block discarded – undo
145 145
             $options
146 146
         );
147 147
 
148
-        $this->twig->addFilter(new \Twig_SimpleFilter('snake', function ($x) {
148
+        $this->twig->addFilter(new \Twig_SimpleFilter('snake', function($x) {
149 149
             return $this->inflector->snakeCase($x);
150 150
         }));
151 151
 
152
-        $this->twig->addFilter(new \Twig_SimpleFilter('lcfirst', function ($x) {
152
+        $this->twig->addFilter(new \Twig_SimpleFilter('lcfirst', function($x) {
153 153
             return \lcfirst($x);
154 154
         }));
155 155
 
156
-        $this->twig->addFilter(new \Twig_SimpleFilter('ucfirst', function ($x) {
156
+        $this->twig->addFilter(new \Twig_SimpleFilter('ucfirst', function($x) {
157 157
             return \ucfirst($x);
158 158
         }));
159 159
 
160
-        $this->twig->addFunction(new \Twig_Function('gmdate', function ($f = null) {
160
+        $this->twig->addFunction(new \Twig_Function('gmdate', function($f = null) {
161 161
             return \gmdate($f ?? 'Y-m-d H:i:s');
162 162
         }));
163 163
 
164
-        $this->twig->addFunction(new \Twig_Function('call', function ($fn) {
164
+        $this->twig->addFunction(new \Twig_Function('call', function($fn) {
165 165
             return $fn(...\array_slice(\func_get_args(), 1));
166 166
         }));
167 167
     }
Please login to merge, or discard this patch.