Completed
Pull Request — master (#9)
by Harry
02:43
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   +2 added lines, -2 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
         }
@@ -257,7 +257,7 @@  discard block
 block discarded – undo
257 257
             return '';
258 258
         }
259 259
 
260
-        $items = array_map(function ($item) {
260
+        $items = array_map(function($item) {
261 261
             return $item['style'];
262 262
         }, $stack);
263 263
         return sprintf(static::ESCAPE . '[%sm', implode(';', $items));
Please login to merge, or discard this patch.