| @@ -344,7 +344,7 @@ discard block | ||
| 344 | 344 | */ | 
| 345 | 345 | private function whereWrapper() | 
| 346 | 346 |      { | 
| 347 | -        return function ($parameter) { | |
| 347 | +        return function($parameter) { | |
| 348 | 348 |              if ($parameter instanceof FragmentInterface) { | 
| 349 | 349 | //We are only not creating bindings for plan fragments | 
| 350 | 350 |                  if (!$parameter instanceof ParameterInterface && !$parameter instanceof QueryBuilder) { | 
| @@ -353,7 +353,7 @@ discard block | ||
| 353 | 353 | } | 
| 354 | 354 | |
| 355 | 355 | //Wrapping all values with ParameterInterface | 
| 356 | - $parameter = new Parameter($parameter, Parameter::DETECT_TYPE);; | |
| 356 | + $parameter = new Parameter($parameter, Parameter::DETECT_TYPE); ; | |
| 357 | 357 | |
| 358 | 358 | //Let's store to sent to driver when needed | 
| 359 | 359 | $this->whereParameters[] = $parameter; | 
| @@ -1,10 +1,10 @@ | ||
| 1 | 1 | <?php | 
| 2 | 2 | /** | 
| 3 | - * Spiral Framework. | |
| 4 | - * | |
| 5 | - * @license MIT | |
| 6 | - * @author Anton Titov (Wolfy-J) | |
| 7 | - */ | |
| 3 | + * Spiral Framework. | |
| 4 | + * | |
| 5 | + * @license MIT | |
| 6 | + * @author Anton Titov (Wolfy-J) | |
| 7 | + */ | |
| 8 | 8 | namespace Spiral; | 
| 9 | 9 | |
| 10 | 10 | /** | 
| @@ -318,7 +318,7 @@ discard block | ||
| 318 | 318 | */ | 
| 319 | 319 | private function onWrapper() | 
| 320 | 320 |      { | 
| 321 | -        return function ($parameter) { | |
| 321 | +        return function($parameter) { | |
| 322 | 322 |              if ($parameter instanceof FragmentInterface) { | 
| 323 | 323 | return $parameter; | 
| 324 | 324 | } | 
| @@ -334,7 +334,7 @@ discard block | ||
| 334 | 334 | */ | 
| 335 | 335 | private function whereWrapper() | 
| 336 | 336 |      { | 
| 337 | -        return function ($parameter) { | |
| 337 | +        return function($parameter) { | |
| 338 | 338 |              if ($parameter instanceof FragmentInterface) { | 
| 339 | 339 | //We are only not creating bindings for plan fragments | 
| 340 | 340 |                  if (!$parameter instanceof ParameterInterface && !$parameter instanceof QueryBuilder) { | 
| @@ -343,7 +343,7 @@ discard block | ||
| 343 | 343 | } | 
| 344 | 344 | |
| 345 | 345 | //Wrapping all values with ParameterInterface | 
| 346 | - $parameter = new Parameter($parameter, Parameter::DETECT_TYPE);; | |
| 346 | + $parameter = new Parameter($parameter, Parameter::DETECT_TYPE); ; | |
| 347 | 347 | |
| 348 | 348 | //Let's store to sent to driver when needed | 
| 349 | 349 | $this->onParameters[] = $parameter; | 
| @@ -1,10 +1,10 @@ | ||
| 1 | 1 | <?php | 
| 2 | 2 | /** | 
| 3 | - * Spiral Framework. | |
| 4 | - * | |
| 5 | - * @license MIT | |
| 6 | - * @author Anton Titov (Wolfy-J) | |
| 7 | - */ | |
| 3 | + * Spiral Framework. | |
| 4 | + * | |
| 5 | + * @license MIT | |
| 6 | + * @author Anton Titov (Wolfy-J) | |
| 7 | + */ | |
| 8 | 8 | namespace Spiral; | 
| 9 | 9 | |
| 10 | 10 | /** | 
| @@ -189,14 +189,14 @@ | ||
| 189 | 189 |          if ($this->abstractType() == 'enum') { | 
| 190 | 190 | |
| 191 | 191 | //Fetching enum values | 
| 192 | -            $this->enumValues = array_map(function ($value) { | |
| 192 | +            $this->enumValues = array_map(function($value) { | |
| 193 | 193 | return trim($value, $value[0]); | 
| 194 | 194 |              }, explode(',', $options)); | 
| 195 | 195 | |
| 196 | 196 | return; | 
| 197 | 197 | } | 
| 198 | 198 | |
| 199 | -        $options = array_map(function ($value) { | |
| 199 | +        $options = array_map(function($value) { | |
| 200 | 200 | return intval($value); | 
| 201 | 201 |          }, explode(',', $options)); | 
| 202 | 202 | |
| @@ -1,10 +1,10 @@ | ||
| 1 | 1 | <?php | 
| 2 | 2 | /** | 
| 3 | - * Spiral Framework. | |
| 4 | - * | |
| 5 | - * @license MIT | |
| 6 | - * @author Anton Titov (Wolfy-J) | |
| 7 | - */ | |
| 3 | + * Spiral Framework. | |
| 4 | + * | |
| 5 | + * @license MIT | |
| 6 | + * @author Anton Titov (Wolfy-J) | |
| 7 | + */ | |
| 8 | 8 | namespace Spiral; | 
| 9 | 9 | |
| 10 | 10 | /** | 
| @@ -399,7 +399,7 @@ | ||
| 399 | 399 | . "WHERE conrelid = ? AND contype = 'c' AND (consrc LIKE ? OR consrc LIKE ?)"; | 
| 400 | 400 | |
| 401 | 401 | $constraints = $this->table->driver()->query( | 
| 402 | -            $query, [$tableOID, '(' . $this->name . '%', '("' . $this->name . '%',] | |
| 402 | +            $query, [$tableOID, '(' . $this->name . '%', '("' . $this->name . '%', ] | |
| 403 | 403 | ); | 
| 404 | 404 | |
| 405 | 405 |          foreach ($constraints as $constraint) { | 
| @@ -1,10 +1,10 @@ | ||
| 1 | 1 | <?php | 
| 2 | 2 | /** | 
| 3 | - * Spiral Framework. | |
| 4 | - * | |
| 5 | - * @license MIT | |
| 6 | - * @author Anton Titov (Wolfy-J) | |
| 7 | - */ | |
| 3 | + * Spiral Framework. | |
| 4 | + * | |
| 5 | + * @license MIT | |
| 6 | + * @author Anton Titov (Wolfy-J) | |
| 7 | + */ | |
| 8 | 8 | namespace Spiral; | 
| 9 | 9 | |
| 10 | 10 | /** | 
| @@ -167,7 +167,7 @@ | ||
| 167 | 167 | } | 
| 168 | 168 | } | 
| 169 | 169 | |
| 170 | -        $options = array_map(function ($value) { | |
| 170 | +        $options = array_map(function($value) { | |
| 171 | 171 | return intval($value); | 
| 172 | 172 |          }, explode(',', $options)); | 
| 173 | 173 | |
| @@ -1,10 +1,10 @@ | ||
| 1 | 1 | <?php | 
| 2 | 2 | /** | 
| 3 | - * Spiral Framework. | |
| 4 | - * | |
| 5 | - * @license MIT | |
| 6 | - * @author Anton Titov (Wolfy-J) | |
| 7 | - */ | |
| 3 | + * Spiral Framework. | |
| 4 | + * | |
| 5 | + * @license MIT | |
| 6 | + * @author Anton Titov (Wolfy-J) | |
| 7 | + */ | |
| 8 | 8 | namespace Spiral; | 
| 9 | 9 | |
| 10 | 10 | /** | 
| @@ -263,7 +263,7 @@ | ||
| 263 | 263 | $key = md5(serialize([$query, $parameters, $this->name, $this->prefix])); | 
| 264 | 264 | } | 
| 265 | 265 | |
| 266 | -        $data = $store->remember($key, $lifetime, function () use ($query, $parameters) { | |
| 266 | +        $data = $store->remember($key, $lifetime, function() use ($query, $parameters) { | |
| 267 | 267 | return $this->query($query, $parameters)->fetchAll(); | 
| 268 | 268 | }); | 
| 269 | 269 | |
| @@ -1,10 +1,10 @@ | ||
| 1 | 1 | <?php | 
| 2 | 2 | /** | 
| 3 | - * Spiral Framework. | |
| 4 | - * | |
| 5 | - * @license MIT | |
| 6 | - * @author Anton Titov (Wolfy-J) | |
| 7 | - */ | |
| 3 | + * Spiral Framework. | |
| 4 | + * | |
| 5 | + * @license MIT | |
| 6 | + * @author Anton Titov (Wolfy-J) | |
| 7 | + */ | |
| 8 | 8 | namespace Spiral; | 
| 9 | 9 | |
| 10 | 10 | /** | 
| @@ -91,7 +91,7 @@ | ||
| 91 | 91 | */ | 
| 92 | 92 | protected function expression($identifier) | 
| 93 | 93 |      { | 
| 94 | -        return preg_replace_callback('/([a-z][0-9_a-z\.]*\(?)/i', function ($match) { | |
| 94 | +        return preg_replace_callback('/([a-z][0-9_a-z\.]*\(?)/i', function($match) { | |
| 95 | 95 | $identifier = $match[1]; | 
| 96 | 96 | |
| 97 | 97 | //Function name | 
| @@ -45,7 +45,7 @@ | ||
| 45 | 45 | public function sortedTables() | 
| 46 | 46 |      { | 
| 47 | 47 | $tables = $this->tables; | 
| 48 | -        uasort($tables, function (AbstractTable $tableA, AbstractTable $tableB) { | |
| 48 | +        uasort($tables, function(AbstractTable $tableA, AbstractTable $tableB) { | |
| 49 | 49 |              if (in_array($tableA->getName(), $tableB->getDependencies())) { | 
| 50 | 50 | return true; | 
| 51 | 51 | } | 
| @@ -1,10 +1,10 @@ | ||
| 1 | 1 | <?php | 
| 2 | 2 | /** | 
| 3 | - * Spiral Framework. | |
| 4 | - * | |
| 5 | - * @license MIT | |
| 6 | - * @author Anton Titov (Wolfy-J) | |
| 7 | - */ | |
| 3 | + * Spiral Framework. | |
| 4 | + * | |
| 5 | + * @license MIT | |
| 6 | + * @author Anton Titov (Wolfy-J) | |
| 7 | + */ | |
| 8 | 8 | namespace Spiral; | 
| 9 | 9 | |
| 10 | 10 | /** | 
| @@ -374,7 +374,7 @@ | ||
| 374 | 374 | return $this; | 
| 375 | 375 | } | 
| 376 | 376 | |
| 377 | -        $this->data = array_filter($this->data, function ($item) use ($value) { | |
| 377 | +        $this->data = array_filter($this->data, function($item) use ($value) { | |
| 378 | 378 | return $item != $value; | 
| 379 | 379 | }); | 
| 380 | 380 | |
| @@ -1,11 +1,11 @@ | ||
| 1 | 1 | <?php | 
| 2 | 2 | /** | 
| 3 | - * Spiral Framework. | |
| 4 | - * | |
| 5 | - * @license MIT | |
| 6 | - * @author Anton Titov (Wolfy-J) | |
| 7 | - * @copyright �2009-2015 | |
| 8 | - */ | |
| 3 | + * Spiral Framework. | |
| 4 | + * | |
| 5 | + * @license MIT | |
| 6 | + * @author Anton Titov (Wolfy-J) | |
| 7 | + * @copyright �2009-2015 | |
| 8 | + */ | |
| 9 | 9 | namespace Spiral\ORM; | 
| 10 | 10 | |
| 11 | 11 | use Spiral\Core\ConstructorInterface; |