Completed
Push — master ( 973e37...678a9c )
by Jitendra
01:47
created
src/Generator/TwigGenerator.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -111,15 +111,15 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.