@@ -72,11 +72,11 @@ 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 | - $this->size = array_reduce($this->nodes, function ($size, IFile $file) { |
|
79 | + $this->size = array_reduce($this->nodes, function($size, IFile $file) { |
|
80 | 80 | return $size + $file->getSize(); |
81 | 81 | }, 0); |
82 | 82 | return true; |
@@ -120,7 +120,7 @@ discard block |
||
120 | 120 | fclose($this->currentStream); |
121 | 121 | $currentNodeSize = $this->nodes[$this->currentNode]->getSize(); |
122 | 122 | if ($this->currentNodeRead < $currentNodeSize) { |
123 | - throw new \Exception('Stream from assembly node shorter than expected, got ' . $this->currentNodeRead . ' bytes, expected ' . $currentNodeSize); |
|
123 | + throw new \Exception('Stream from assembly node shorter than expected, got '.$this->currentNodeRead.' bytes, expected '.$currentNodeSize); |
|
124 | 124 | } |
125 | 125 | $this->currentNode++; |
126 | 126 | $this->currentNodeRead = 0; |
@@ -215,7 +215,7 @@ discard block |
||
215 | 215 | if (isset($context[$name])) { |
216 | 216 | $context = $context[$name]; |
217 | 217 | } else { |
218 | - throw new \BadMethodCallException('Invalid context, "' . $name . '" options not set'); |
|
218 | + throw new \BadMethodCallException('Invalid context, "'.$name.'" options not set'); |
|
219 | 219 | } |
220 | 220 | if (isset($context['nodes']) and is_array($context['nodes'])) { |
221 | 221 | $this->nodes = $context['nodes']; |