Test Setup Failed
Push — master ( 38dc80...5a6d7c )
by Vojta
01:32
created
Plugin.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -113,27 +113,27 @@  discard block
 block discarded – undo
113 113
     private function getPhpFunctions(): array
114 114
     {
115 115
         return [
116
-            'strftime' => function ($time, $format = '%d.%m.%Y %H:%M:%S') {
116
+            'strftime' => function($time, $format = '%d.%m.%Y %H:%M:%S') {
117 117
                 $timeObj = new Carbon($time);
118 118
                 return strftime($format, $timeObj->getTimestamp());
119 119
             },
120
-            'ltrim' => function ($string, $charlist = " \t\n\r\0\x0B") {
120
+            'ltrim' => function($string, $charlist = " \t\n\r\0\x0B") {
121 121
                 return ltrim($string, $charlist);
122 122
             },
123
-            'rtrim' => function ($string, $charlist = " \t\n\r\0\x0B") {
123
+            'rtrim' => function($string, $charlist = " \t\n\r\0\x0B") {
124 124
                 return rtrim($string, $charlist);
125 125
             },
126
-            'strip_tags' => function ($string, $allow = '') {
126
+            'strip_tags' => function($string, $allow = '') {
127 127
                 return strip_tags($string, $allow);
128 128
             },
129
-            'var_dump' => function ($expression) {
129
+            'var_dump' => function($expression) {
130 130
                 ob_start();
131 131
                 var_dump($expression);
132 132
                 $result = ob_get_clean();
133 133
 
134 134
                 return $result;
135 135
             },
136
-            'wordwrap' => function (string $string, int $width = 75, string $break = "\n", bool $cut_long_words = false) {
136
+            'wordwrap' => function(string $string, int $width = 75, string $break = "\n", bool $cut_long_words = false) {
137 137
                 return wordwrap($string, $width, $break, $cut_long_words);
138 138
             }
139 139
         ];
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
     private function getSessionFunction(): array
146 146
     {
147 147
         return [
148
-            'session' => function ($key = null) {
148
+            'session' => function($key = null) {
149 149
                 return session($key);
150 150
             },
151 151
         ];
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
     private function getTransFunction(): array
158 158
     {
159 159
         return [
160
-            'trans' => function ($key = null, $parameters = []) {
160
+            'trans' => function($key = null, $parameters = []) {
161 161
                 return trans($key, $parameters);
162 162
             },
163 163
         ];
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
169 169
     private function getVarDumpFunction(): array
170 170
     {
171 171
         return [
172
-            'var_dump' => function ($expression) {
172
+            'var_dump' => function($expression) {
173 173
                 ob_start();
174 174
                 var_dump($expression);
175 175
                 $result = ob_get_clean();
@@ -191,15 +191,15 @@  discard block
 block discarded – undo
191 191
     private function getFileRevision()
192 192
     {
193 193
         return [
194
-            'revision' => function ($filename, $format = null) {
194
+            'revision' => function($filename, $format = null) {
195 195
                 // Remove http/web address from the file name if there is one to load it locally
196 196
                 $prefix = url('/');
197
-                $filename_ = trim(preg_replace('/^' . preg_quote($prefix, '/') . '/', '', $filename), '/');
197
+                $filename_ = trim(preg_replace('/^'.preg_quote($prefix, '/').'/', '', $filename), '/');
198 198
                 if (file_exists($filename_)) {
199 199
                     $timestamp = filemtime($filename_);
200 200
                     $prepend = ($format) ? date($format, $timestamp) : $timestamp;
201 201
 
202
-                    return $filename . "?" . $prepend;
202
+                    return $filename."?".$prepend;
203 203
                 }
204 204
 
205 205
                 return $filename;
Please login to merge, or discard this patch.
tests/PluginTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@
 block discarded – undo
6 6
 use PluginTestCase;
7 7
 use Twig_Environment;
8 8
 
9
-require_once __DIR__ . '/../vendor/autoload.php';
9
+require_once __DIR__.'/../vendor/autoload.php';
10 10
 
11 11
 class PluginTest extends PluginTestCase
12 12
 {
Please login to merge, or discard this patch.