Passed
Pull Request — master (#25)
by
unknown
02:30
created
Controller/Common/Product/Import/Csv/Processor/Supplier/StandardTest.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.