Test Failed
Push — master ( f17c7d...c76dad )
by Vojta
13:50
created
Plugin.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
     {
33 33
         // register Intl functions and filters
34 34
         if (class_exists(IntlExtension::class)) {
35
-            Event::listen('system.extendTwig', function (Environment $twig) {
35
+            Event::listen('system.extendTwig', function(Environment $twig) {
36 36
                 $twig->addExtension(new IntlExtension());
37 37
             });
38 38
         }
@@ -91,27 +91,27 @@  discard block
 block discarded – undo
91 91
     private function getPhpFunctions(): array
92 92
     {
93 93
         return [
94
-            'strftime' => function ($time, $format = '%d.%m.%Y %H:%M:%S') {
94
+            'strftime' => function($time, $format = '%d.%m.%Y %H:%M:%S') {
95 95
                 $timeObj = new Carbon($time);
96 96
                 return strftime($format, $timeObj->getTimestamp());
97 97
             },
98
-            'ltrim' => function ($string, $charlist = " \t\n\r\0\x0B") {
98
+            'ltrim' => function($string, $charlist = " \t\n\r\0\x0B") {
99 99
                 return ltrim($string, $charlist);
100 100
             },
101
-            'rtrim' => function ($string, $charlist = " \t\n\r\0\x0B") {
101
+            'rtrim' => function($string, $charlist = " \t\n\r\0\x0B") {
102 102
                 return rtrim($string, $charlist);
103 103
             },
104
-            'strip_tags' => function ($string, $allow = '') {
104
+            'strip_tags' => function($string, $allow = '') {
105 105
                 return strip_tags($string, $allow);
106 106
             },
107
-            'var_dump' => function ($expression) {
107
+            'var_dump' => function($expression) {
108 108
                 ob_start();
109 109
                 var_dump($expression);
110 110
                 $result = ob_get_clean();
111 111
 
112 112
                 return $result;
113 113
             },
114
-            'wordwrap' => function (string $string, int $width = 75, string $break = "\n", bool $cut_long_words = false) {
114
+            'wordwrap' => function(string $string, int $width = 75, string $break = "\n", bool $cut_long_words = false) {
115 115
                 return wordwrap($string, $width, $break, $cut_long_words);
116 116
             }
117 117
         ];
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
     private function getSessionFunction(): array
124 124
     {
125 125
         return [
126
-            'session' => function ($key = null) {
126
+            'session' => function($key = null) {
127 127
                 return session($key);
128 128
             },
129 129
         ];
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
     private function getTransFunction(): array
136 136
     {
137 137
         return [
138
-            'trans' => function ($key = null, $parameters = []) {
138
+            'trans' => function($key = null, $parameters = []) {
139 139
                 return trans($key, $parameters);
140 140
             },
141 141
         ];
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
     private function getVarDumpFunction(): array
148 148
     {
149 149
         return [
150
-            'var_dump' => function ($expression) {
150
+            'var_dump' => function($expression) {
151 151
                 ob_start();
152 152
                 var_dump($expression);
153 153
                 $result = ob_get_clean();
@@ -169,15 +169,15 @@  discard block
 block discarded – undo
169 169
     private function getFileRevision()
170 170
     {
171 171
         return [
172
-            'revision' => function ($filename, $format = null) {
172
+            'revision' => function($filename, $format = null) {
173 173
                 // Remove http/web address from the file name if there is one to load it locally
174 174
                 $prefix = url('/');
175
-                $filename_ = trim(preg_replace('/^' . preg_quote($prefix, '/') . '/', '', $filename), '/');
175
+                $filename_ = trim(preg_replace('/^'.preg_quote($prefix, '/').'/', '', $filename), '/');
176 176
                 if (file_exists($filename_)) {
177 177
                     $timestamp = filemtime($filename_);
178 178
                     $prepend = ($format) ? date($format, $timestamp) : $timestamp;
179 179
 
180
-                    return $filename . "?" . $prepend;
180
+                    return $filename."?".$prepend;
181 181
                 }
182 182
 
183 183
                 return $filename;
Please login to merge, or discard this patch.