@@ -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 | /** |
@@ -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 | /** |
@@ -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 | /** |
@@ -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 | /** |
@@ -343,15 +343,14 @@ |
||
343 | 343 | */ |
344 | 344 | private function whereWrapper() |
345 | 345 | { |
346 | - return function ($parameter) { |
|
346 | + return function($parameter) { |
|
347 | 347 | if (!$parameter instanceof ParameterInterface && is_array($parameter)) { |
348 | 348 | //is_array condition can be removed (still check that parameter not instance of |
349 | 349 | // sqlfragment, in this case we can wrap every parameter using our object |
350 | 350 | $parameter = new Parameter($parameter); |
351 | 351 | } |
352 | 352 | |
353 | - if |
|
354 | - ( |
|
353 | + if ( |
|
355 | 354 | $parameter instanceof SQLFragmentInterface |
356 | 355 | && !$parameter instanceof ParameterInterface |
357 | 356 | && !$parameter instanceof QueryBuilder |
@@ -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 | /** |
@@ -343,15 +343,14 @@ |
||
343 | 343 | */ |
344 | 344 | private function whereWrapper() |
345 | 345 | { |
346 | - return function ($parameter) { |
|
346 | + return function($parameter) { |
|
347 | 347 | if (!$parameter instanceof ParameterInterface && is_array($parameter)) { |
348 | 348 | //is_array condition can be removed (still check that parameter not instance of |
349 | 349 | // sqlfragment, in this case we can wrap every parameter using our object |
350 | 350 | $parameter = new Parameter($parameter); |
351 | 351 | } |
352 | 352 | |
353 | - if |
|
354 | - ( |
|
353 | + if ( |
|
355 | 354 | $parameter instanceof SQLFragmentInterface |
356 | 355 | && !$parameter instanceof ParameterInterface |
357 | 356 | && !$parameter instanceof QueryBuilder |
@@ -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 | /** |
@@ -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 | /** |
@@ -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 | /** |
@@ -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 | /** |