@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | $this->currentRow = -1; |
73 | 73 | |
74 | 74 | $this->filename = null; |
75 | - $this->defineSavePath($filename, function () { |
|
75 | + $this->defineSavePath($filename, function() { |
|
76 | 76 | if (!is_null($this->filename)) { |
77 | 77 | $this->createFrom($this->filename); |
78 | 78 | } |
@@ -121,7 +121,7 @@ discard block |
||
121 | 121 | foreach ($fields as $field) { |
122 | 122 | $attr = $field->attributes->getNamedItem("name"); |
123 | 123 | if (is_null($attr)) { |
124 | - throw new \InvalidArgumentException('Malformed anydataset file ' . basename($filepath)); |
|
124 | + throw new \InvalidArgumentException('Malformed anydataset file '.basename($filepath)); |
|
125 | 125 | } |
126 | 126 | |
127 | 127 | $sr->addField($attr->nodeValue, $field->nodeValue); |
@@ -171,7 +171,7 @@ discard block |
||
171 | 171 | */ |
172 | 172 | public function save($filename = null) |
173 | 173 | { |
174 | - $this->defineSavePath($filename, function () { |
|
174 | + $this->defineSavePath($filename, function() { |
|
175 | 175 | if (is_null($this->filename)) { |
176 | 176 | throw new DatabaseException("No such file path to save anydataset"); |
177 | 177 | } |
@@ -347,7 +347,7 @@ discard block |
||
347 | 347 | $left = $right = array(); |
348 | 348 | |
349 | 349 | $cntSeq = count($seq); |
350 | - for ($i = 1; $i < $cntSeq; $i ++) { |
|
350 | + for ($i = 1; $i < $cntSeq; $i++) { |
|
351 | 351 | if ($seq[$i]->get($field) <= $key->get($field)) { |
352 | 352 | $left[] = $seq[$i]; |
353 | 353 | } else { |
@@ -357,7 +357,7 @@ discard block |
||
357 | 357 | |
358 | 358 | return array_merge( |
359 | 359 | $this->quickSortExec($left, $field), |
360 | - [ $key ], |
|
360 | + [$key], |
|
361 | 361 | $this->quickSortExec($right, $field) |
362 | 362 | ); |
363 | 363 | } |