| @@ -222,7 +222,7 @@ | ||
| 222 | 222 | return json_decode(json_encode($this->row)); | 
| 223 | 223 |          } else { | 
| 224 | 224 | throw new UnexpectedValueException( | 
| 225 | - 'I expected that getRawFormat is array() but ' . gettype($this->row) . ' was given' | |
| 225 | + 'I expected that getRawFormat is array() but '.gettype($this->row).' was given' | |
| 226 | 226 | ); | 
| 227 | 227 | } | 
| 228 | 228 | } | 
| @@ -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 | } | 
| @@ -7,10 +7,10 @@ discard block | ||
| 7 | 7 |  { | 
| 8 | 8 | protected $fieldValidator = []; | 
| 9 | 9 | |
| 10 | - const REQUIRED="required"; | |
| 11 | - const NUMBER="number"; | |
| 12 | - const REGEX="regex"; | |
| 13 | - const CUSTOM="custom"; | |
| 10 | + const REQUIRED = "required"; | |
| 11 | + const NUMBER = "number"; | |
| 12 | + const REGEX = "regex"; | |
| 13 | + const CUSTOM = "custom"; | |
| 14 | 14 | |
| 15 | 15 | protected function setProperty($fieldList, $property, $value) | 
| 16 | 16 |      { | 
| @@ -18,7 +18,7 @@ discard block | ||
| 18 | 18 |              if (!isset($this->fieldValidator[$field])) { | 
| 19 | 19 | $this->fieldValidator[$field] = []; | 
| 20 | 20 | } | 
| 21 | - $this->fieldValidator[$field] = [ $property => $value ]; | |
| 21 | + $this->fieldValidator[$field] = [$property => $value]; | |
| 22 | 22 | } | 
| 23 | 23 | } | 
| 24 | 24 | |
| @@ -67,7 +67,7 @@ discard block | ||
| 67 | 67 |      { | 
| 68 | 68 | $result = null; | 
| 69 | 69 |          if (isset($properties[self::CUSTOM]) && $properties[self::CUSTOM] instanceof Closure) { | 
| 70 | - $result = $properties[self::CUSTOM]($value); | |
| 70 | + $result = $properties[self::CUSTOM]($value); | |
| 71 | 71 | } | 
| 72 | 72 | return empty($result) ? null : $result; | 
| 73 | 73 | } |