Skip to content

Commit 480a1f0

Browse files
committed
Fixed CS
1 parent 17c3bef commit 480a1f0

File tree

8 files changed

+16
-17
lines changed

8 files changed

+16
-17
lines changed

src/Database/Expression/BetweenExpression.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626
class BetweenExpression implements ExpressionInterface, FieldInterface
2727
{
2828

29-
use FieldTrait;
3029
use ExpressionTypeCasterTrait;
30+
use FieldTrait;
3131

3232
/**
3333
* The first value in the expression

src/Database/Expression/Comparison.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@
2929
class Comparison implements ExpressionInterface, FieldInterface
3030
{
3131

32-
use FieldTrait;
3332
use ExpressionTypeCasterTrait;
33+
use FieldTrait;
3434

3535
/**
3636
* The value to be used in the right hand side of the operation
@@ -283,7 +283,7 @@ protected function _flattenValue($value, $generator, $type = 'string')
283283
* and all ExpressionInterface objects that could be found in the second
284284
* position.
285285
*
286-
* @param array|Traversable $values
286+
* @param array|Traversable $values The rows to insert
287287
* @return array
288288
*/
289289
protected function _collectExpressions($values)

src/Database/Expression/FunctionExpression.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@
3131
class FunctionExpression extends QueryExpression implements TypedResultInterface
3232
{
3333

34-
use TypedResultTrait;
3534
use ExpressionTypeCasterTrait;
35+
use TypedResultTrait;
3636

3737
/**
3838
* The name of the function to be constructed when generating the SQL string

src/Database/Expression/ValuesExpression.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@
3232
class ValuesExpression implements ExpressionInterface
3333
{
3434

35-
use TypeMapTrait;
3635
use ExpressionTypeCasterTrait;
36+
use TypeMapTrait;
3737

3838
/**
3939
* Array of values to insert.

src/Database/Type/ExpressionTypeCasterTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ protected function _castToExpression($value, $type)
6666
*/
6767
protected function _requiresToExpressionCasting($types)
6868
{
69-
$result = [];
69+
$result = [];
7070
$types = array_filter($types);
7171
foreach ($types as $k => $type) {
7272
$object = Type::build($type);

tests/Fixture/OrderedUuidItemsFixture.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,3 @@ class OrderedUuidItemsFixture extends TestFixture
4343
public $records = [
4444
];
4545
}
46-

tests/TestCase/Database/ExpressionTypeCastingIntegrationTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public function toPHP($value, Driver $d)
4343
public function toExpression($value)
4444
{
4545
$substr = function ($start, $lenght = null) use ($value) {
46-
return new FunctionExpression(
46+
return new FunctionExpression(
4747
'SUBSTR',
4848
$lenght === null ? [$value, $start] : [$value, $start, $lenght],
4949
['string', 'integer', 'integer']
@@ -194,7 +194,7 @@ public function testSelectWithFunction()
194194
->select('id')
195195
->from('ordered_uuid_items')
196196
->where(function ($exp, $q) {
197-
return $exp->eq(
197+
return $exp->eq(
198198
'id',
199199
$q->func()->concat(['48298a29-81c0-4c26-a7fb', '-413140cf8569'], []),
200200
'ordered_uuid'

tests/TestCase/Database/ExpressionTypeCastingTest.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,16 @@
1313
*/
1414
namespace Cake\Test\TestCase\Database;
1515

16-
use Cake\TestSuite\TestCase;
17-
use Cake\Database\Type\StringType;
18-
use Cake\Database\Type\ExpressionTypeInterface;
19-
use Cake\Database\Expression\FunctionExpression;
20-
use Cake\Database\ValueBinder;
21-
use Cake\Database\Type;
22-
use Cake\Database\Expression\Comparison;
2316
use Cake\Database\Expression\BetweenExpression;
2417
use Cake\Database\Expression\CaseExpression;
18+
use Cake\Database\Expression\Comparison;
19+
use Cake\Database\Expression\FunctionExpression;
2520
use Cake\Database\Expression\ValuesExpression;
21+
use Cake\Database\Type;
22+
use Cake\Database\Type\ExpressionTypeInterface;
23+
use Cake\Database\Type\StringType;
24+
use Cake\Database\ValueBinder;
25+
use Cake\TestSuite\TestCase;
2626

2727
class TestType extends StringType implements ExpressionTypeInterface
2828
{
@@ -128,7 +128,7 @@ public function testCaseExpression()
128128
$case = new CaseExpression(
129129
[new Comparison('foo', '1', 'string', '=')],
130130
['value1', 'value2'],
131-
['test' , 'test']
131+
['test', 'test']
132132
);
133133

134134
$binder = new ValueBinder;

0 commit comments

Comments
 (0)