Passed
Push — master ( 47e37b...2360ce )
by Aimeos
05:11
created
lib/mshoplib/setup/unittest/data/product.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -352,7 +352,7 @@
 block discarded – undo
352 352
 					'product.lists.type' => 'default', 'product.lists.position' => 2, 'ref' => 'Unittest: Test Sub 2',
353 353
 				], [
354 354
 					'product.lists.type' => 'default', 'product.lists.position' => 3, 'ref' => 'Unittest: Test Sub 3',
355
-				],[
355
+				], [
356 356
 					'product.lists.type' => 'default', 'product.lists.position' => 4, 'ref' => 'Unittest: Test Sub 4',
357 357
 				], [
358 358
 					'product.lists.type' => 'default', 'product.lists.position' => 5, 'ref' => 'Unittest: Test Sub 5',
Please login to merge, or discard this patch.
lib/mshoplib/tests/MShop/Text/Manager/StandardTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -97,13 +97,13 @@
 block discarded – undo
97 97
 		$expr[] = $search->compare( '>=', 'text.ctime', '1970-01-01 00:00:00' );
98 98
 		$expr[] = $search->compare( '==', 'text.editor', $this->editor );
99 99
 
100
-		$param = ['media','align-top', '0'];
100
+		$param = ['media', 'align-top', '0'];
101 101
 		$expr[] = $search->compare( '==', $search->createFunction( 'text:has', $param ), null );
102 102
 
103
-		$param = ['media','align-top', $listItem->getRefId()];
103
+		$param = ['media', 'align-top', $listItem->getRefId()];
104 104
 		$expr[] = $search->compare( '!=', $search->createFunction( 'text:has', $param ), null );
105 105
 
106
-		$param = ['media','align-top'];
106
+		$param = ['media', 'align-top'];
107 107
 		$expr[] = $search->compare( '!=', $search->createFunction( 'text:has', $param ), null );
108 108
 
109 109
 		$param = ['media'];
Please login to merge, or discard this patch.
lib/mshoplib/tests/MShop/Service/Manager/StandardTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -190,13 +190,13 @@
 block discarded – undo
190 190
 		$expr[] = $search->compare( '>=', 'service.ctime', '1970-01-01 00:00:00' );
191 191
 		$expr[] = $search->compare( '==', 'service.editor', $this->editor );
192 192
 
193
-		$param = ['text','unittype1', '0'];
193
+		$param = ['text', 'unittype1', '0'];
194 194
 		$expr[] = $search->compare( '==', $search->createFunction( 'service:has', $param ), null );
195 195
 
196
-		$param = ['text','unittype1', $listItem->getRefId()];
196
+		$param = ['text', 'unittype1', $listItem->getRefId()];
197 197
 		$expr[] = $search->compare( '!=', $search->createFunction( 'service:has', $param ), null );
198 198
 
199
-		$param = ['text','unittype1'];
199
+		$param = ['text', 'unittype1'];
200 200
 		$expr[] = $search->compare( '!=', $search->createFunction( 'service:has', $param ), null );
201 201
 
202 202
 		$param = ['text'];
Please login to merge, or discard this patch.
lib/mshoplib/tests/MShop/Media/Manager/StandardTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -104,13 +104,13 @@
 block discarded – undo
104 104
 		$expr[] = $search->compare( '>=', 'media.ctime', '1970-01-01 00:00:00' );
105 105
 		$expr[] = $search->compare( '==', 'media.editor', $this->editor );
106 106
 
107
-		$param = ['attribute','option', '0'];
107
+		$param = ['attribute', 'option', '0'];
108 108
 		$expr[] = $search->compare( '==', $search->createFunction( 'media:has', $param ), null );
109 109
 
110
-		$param = ['attribute','option', $listItem->getRefId()];
110
+		$param = ['attribute', 'option', $listItem->getRefId()];
111 111
 		$expr[] = $search->compare( '!=', $search->createFunction( 'media:has', $param ), null );
112 112
 
113
-		$param = ['attribute','option'];
113
+		$param = ['attribute', 'option'];
114 114
 		$expr[] = $search->compare( '!=', $search->createFunction( 'media:has', $param ), null );
115 115
 
116 116
 		$param = ['attribute'];
Please login to merge, or discard this patch.
lib/mshoplib/tests/MShop/Customer/Manager/StandardTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -273,13 +273,13 @@
 block discarded – undo
273 273
 		$expr[] = $search->compare( '==', 'customer.longitude', '10.0' );
274 274
 		$expr[] = $search->compare( '==', 'customer.latitude', '50.0' );
275 275
 
276
-		$param = ['text','default', '0'];
276
+		$param = ['text', 'default', '0'];
277 277
 		$expr[] = $search->compare( '==', $search->createFunction( 'customer:has', $param ), null );
278 278
 
279
-		$param = ['text','default', $listItem->getRefId()];
279
+		$param = ['text', 'default', $listItem->getRefId()];
280 280
 		$expr[] = $search->compare( '!=', $search->createFunction( 'customer:has', $param ), null );
281 281
 
282
-		$param = ['text','default'];
282
+		$param = ['text', 'default'];
283 283
 		$expr[] = $search->compare( '!=', $search->createFunction( 'customer:has', $param ), null );
284 284
 
285 285
 		$param = ['text'];
Please login to merge, or discard this patch.
lib/mshoplib/tests/MShop/Product/Manager/StandardTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -320,13 +320,13 @@
 block discarded – undo
320 320
 		$expr[] = $search->compare( '==', 'product.editor', $this->editor );
321 321
 		$expr[] = $search->compare( '>=', 'product.target', '' );
322 322
 
323
-		$param = ['product','suggestion', '0'];
323
+		$param = ['product', 'suggestion', '0'];
324 324
 		$expr[] = $search->compare( '==', $search->createFunction( 'product:has', $param ), null );
325 325
 
326
-		$param = ['product','suggestion', $listItem->getRefId()];
326
+		$param = ['product', 'suggestion', $listItem->getRefId()];
327 327
 		$expr[] = $search->compare( '!=', $search->createFunction( 'product:has', $param ), null );
328 328
 
329
-		$param = ['product','suggestion'];
329
+		$param = ['product', 'suggestion'];
330 330
 		$expr[] = $search->compare( '!=', $search->createFunction( 'product:has', $param ), null );
331 331
 
332 332
 		$param = ['product'];
Please login to merge, or discard this patch.
lib/mshoplib/tests/MShop/Supplier/Manager/StandardTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -181,13 +181,13 @@
 block discarded – undo
181 181
 		$expr[] = $search->compare( '>=', 'supplier.ctime', '1970-01-01 00:00:00' );
182 182
 		$expr[] = $search->compare( '==', 'supplier.editor', $this->editor );
183 183
 
184
-		$param = ['text','default', '0'];
184
+		$param = ['text', 'default', '0'];
185 185
 		$expr[] = $search->compare( '==', $search->createFunction( 'supplier:has', $param ), null );
186 186
 
187
-		$param = ['text','default', $listItem->getRefId()];
187
+		$param = ['text', 'default', $listItem->getRefId()];
188 188
 		$expr[] = $search->compare( '!=', $search->createFunction( 'supplier:has', $param ), null );
189 189
 
190
-		$param = ['text','default'];
190
+		$param = ['text', 'default'];
191 191
 		$expr[] = $search->compare( '!=', $search->createFunction( 'supplier:has', $param ), null );
192 192
 
193 193
 		$param = ['text'];
Please login to merge, or discard this patch.
lib/mshoplib/tests/MShop/Service/Provider/Decorator/ReductionTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -217,7 +217,7 @@
 block discarded – undo
217 217
 		$subProduct->setPrice( $subProduct->getPrice()->setCosts( '5.00' ) );
218 218
 
219 219
 		$this->servItem->setConfig( ['reduction.percent' => 60, 'reduction.product-costs' => 1] );
220
-		$this->basket->addProduct( $orderProduct->setProducts( [$subProduct]) );
220
+		$this->basket->addProduct( $orderProduct->setProducts( [$subProduct] ) );
221 221
 
222 222
 		$this->mockProvider->expects( $this->once() )->method( 'calcPrice' )
223 223
 			->will( $this->returnValue( $priceItem ) );
Please login to merge, or discard this patch.
lib/mwlib/tests/MW/Criteria/Expression/Compare/PHPTest.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -61,10 +61,10 @@  discard block
 block discarded – undo
61 61
 			'undefined' => '$undefined',
62 62
 		);
63 63
 
64
-		$expr = new \Aimeos\MW\Criteria\Expression\Compare\PHP( '==', 'listitem', array('a', 'b', 'c') );
64
+		$expr = new \Aimeos\MW\Criteria\Expression\Compare\PHP( '==', 'listitem', array( 'a', 'b', 'c' ) );
65 65
 		$this->assertEquals( "( \$listitem == 'a' || \$listitem == 'b' || \$listitem == 'c' )", $expr->toSource( $types, $translations ) );
66 66
 
67
-		$expr = new \Aimeos\MW\Criteria\Expression\Compare\PHP( '!=', 'listitem', array('a', 'b') );
67
+		$expr = new \Aimeos\MW\Criteria\Expression\Compare\PHP( '!=', 'listitem', array( 'a', 'b' ) );
68 68
 		$this->assertEquals( "( \$listitem != 'a' && \$listitem != 'b' )", $expr->toSource( $types, $translations ) );
69 69
 
70 70
 		$expr = new \Aimeos\MW\Criteria\Expression\Compare\PHP( '==', 'stringvar', 'value' );
@@ -73,16 +73,16 @@  discard block
 block discarded – undo
73 73
 		$expr = new \Aimeos\MW\Criteria\Expression\Compare\PHP( '<', 'floatvar', 0.1 );
74 74
 		$this->assertEquals( '$floatvar < 0.1', $expr->toSource( $types, $translations ) );
75 75
 
76
-		$expr= new \Aimeos\MW\Criteria\Expression\Compare\PHP( '>', 'intvar', 10 );
76
+		$expr = new \Aimeos\MW\Criteria\Expression\Compare\PHP( '>', 'intvar', 10 );
77 77
 		$this->assertEquals( '$intvar > 10', $expr->toSource( $types, $translations ) );
78 78
 
79
-		$expr= new \Aimeos\MW\Criteria\Expression\Compare\PHP( '==', 'boolvar', true );
79
+		$expr = new \Aimeos\MW\Criteria\Expression\Compare\PHP( '==', 'boolvar', true );
80 80
 		$this->assertEquals( '$boolvar == 1', $expr->toSource( $types, $translations ) );
81 81
 
82
-		$expr= new \Aimeos\MW\Criteria\Expression\Compare\PHP( '!=', 'undefined', null );
82
+		$expr = new \Aimeos\MW\Criteria\Expression\Compare\PHP( '!=', 'undefined', null );
83 83
 		$this->assertEquals( '$undefined !== null', $expr->toSource( $types, $translations ) );
84 84
 
85
-		$expr= new \Aimeos\MW\Criteria\Expression\Compare\PHP( '==', 'undefined', null );
85
+		$expr = new \Aimeos\MW\Criteria\Expression\Compare\PHP( '==', 'undefined', null );
86 86
 		$this->assertEquals( '$undefined === null', $expr->toSource( $types, $translations ) );
87 87
 	}
88 88
 
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
 			'undefined' => '$undefined',
108 108
 		);
109 109
 
110
-		$expr = new \Aimeos\MW\Criteria\Expression\Compare\PHP( '>=', 'listitem', array('a', 'b') );
110
+		$expr = new \Aimeos\MW\Criteria\Expression\Compare\PHP( '>=', 'listitem', array( 'a', 'b' ) );
111 111
 		$this->setExpectedException( \Aimeos\MW\Common\Exception::class );
112 112
 		$expr->toSource( $types, $translations );
113 113
 	}
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
 	public function testToSourceExcept2()
117 117
 	{
118 118
 		$this->setExpectedException( \Aimeos\MW\Common\Exception::class );
119
-		new \Aimeos\MW\Criteria\Expression\Compare\PHP('=', 'undefined', null);
119
+		new \Aimeos\MW\Criteria\Expression\Compare\PHP( '=', 'undefined', null );
120 120
 	}
121 121
 
122 122
 
Please login to merge, or discard this patch.