@@ -64,13 +64,13 @@ |
||
64 | 64 | * @since 2015.01 |
65 | 65 | * @category Developer |
66 | 66 | */ |
67 | - if ( $name === null ) { |
|
68 | - $name = $context->getConfig()->get('controller/jobs/product/export/sitemap/name', 'Standard'); |
|
67 | + if( $name === null ) { |
|
68 | + $name = $context->getConfig()->get( 'controller/jobs/product/export/sitemap/name', 'Standard' ); |
|
69 | 69 | } |
70 | 70 | |
71 | - if ( ctype_alnum($name) === false ) |
|
71 | + if( ctype_alnum( $name ) === false ) |
|
72 | 72 | { |
73 | - $classname = is_string($name) ? '\\Aimeos\\Controller\\Jobs\\Product\\Export\\Sitemap\\' . $name : '<not a string>'; |
|
73 | + $classname = is_string( $name ) ? '\\Aimeos\\Controller\\Jobs\\Product\\Export\\Sitemap\\' . $name : '<not a string>'; |
|
74 | 74 | throw new \Aimeos\Controller\Jobs\Exception( sprintf( 'Invalid characters in class name "%1$s"', $classname ) ); |
75 | 75 | } |
76 | 76 |
@@ -64,13 +64,13 @@ |
||
64 | 64 | * @since 2015.01 |
65 | 65 | * @category Developer |
66 | 66 | */ |
67 | - if ( $name === null ) { |
|
68 | - $name = $context->getConfig()->get('controller/jobs/product/export/name', 'Standard'); |
|
67 | + if( $name === null ) { |
|
68 | + $name = $context->getConfig()->get( 'controller/jobs/product/export/name', 'Standard' ); |
|
69 | 69 | } |
70 | 70 | |
71 | - if ( ctype_alnum($name) === false ) |
|
71 | + if( ctype_alnum( $name ) === false ) |
|
72 | 72 | { |
73 | - $classname = is_string($name) ? '\\Aimeos\\Controller\\Jobs\\Product\\Export\\' . $name : '<not a string>'; |
|
73 | + $classname = is_string( $name ) ? '\\Aimeos\\Controller\\Jobs\\Product\\Export\\' . $name : '<not a string>'; |
|
74 | 74 | throw new \Aimeos\Controller\Jobs\Exception( sprintf( 'Invalid characters in class name "%1$s"', $classname ) ); |
75 | 75 | } |
76 | 76 |
@@ -64,13 +64,13 @@ |
||
64 | 64 | * @since 2015.01 |
65 | 65 | * @category Developer |
66 | 66 | */ |
67 | - if ( $name === null ) { |
|
68 | - $name = $context->getConfig()->get('controller/jobs/product/import/csv/name', 'Standard'); |
|
67 | + if( $name === null ) { |
|
68 | + $name = $context->getConfig()->get( 'controller/jobs/product/import/csv/name', 'Standard' ); |
|
69 | 69 | } |
70 | 70 | |
71 | - if ( ctype_alnum($name) === false ) |
|
71 | + if( ctype_alnum( $name ) === false ) |
|
72 | 72 | { |
73 | - $classname = is_string($name) ? '\\Aimeos\\Controller\\Jobs\\Product\\Import\\Csv\\' . $name : '<not a string>'; |
|
73 | + $classname = is_string( $name ) ? '\\Aimeos\\Controller\\Jobs\\Product\\Import\\Csv\\' . $name : '<not a string>'; |
|
74 | 74 | throw new \Aimeos\Controller\Jobs\Exception( sprintf( 'Invalid characters in class name "%1$s"', $classname ) ); |
75 | 75 | } |
76 | 76 |
@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | |
29 | 29 | $context->getConfig()->set( 'controller/common/subscription/process/processor/cgroup/groupids', ['1', '2'] ); |
30 | 30 | |
31 | - $fcn = function( $subject ){ |
|
31 | + $fcn = function( $subject ) { |
|
32 | 32 | return $subject->getGroups() === ['1', '2']; |
33 | 33 | }; |
34 | 34 | |
@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | |
59 | 59 | $context->getConfig()->set( 'controller/common/subscription/process/processor/cgroup/groupids', ['1', '2'] ); |
60 | 60 | |
61 | - $fcn = function( $subject ){ |
|
61 | + $fcn = function( $subject ) { |
|
62 | 62 | return $subject->getGroups() === []; |
63 | 63 | }; |
64 | 64 |
@@ -290,7 +290,7 @@ discard block |
||
290 | 290 | $manager = \Aimeos\MShop\Catalog\Manager\Factory::create( $this->context ); |
291 | 291 | $listManager = $manager->getSubManager( 'lists' ); |
292 | 292 | |
293 | - foreach( $catItem->getListItems('product') as $listItem ) { |
|
293 | + foreach( $catItem->getListItems( 'product' ) as $listItem ) { |
|
294 | 294 | $listManager->deleteItem( $listItem->getId() ); |
295 | 295 | } |
296 | 296 | |
@@ -308,7 +308,7 @@ discard block |
||
308 | 308 | $search = $manager->createSearch(); |
309 | 309 | $search->setConditions( $search->compare( '==', 'catalog.code', $code ) ); |
310 | 310 | |
311 | - $result = $manager->searchItems( $search, array('product') ); |
|
311 | + $result = $manager->searchItems( $search, array( 'product' ) ); |
|
312 | 312 | |
313 | 313 | if( ( $item = reset( $result ) ) === false ) { |
314 | 314 | throw new \RuntimeException( sprintf( 'No catalog item for code "%1$s"', $code ) ); |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | $search->setSlice( 0, count( $codes ) ); |
37 | 37 | |
38 | 38 | foreach( $manager->searchItems( $search ) as $item ) { |
39 | - $result[ $item->getCode() ] = $item; |
|
39 | + $result[$item->getCode()] = $item; |
|
40 | 40 | } |
41 | 41 | |
42 | 42 | return $result; |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | while( $content->valid() && $count++ < $maxcnt ) |
60 | 60 | { |
61 | 61 | $row = $content->current(); |
62 | - $data[ $row[$codePos] ] = $row; |
|
62 | + $data[$row[$codePos]] = $row; |
|
63 | 63 | $content->next(); |
64 | 64 | } |
65 | 65 | |
@@ -136,7 +136,7 @@ discard block |
||
136 | 136 | { |
137 | 137 | if( ctype_alnum( $type ) === false ) |
138 | 138 | { |
139 | - $classname = is_string($type) ? '\\Aimeos\\Controller\\Common\\Coupon\\Import\\Csv\\Processor\\' . $type : '<not a string>'; |
|
139 | + $classname = is_string( $type ) ? '\\Aimeos\\Controller\\Common\\Coupon\\Import\\Csv\\Processor\\' . $type : '<not a string>'; |
|
140 | 140 | throw new \Aimeos\Controller\Jobs\Exception( sprintf( 'Invalid characters in class name "%1$s"', $classname ) ); |
141 | 141 | } |
142 | 142 | |
@@ -144,7 +144,7 @@ discard block |
||
144 | 144 | |
145 | 145 | if( ctype_alnum( $name ) === false ) |
146 | 146 | { |
147 | - $classname = is_string($name) ? '\\Aimeos\\Controller\\Common\\Coupon\\Import\\Csv\\Processor\\' . $type . '\\' . $name : '<not a string>'; |
|
147 | + $classname = is_string( $name ) ? '\\Aimeos\\Controller\\Common\\Coupon\\Import\\Csv\\Processor\\' . $type . '\\' . $name : '<not a string>'; |
|
148 | 148 | throw new \Aimeos\Controller\Jobs\Exception( sprintf( 'Invalid characters in class name "%1$s"', $classname ) ); |
149 | 149 | } |
150 | 150 |
@@ -120,7 +120,7 @@ discard block |
||
120 | 120 | foreach( $listItems as $listItem ) |
121 | 121 | { |
122 | 122 | if( ( $refItem = $listItem->getRefItem() ) !== null ) { |
123 | - $listMap[ $refItem->getUrl() ][ $refItem->getType() ][ $listItem->getType() ] = $listItem; |
|
123 | + $listMap[$refItem->getUrl()][$refItem->getType()][$listItem->getType()] = $listItem; |
|
124 | 124 | } |
125 | 125 | } |
126 | 126 | |
@@ -140,7 +140,7 @@ discard block |
||
140 | 140 | { |
141 | 141 | $listItem = $listMap[$url][$type][$listtype]; |
142 | 142 | $refItem = $listItem->getRefItem(); |
143 | - unset( $listItems[ $listItem->getId() ] ); |
|
143 | + unset( $listItems[$listItem->getId()] ); |
|
144 | 144 | } |
145 | 145 | else |
146 | 146 | { |
@@ -118,7 +118,7 @@ discard block |
||
118 | 118 | foreach( $listItems as $listItem ) |
119 | 119 | { |
120 | 120 | if( ( $refItem = $listItem->getRefItem() ) !== null ) { |
121 | - $listMap[ $refItem->getContent() ][ $refItem->getType() ][ $listItem->getType() ] = $listItem; |
|
121 | + $listMap[$refItem->getContent()][$refItem->getType()][$listItem->getType()] = $listItem; |
|
122 | 122 | } |
123 | 123 | } |
124 | 124 | |
@@ -136,7 +136,7 @@ discard block |
||
136 | 136 | { |
137 | 137 | $listItem = $listMap[$content][$type][$listtype]; |
138 | 138 | $refItem = $listItem->getRefItem(); |
139 | - unset( $listItems[ $listItem->getId() ] ); |
|
139 | + unset( $listItems[$listItem->getId()] ); |
|
140 | 140 | } |
141 | 141 | else |
142 | 142 | { |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | |
58 | 58 | if( ctype_alnum( $type ) === false ) |
59 | 59 | { |
60 | - $classname = is_string($name) ? '\\Aimeos\\Controller\\Common\\Catalog\\Import\\Csv\\Cache\\' . $type : '<not a string>'; |
|
60 | + $classname = is_string( $name ) ? '\\Aimeos\\Controller\\Common\\Catalog\\Import\\Csv\\Cache\\' . $type : '<not a string>'; |
|
61 | 61 | throw new \Aimeos\Controller\Jobs\Exception( sprintf( 'Invalid characters in class name "%1$s"', $classname ) ); |
62 | 62 | } |
63 | 63 | |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | |
68 | 68 | if( ctype_alnum( $name ) === false ) |
69 | 69 | { |
70 | - $classname = is_string($name) ? '\\Aimeos\\Controller\\Common\\Catalog\\Import\\Csv\\Cache\\' . $type . '\\' . $name : '<not a string>'; |
|
70 | + $classname = is_string( $name ) ? '\\Aimeos\\Controller\\Common\\Catalog\\Import\\Csv\\Cache\\' . $type . '\\' . $name : '<not a string>'; |
|
71 | 71 | throw new \Aimeos\Controller\Jobs\Exception( sprintf( 'Invalid characters in class name "%1$s"', $classname ) ); |
72 | 72 | } |
73 | 73 | |
@@ -119,7 +119,7 @@ discard block |
||
119 | 119 | while( $content->valid() && $count++ < $maxcnt ) |
120 | 120 | { |
121 | 121 | $row = $content->current(); |
122 | - $data[ $row[$codePos] ] = $row; |
|
122 | + $data[$row[$codePos]] = $row; |
|
123 | 123 | $content->next(); |
124 | 124 | } |
125 | 125 | |
@@ -213,7 +213,7 @@ discard block |
||
213 | 213 | { |
214 | 214 | if( ctype_alnum( $type ) === false ) |
215 | 215 | { |
216 | - $classname = is_string($type) ? '\\Aimeos\\Controller\\Common\\Catalog\\Import\\Csv\\Processor\\' . $type : '<not a string>'; |
|
216 | + $classname = is_string( $type ) ? '\\Aimeos\\Controller\\Common\\Catalog\\Import\\Csv\\Processor\\' . $type : '<not a string>'; |
|
217 | 217 | throw new \Aimeos\Controller\Jobs\Exception( sprintf( 'Invalid characters in class name "%1$s"', $classname ) ); |
218 | 218 | } |
219 | 219 | |
@@ -221,7 +221,7 @@ discard block |
||
221 | 221 | |
222 | 222 | if( ctype_alnum( $name ) === false ) |
223 | 223 | { |
224 | - $classname = is_string($name) ? '\\Aimeos\\Controller\\Common\\Catalog\\Import\\Csv\\Processor\\' . $type . '\\' . $name : '<not a string>'; |
|
224 | + $classname = is_string( $name ) ? '\\Aimeos\\Controller\\Common\\Catalog\\Import\\Csv\\Processor\\' . $type . '\\' . $name : '<not a string>'; |
|
225 | 225 | throw new \Aimeos\Controller\Jobs\Exception( sprintf( 'Invalid characters in class name "%1$s"', $classname ) ); |
226 | 226 | } |
227 | 227 |