@@ -4,17 +4,17 @@ |
||
4 | 4 | * Set error reporting to maximum |
5 | 5 | */ |
6 | 6 | error_reporting( -1 ); |
7 | -ini_set('display_errors', true); |
|
7 | +ini_set( 'display_errors', true ); |
|
8 | 8 | |
9 | -date_default_timezone_set('UTC'); |
|
9 | +date_default_timezone_set( 'UTC' ); |
|
10 | 10 | |
11 | 11 | /* |
12 | 12 | * Set locale settings to reasonable defaults |
13 | 13 | */ |
14 | -setlocale(LC_ALL, 'en_US.UTF-8'); |
|
15 | -setlocale(LC_NUMERIC, 'POSIX'); |
|
16 | -setlocale(LC_CTYPE, 'en_US.UTF-8'); |
|
17 | -setlocale(LC_TIME, 'POSIX'); |
|
14 | +setlocale( LC_ALL, 'en_US.UTF-8' ); |
|
15 | +setlocale( LC_NUMERIC, 'POSIX' ); |
|
16 | +setlocale( LC_CTYPE, 'en_US.UTF-8' ); |
|
17 | +setlocale( LC_TIME, 'POSIX' ); |
|
18 | 18 | |
19 | 19 | |
20 | 20 | require_once 'TestHelperHtml.php'; |
@@ -117,7 +117,7 @@ discard block |
||
117 | 117 | foreach( $listItems as $id => $listItem ) |
118 | 118 | { |
119 | 119 | $refId = $listItem->getRefId(); |
120 | - $custIds[ $listItem->getParentId() ][$id] = $refId; |
|
120 | + $custIds[$listItem->getParentId()][$id] = $refId; |
|
121 | 121 | $prodIds[$refId] = $refId; |
122 | 122 | } |
123 | 123 | |
@@ -241,7 +241,7 @@ discard block |
||
241 | 241 | } |
242 | 242 | } |
243 | 243 | } |
244 | - catch( \Exception $e ) { ; } // no price available |
|
244 | + catch( \Exception $e ) {; } // no price available |
|
245 | 245 | } |
246 | 246 | |
247 | 247 | return $result; |
@@ -265,12 +265,12 @@ discard block |
||
265 | 265 | } |
266 | 266 | |
267 | 267 | foreach( $this->getStockItems( $context, $productCodes, $stockType ) as $stockItem ) { |
268 | - $stockMap[ $stockItem->getProductCode() ] = true; |
|
268 | + $stockMap[$stockItem->getProductCode()] = true; |
|
269 | 269 | } |
270 | 270 | |
271 | 271 | foreach( $productItems as $productId => $productItem ) |
272 | 272 | { |
273 | - if( !isset( $stockMap[ $productItem->getCode() ] ) ) { |
|
273 | + if( !isset( $stockMap[$productItem->getCode()] ) ) { |
|
274 | 274 | unset( $productItems[$productId] ); |
275 | 275 | } |
276 | 276 | } |
@@ -319,7 +319,7 @@ discard block |
||
319 | 319 | $search->combine( '||', array( |
320 | 320 | $search->compare( '==', 'stock.stocklevel', null ), |
321 | 321 | $search->compare( '>', 'stock.stocklevel', 0 ), |
322 | - )), |
|
322 | + ) ), |
|
323 | 323 | $search->getConditions(), |
324 | 324 | ); |
325 | 325 | $search->setConditions( $search->combine( '&&', $expr ) ); |
@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | ->getMock(); |
70 | 70 | |
71 | 71 | $queueStub->expects( $this->exactly( 2 ) )->method( 'get' ) |
72 | - ->will( $this->onConsecutiveCalls( new \Aimeos\MW\MQueue\Message\Standard( array( 'message' => '{}') ), null ) ); |
|
72 | + ->will( $this->onConsecutiveCalls( new \Aimeos\MW\MQueue\Message\Standard( array( 'message' => '{}' ) ), null ) ); |
|
73 | 73 | |
74 | 74 | $queueStub->expects( $this->once() )->method( 'del' ); |
75 | 75 | |
@@ -103,7 +103,7 @@ discard block |
||
103 | 103 | ->getMock(); |
104 | 104 | |
105 | 105 | $queueStub->expects( $this->exactly( 2 ) )->method( 'get' ) |
106 | - ->will( $this->onConsecutiveCalls( new \Aimeos\MW\MQueue\Message\Standard( array( 'message' => 'error') ), null ) ); |
|
106 | + ->will( $this->onConsecutiveCalls( new \Aimeos\MW\MQueue\Message\Standard( array( 'message' => 'error' ) ), null ) ); |
|
107 | 107 | |
108 | 108 | $queueStub->expects( $this->once() )->method( 'del' ); |
109 | 109 |