Passed
Pull Request — master (#2)
by Alex
02:43
created
test/unit/Filter/IsNotEqualTest.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.