@@ -73,7 +73,7 @@ discard block |
||
| 73 | 73 | $this->currentRow = -1; |
| 74 | 74 | |
| 75 | 75 | $this->filename = null; |
| 76 | - $this->defineSavePath($filename, function () { |
|
| 76 | + $this->defineSavePath($filename, function() { |
|
| 77 | 77 | if (!is_null($this->filename)) { |
| 78 | 78 | $this->createFrom($this->filename); |
| 79 | 79 | } |
@@ -122,7 +122,7 @@ discard block |
||
| 122 | 122 | foreach ($fields as $field) { |
| 123 | 123 | $attr = $field->attributes->getNamedItem("name"); |
| 124 | 124 | if (is_null($attr)) { |
| 125 | - throw new InvalidArgumentException('Malformed anydataset file ' . basename($filepath)); |
|
| 125 | + throw new InvalidArgumentException('Malformed anydataset file '.basename($filepath)); |
|
| 126 | 126 | } |
| 127 | 127 | |
| 128 | 128 | $sr->addField($attr->nodeValue, $field->nodeValue); |
@@ -152,7 +152,7 @@ discard block |
||
| 152 | 152 | */ |
| 153 | 153 | public function save($filename = null) |
| 154 | 154 | { |
| 155 | - $this->defineSavePath($filename, function () { |
|
| 155 | + $this->defineSavePath($filename, function() { |
|
| 156 | 156 | if (is_null($this->filename)) { |
| 157 | 157 | throw new DatabaseException("No such file path to save anydataset"); |
| 158 | 158 | } |
@@ -329,7 +329,7 @@ discard block |
||
| 329 | 329 | $left = $right = array(); |
| 330 | 330 | |
| 331 | 331 | $cntSeq = count($seq); |
| 332 | - for ($i = 1; $i < $cntSeq; $i ++) { |
|
| 332 | + for ($i = 1; $i < $cntSeq; $i++) { |
|
| 333 | 333 | if ($seq[$i]->get($field) <= $key->get($field)) { |
| 334 | 334 | $left[] = $seq[$i]; |
| 335 | 335 | } else { |
@@ -339,7 +339,7 @@ discard block |
||
| 339 | 339 | |
| 340 | 340 | return array_merge( |
| 341 | 341 | $this->quickSortExec($left, $field), |
| 342 | - [ $key ], |
|
| 342 | + [$key], |
|
| 343 | 343 | $this->quickSortExec($right, $field) |
| 344 | 344 | ); |
| 345 | 345 | } |