@@ -65,7 +65,7 @@ |
||
| 65 | 65 | yield \sprintf('BM %d', Fingerprint::DEFAULT_BARCODE_MAGNIFICATION); |
| 66 | 66 | } |
| 67 | 67 | |
| 68 | - if (! $command->isReadable()) { |
|
| 68 | + if (!$command->isReadable()) { |
|
| 69 | 69 | yield 'BF ON'; |
| 70 | 70 | } |
| 71 | 71 | } |
@@ -118,7 +118,7 @@ |
||
| 118 | 118 | { |
| 119 | 119 | $this->lastError = null; |
| 120 | 120 | |
| 121 | - \set_error_handler(function ($severity, $message, $file, $line) { |
|
| 121 | + \set_error_handler(function($severity, $message, $file, $line) { |
|
| 122 | 122 | $this->lastError = \compact('severity', 'message', 'file', 'line'); |
| 123 | 123 | }); |
| 124 | 124 | } |
@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | private function scan(): \Generator |
| 41 | 41 | { |
| 42 | 42 | foreach ((new \ImagickPixelIterator($this->image)) as $y => $line) { |
| 43 | - $buffer = \array_reduce($line, static function ($carry, $pixel) { |
|
| 43 | + $buffer = \array_reduce($line, static function($carry, $pixel) { |
|
| 44 | 44 | $color = $pixel->getColor(); |
| 45 | 45 | |
| 46 | 46 | $carry[] = 1 - ((int) (($color['r'] + $color['g'] + $color['b']) / 3) >> 7); |
@@ -94,7 +94,7 @@ discard block |
||
| 94 | 94 | return; |
| 95 | 95 | } |
| 96 | 96 | |
| 97 | - \array_map(static function () use (&$buffer) { |
|
| 97 | + \array_map(static function() use (&$buffer) { |
|
| 98 | 98 | $buffer[] = self::MAX_RUN_LENGTH; |
| 99 | 99 | $buffer[] = 0; |
| 100 | 100 | }, \range(1, \intdiv($length, self::MAX_RUN_LENGTH))); |
@@ -145,7 +145,7 @@ discard block |
||
| 145 | 145 | } elseif ($count > 1 && $count <= self::MAX_LINE_REPETITIONS) { |
| 146 | 146 | $buffer[] = $this->buildLineRepetition($line, $count); |
| 147 | 147 | } else { |
| 148 | - \array_map(function () use (&$buffer, $line) { |
|
| 148 | + \array_map(function() use (&$buffer, $line) { |
|
| 149 | 149 | $buffer[] = $this->buildLineRepetition($line, self::MAX_LINE_REPETITIONS); |
| 150 | 150 | }, \range(1, \intdiv($count, self::MAX_LINE_REPETITIONS))); |
| 151 | 151 | |
@@ -120,7 +120,7 @@ |
||
| 120 | 120 | $lines = []; |
| 121 | 121 | $lineWidth = []; |
| 122 | 122 | |
| 123 | - while(\count($words) > 0) { |
|
| 123 | + while (\count($words) > 0) { |
|
| 124 | 124 | $metrics = $this->image->queryFontMetrics($canvas, \implode(' ', \array_slice($words, 0, $i))); |
| 125 | 125 | |
| 126 | 126 | if ($metrics['textWidth'] > $this->width || \count($words) < $i) { |
@@ -46,7 +46,7 @@ |
||
| 46 | 46 | $instructions[] = $this->compileBatch($job); |
| 47 | 47 | } |
| 48 | 48 | |
| 49 | - $payload = \array_reduce($instructions, static function ($carry, $item) { |
|
| 49 | + $payload = \array_reduce($instructions, static function($carry, $item) { |
|
| 50 | 50 | return $item instanceof \Generator |
| 51 | 51 | ? \array_merge($carry, \iterator_to_array($item, false)) |
| 52 | 52 | : \array_merge($carry, $item); |
@@ -124,7 +124,7 @@ |
||
| 124 | 124 | * |
| 125 | 125 | * @return $this |
| 126 | 126 | */ |
| 127 | - public function for(string $language, callable $callback) |
|
| 127 | + public function for (string $language, callable $callback) |
|
| 128 | 128 | { |
| 129 | 129 | $this->statements[] = new LanguageCondition($language, $callback); |
| 130 | 130 | |