@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | |
51 | 51 | protected function tearDown(): void |
52 | 52 | { |
53 | - if( self::$supplier != null ){ |
|
53 | + if( self::$supplier != null ) { |
|
54 | 54 | $this->delete( self::$supplier ); |
55 | 55 | } |
56 | 56 | |
@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | |
77 | 77 | $suppliersCodes = ['job_csv_test', 'job_csv_test2']; |
78 | 78 | |
79 | - foreach( $suppliersCodes as $code ){ |
|
79 | + foreach( $suppliersCodes as $code ) { |
|
80 | 80 | $this->create( $code ); |
81 | 81 | } |
82 | 82 | |
@@ -110,7 +110,7 @@ discard block |
||
110 | 110 | |
111 | 111 | $suppliersCodes = ['job_csv_test', 'job_csv_test2']; |
112 | 112 | |
113 | - foreach( $suppliersCodes as $code ){ |
|
113 | + foreach( $suppliersCodes as $code ) { |
|
114 | 114 | $this->create( $code ); |
115 | 115 | } |
116 | 116 | |
@@ -244,7 +244,7 @@ discard block |
||
244 | 244 | 3 => 'job_csv_test', |
245 | 245 | ); |
246 | 246 | |
247 | - $this->context->getConfig()->set( 'controller/common/product/import/csv/processor/supplier/listtypes', array('default') ); |
|
247 | + $this->context->getConfig()->set( 'controller/common/product/import/csv/processor/supplier/listtypes', array( 'default' ) ); |
|
248 | 248 | |
249 | 249 | self::$supplier = $this->create( 'job_csv_test' ); |
250 | 250 | |
@@ -320,7 +320,7 @@ discard block |
||
320 | 320 | $search = $manager->createSearch(); |
321 | 321 | $search->setConditions( $search->compare( '==', 'supplier.code', $code ) ); |
322 | 322 | |
323 | - if( ($item = $manager->searchItems( $search, ['product'] )->first()) === null ) { |
|
323 | + if( ( $item = $manager->searchItems( $search, ['product'] )->first() ) === null ) { |
|
324 | 324 | throw new \RuntimeException( sprintf( 'No supplier item for code "%1$s"', $code ) ); |
325 | 325 | } |
326 | 326 |