Completed
Push — master ( 61e87b...b8e375 )
by Harry
01:35
created
src/DiffConsoleOutput.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
 
131 131
         $formatter = $this->output->getFormatter();
132 132
 
133
-        return array_map(function ($message) use ($type, $formatter) {
133
+        return array_map(function($message) use ($type, $formatter) {
134 134
             switch ($type) {
135 135
                 case OutputInterface::OUTPUT_NORMAL:
136 136
                     return $formatter->format($message);
@@ -150,11 +150,11 @@  discard block
 block discarded – undo
150 150
      */
151 151
     private function splitNewLines($messages)
152 152
     {
153
-        $exploded = array_map(function ($line) {
153
+        $exploded = array_map(function($line) {
154 154
             return explode("\n", $line);
155 155
         }, (array) $messages);
156 156
         $out = [];
157
-        array_walk_recursive($exploded, function ($a) use (&$out) {
157
+        array_walk_recursive($exploded, function($a) use (&$out) {
158 158
             $out[] = $a;
159 159
         });
160 160
         return $out;
Please login to merge, or discard this patch.
src/Terminal/ANSI.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -212,7 +212,7 @@  discard block
 block discarded – undo
212 212
     public function filter($string, $replacement = '')
213 213
     {
214 214
         if ($replacement !== '') {
215
-            return preg_replace_callback(static::REGEX_ANSI, function ($matches) use ($replacement) {
215
+            return preg_replace_callback(static::REGEX_ANSI, function($matches) use ($replacement) {
216 216
                 return str_repeat($replacement, mb_strlen($matches[0]));
217 217
             }, $string);
218 218
         }
@@ -241,7 +241,7 @@  discard block
 block discarded – undo
241 241
                     if ($key === static::STYLE_RESET) {
242 242
                         $stack = [];
243 243
                     } else {
244
-                        $stack = array_filter($stack, function ($item) use ($key) {
244
+                        $stack = array_filter($stack, function($item) use ($key) {
245 245
                             return !in_array($key, $this->formats[$item['key']]);
246 246
                         });
247 247
                     }
@@ -253,7 +253,7 @@  discard block
 block discarded – undo
253 253
             return '';
254 254
         }
255 255
 
256
-        $items = array_map(function ($item) {
256
+        $items = array_map(function($item) {
257 257
             return $item['style'];
258 258
         }, $stack);
259 259
         return sprintf(static::ESCAPE . '[%sm', implode(';', $items));
Please login to merge, or discard this patch.