@@ -74,11 +74,11 @@ discard block |
||
| 74 | 74 | |
| 75 | 75 | $nodes = $this->nodes; |
| 76 | 76 | // https://stackoverflow.com/a/10985500 |
| 77 | - @usort($nodes, function (IFile $a, IFile $b) { |
|
| 77 | + @usort($nodes, function(IFile $a, IFile $b) { |
|
| 78 | 78 | return strnatcmp($a->getName(), $b->getName()); |
| 79 | 79 | }); |
| 80 | 80 | $this->nodes = array_values($nodes); |
| 81 | - $this->size = array_reduce($this->nodes, function ($size, IFile $file) { |
|
| 81 | + $this->size = array_reduce($this->nodes, function($size, IFile $file) { |
|
| 82 | 82 | return $size + $file->getSize(); |
| 83 | 83 | }, 0); |
| 84 | 84 | return true; |
@@ -156,7 +156,7 @@ discard block |
||
| 156 | 156 | fclose($this->currentStream); |
| 157 | 157 | $currentNodeSize = $this->nodes[$this->currentNode]->getSize(); |
| 158 | 158 | if ($this->currentNodeRead < $currentNodeSize) { |
| 159 | - throw new \Exception('Stream from assembly node shorter than expected, got ' . $this->currentNodeRead . ' bytes, expected ' . $currentNodeSize); |
|
| 159 | + throw new \Exception('Stream from assembly node shorter than expected, got '.$this->currentNodeRead.' bytes, expected '.$currentNodeSize); |
|
| 160 | 160 | } |
| 161 | 161 | $this->currentNode++; |
| 162 | 162 | $this->currentNodeRead = 0; |
@@ -253,7 +253,7 @@ discard block |
||
| 253 | 253 | if (isset($context[$name])) { |
| 254 | 254 | $context = $context[$name]; |
| 255 | 255 | } else { |
| 256 | - throw new \BadMethodCallException('Invalid context, "' . $name . '" options not set'); |
|
| 256 | + throw new \BadMethodCallException('Invalid context, "'.$name.'" options not set'); |
|
| 257 | 257 | } |
| 258 | 258 | if (isset($context['nodes']) and is_array($context['nodes'])) { |
| 259 | 259 | $this->nodes = $context['nodes']; |