Completed
Push — master ( 15b253...c9734f )
by Mehmet
01:55
created
src/Twig/TwigExtensions.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
         $dictionary = $this->config['dictionary']?? [];
33 33
         $filter = new \Twig_SimpleFunction(
34 34
             'translate',
35
-            function (
35
+            function(
36 36
                 $string
37 37
             ) use ($dictionary) {
38 38
                 if (array_key_exists($string, $dictionary)) {
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
     {
50 50
         $filter = new Twig_SimpleFunction(
51 51
             'getUrl',
52
-            function (
52
+            function(
53 53
                 $alias,
54 54
                 $params = []
55 55
             ) {
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
     {
71 71
         $filter = new \Twig_SimpleFunction(
72 72
             'Widget_*_*',
73
-            function ($widgetNameStr, $widgetActionStr, $args = []) {
73
+            function($widgetNameStr, $widgetActionStr, $args = []) {
74 74
                 $function = new Functions\Widget($this->twig, $this->config, $widgetNameStr, $widgetActionStr, $args);
75 75
                 return $function->run();
76 76
             },
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
     {
84 84
         $filter = new \Twig_SimpleFunction(
85 85
             'queryParams',
86
-            function ($queryParams, $prefix = '?') {
86
+            function($queryParams, $prefix = '?') {
87 87
                 return $prefix . http_build_query($queryParams);
88 88
             },
89 89
             array('is_safe' => array('html'))
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
     {
96 96
         $filter = new \Twig_SimpleFunction(
97 97
             'siteUrl',
98
-            function ($path = '') {
98
+            function($path = '') {
99 99
                 return $this->config['runtime']['base_url'] . $path;
100 100
             },
101 101
             array('is_safe' => array('html'))
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
     {
108 108
         $filter = new \Twig_SimpleFunction(
109 109
             'varDump',
110
-            function ($args) {
110
+            function($args) {
111 111
                 /**
112 112
             * @noinspection ForgottenDebugOutputInspection
113 113
             */
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
 */
126 126
         $filter = new \Twig_SimpleFunction(
127 127
             'Pagination',
128
-            function (
128
+            function(
129 129
                 int $total,
130 130
                 int $current,
131 131
                 string $linkTemplate,
Please login to merge, or discard this patch.