@@ -72,14 +72,14 @@ discard block |
||
| 72 | 72 | |
| 73 | 73 | $nodes = $this->nodes; |
| 74 | 74 | // http://stackoverflow.com/a/10985500 |
| 75 | - @usort($nodes, function (IFile $a, IFile $b) { |
|
| 75 | + @usort($nodes, function(IFile $a, IFile $b) { |
|
| 76 | 76 | return strnatcmp($a->getName(), $b->getName()); |
| 77 | 77 | }); |
| 78 | 78 | $this->nodes = array_values($nodes); |
| 79 | 79 | if (count($this->nodes) > 0) { |
| 80 | 80 | $this->currentStream = $this->getStream($this->nodes[0]); |
| 81 | 81 | } |
| 82 | - $this->size = array_reduce($this->nodes, function ($size, IFile $file) { |
|
| 82 | + $this->size = array_reduce($this->nodes, function($size, IFile $file) { |
|
| 83 | 83 | return $size + $file->getSize(); |
| 84 | 84 | }, 0); |
| 85 | 85 | return true; |
@@ -119,7 +119,7 @@ discard block |
||
| 119 | 119 | fclose($this->currentStream); |
| 120 | 120 | $currentNodeSize = $this->nodes[$this->currentNode]->getSize(); |
| 121 | 121 | if ($this->currentNodeRead < $currentNodeSize) { |
| 122 | - throw new \Exception('Stream from assembly node shorter than expected, got ' . $this->currentNodeRead . ' bytes, expected ' . $currentNodeSize); |
|
| 122 | + throw new \Exception('Stream from assembly node shorter than expected, got '.$this->currentNodeRead.' bytes, expected '.$currentNodeSize); |
|
| 123 | 123 | } |
| 124 | 124 | $this->currentNode++; |
| 125 | 125 | $this->currentNodeRead = 0; |
@@ -214,7 +214,7 @@ discard block |
||
| 214 | 214 | if (isset($context[$name])) { |
| 215 | 215 | $context = $context[$name]; |
| 216 | 216 | } else { |
| 217 | - throw new \BadMethodCallException('Invalid context, "' . $name . '" options not set'); |
|
| 217 | + throw new \BadMethodCallException('Invalid context, "'.$name.'" options not set'); |
|
| 218 | 218 | } |
| 219 | 219 | if (isset($context['nodes']) and is_array($context['nodes'])) { |
| 220 | 220 | $this->nodes = $context['nodes']; |