@@ -45,7 +45,7 @@ |
||
| 45 | 45 | } |
| 46 | 46 | $iteration = 0; |
| 47 | 47 | |
| 48 | - $source->map(function ($buffer) use ($target, &$expression, $progress, &$iteration) { |
|
| 48 | + $source->map(function($buffer) use ($target, &$expression, $progress, &$iteration) { |
|
| 49 | 49 | if ($progress instanceof ProgressBar && $iteration % 100 == 0) { |
| 50 | 50 | $progress->advance(100); |
| 51 | 51 | } |
@@ -32,7 +32,7 @@ |
||
| 32 | 32 | $expression = $input->getArgument('expression'); |
| 33 | 33 | $count = 0; |
| 34 | 34 | $source = new File($input->getArgument('input')); |
| 35 | - $source->map(function ($buffer) use (&$count, &$expression) { |
|
| 35 | + $source->map(function($buffer) use (&$count, &$expression) { |
|
| 36 | 36 | $match = preg_match($expression, $buffer); |
| 37 | 37 | if ($match) { |
| 38 | 38 | $count++; |