Completed
Push — master ( 90104f...724d92 )
by Mehmet
21:23
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
             ) {
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
     {
66 66
         $filter = new \Twig_SimpleFunction(
67 67
             'Widget_*_*',
68
-            function ($widgetNameStr, $widgetActionStr, $args = []) {
68
+            function($widgetNameStr, $widgetActionStr, $args = []) {
69 69
                 $function = new Functions\Widget($this->twig, $this->config, $widgetNameStr, $widgetActionStr, $args);
70 70
                 return $function->run();
71 71
             },
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
     {
79 79
         $filter = new \Twig_SimpleFunction(
80 80
             'queryParams',
81
-            function ($queryParams, $prefix = '?') {
81
+            function($queryParams, $prefix = '?') {
82 82
                 return $prefix . http_build_query($queryParams);
83 83
             },
84 84
             array('is_safe' => array('html'))
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
     {
91 91
         $filter = new \Twig_SimpleFunction(
92 92
             'siteUrl',
93
-            function ($path = '') {
93
+            function($path = '') {
94 94
                 return $this->config['base_url'] . $path;
95 95
             },
96 96
             array('is_safe' => array('html'))
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
     {
103 103
         $filter = new \Twig_SimpleFunction(
104 104
             'varDump',
105
-            function ($args) {
105
+            function($args) {
106 106
                 /**
107 107
             * @noinspection ForgottenDebugOutputInspection
108 108
             */
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
 */
121 121
         $filter = new \Twig_SimpleFunction(
122 122
             'Pagination',
123
-            function (
123
+            function(
124 124
                 int $total,
125 125
                 int $current,
126 126
                 string $linkTemplate,
Please login to merge, or discard this patch.