@@ -92,7 +92,7 @@ discard block |
||
| 92 | 92 | $criteria = [ |
| 93 | 93 | 'field' => $fieldName, |
| 94 | 94 | 'alias' => 'test', |
| 95 | - 'where' => WhereType::AND, |
|
| 95 | + 'where' => WhereType:: AND , |
|
| 96 | 96 | 'value' => 123, |
| 97 | 97 | 'format' => null, |
| 98 | 98 | ]; |
@@ -112,17 +112,17 @@ discard block |
||
| 112 | 112 | /** @var Expr\Comparison|MockObject $neq */ |
| 113 | 113 | $neq = $this->createMock(Expr\Comparison::class); |
| 114 | 114 | |
| 115 | - $isNotEqualString = $criteria['alias'] . '.' . $fieldName . '!=' . ':param_name'; |
|
| 115 | + $isNotEqualString = $criteria['alias'].'.'.$fieldName.'!='.':param_name'; |
|
| 116 | 116 | $expr->expects($this->once()) |
| 117 | 117 | ->method('neq') |
| 118 | - ->with($criteria['alias'] . '.' . $fieldName, $this->stringStartsWith(':')) |
|
| 118 | + ->with($criteria['alias'].'.'.$fieldName, $this->stringStartsWith(':')) |
|
| 119 | 119 | ->willReturn($neq); |
| 120 | 120 | |
| 121 | 121 | $neq->expects($this->once()) |
| 122 | 122 | ->method('__toString') |
| 123 | 123 | ->willReturn($isNotEqualString); |
| 124 | 124 | |
| 125 | - $methodName = (!isset($criteria['where']) || WhereType::AND === $criteria['where']) |
|
| 125 | + $methodName = (!isset($criteria['where']) || WhereType:: AND === $criteria['where']) |
|
| 126 | 126 | ? 'andWhere' |
| 127 | 127 | : 'orWhere'; |
| 128 | 128 | |
@@ -22,6 +22,6 @@ |
||
| 22 | 22 | */ |
| 23 | 23 | protected function createExpression(Expr $expr, string $fieldName, string $parameterName, string $alias): string |
| 24 | 24 | { |
| 25 | - return (string)$expr->isNotNull($alias . '.' . $fieldName); |
|
| 25 | + return (string) $expr->isNotNull($alias.'.'.$fieldName); |
|
| 26 | 26 | } |
| 27 | 27 | } |
@@ -53,25 +53,25 @@ |
||
| 53 | 53 | return $value; |
| 54 | 54 | } |
| 55 | 55 | |
| 56 | - $castDates = isset($options['cast_dates']) ? (bool)$options['cast_dates'] : true; |
|
| 56 | + $castDates = isset($options['cast_dates']) ? (bool) $options['cast_dates'] : true; |
|
| 57 | 57 | switch ($type) { |
| 58 | 58 | case 'integer': |
| 59 | 59 | case 'smallint': |
| 60 | 60 | case 'bigint': // Remove? |
| 61 | - $value = (int)$value; |
|
| 61 | + $value = (int) $value; |
|
| 62 | 62 | break; |
| 63 | 63 | |
| 64 | 64 | case 'boolean': |
| 65 | - $value = (bool)$value; |
|
| 65 | + $value = (bool) $value; |
|
| 66 | 66 | break; |
| 67 | 67 | |
| 68 | 68 | case 'decimal': |
| 69 | 69 | case 'float': |
| 70 | - $value = (float)$value; |
|
| 70 | + $value = (float) $value; |
|
| 71 | 71 | break; |
| 72 | 72 | |
| 73 | 73 | case 'string': |
| 74 | - $value = (string)$value; |
|
| 74 | + $value = (string) $value; |
|
| 75 | 75 | break; |
| 76 | 76 | |
| 77 | 77 | case 'date': |