@@ -118,7 +118,7 @@ discard block |
||
| 118 | 118 | foreach( $listItems as $listItem ) |
| 119 | 119 | { |
| 120 | 120 | if( ( $refItem = $listItem->getRefItem() ) !== null ) { |
| 121 | - $listMap[ $refItem->getValue() ][ $refItem->getType() ][ $listItem->getType() ] = $listItem; |
|
| 121 | + $listMap[$refItem->getValue()][$refItem->getType()][$listItem->getType()] = $listItem; |
|
| 122 | 122 | } |
| 123 | 123 | } |
| 124 | 124 | |
@@ -136,7 +136,7 @@ discard block |
||
| 136 | 136 | { |
| 137 | 137 | $listItem = $listMap[$value][$type][$listtype]; |
| 138 | 138 | $refItem = $listItem->getRefItem(); |
| 139 | - unset( $listItems[ $listItem->getId() ] ); |
|
| 139 | + unset( $listItems[$listItem->getId()] ); |
|
| 140 | 140 | } |
| 141 | 141 | else |
| 142 | 142 | { |
@@ -72,7 +72,7 @@ discard block |
||
| 72 | 72 | $map = $this->getMappedChunk( $data, $this->getMapping() ); |
| 73 | 73 | |
| 74 | 74 | foreach( $items as $item ) { |
| 75 | - $propMap[ $item->getValue() ][ $item->getType() ] = $item; |
|
| 75 | + $propMap[$item->getValue()][$item->getType()] = $item; |
|
| 76 | 76 | } |
| 77 | 77 | |
| 78 | 78 | foreach( $map as $list ) |
@@ -90,7 +90,7 @@ discard block |
||
| 90 | 90 | if( isset( $propMap[$value][$type] ) ) |
| 91 | 91 | { |
| 92 | 92 | $item = $propMap[$value][$type]; |
| 93 | - unset( $items[ $item->getId() ] ); |
|
| 93 | + unset( $items[$item->getId()] ); |
|
| 94 | 94 | } |
| 95 | 95 | else |
| 96 | 96 | { |
@@ -134,7 +134,7 @@ discard block |
||
| 134 | 134 | $listItems = $this->getListItems( $prodid, $this->listTypes ); |
| 135 | 135 | |
| 136 | 136 | foreach( $listItems as $listItem ) { |
| 137 | - $listMap[ $listItem->getParentId() ][ $listItem->getType() ] = $listItem; |
|
| 137 | + $listMap[$listItem->getParentId()][$listItem->getType()] = $listItem; |
|
| 138 | 138 | } |
| 139 | 139 | |
| 140 | 140 | foreach( $map as $pos => $list ) |
@@ -163,7 +163,7 @@ discard block |
||
| 163 | 163 | if( isset( $listMap[$catid][$listtype] ) ) |
| 164 | 164 | { |
| 165 | 165 | $listItem = $listMap[$catid][$listtype]; |
| 166 | - unset( $listItems[ $listItem->getId() ] ); |
|
| 166 | + unset( $listItems[$listItem->getId()] ); |
|
| 167 | 167 | } |
| 168 | 168 | else |
| 169 | 169 | { |
@@ -48,7 +48,7 @@ discard block |
||
| 48 | 48 | $result = $manager->searchItems( $manager->createSearch() ); |
| 49 | 49 | |
| 50 | 50 | foreach( $result as $id => $item ) { |
| 51 | - $this->attributes[ $item->getCode() ][ $item->getType() ] = $item; |
|
| 51 | + $this->attributes[$item->getCode()][$item->getType()] = $item; |
|
| 52 | 52 | } |
| 53 | 53 | } |
| 54 | 54 | |
@@ -98,6 +98,6 @@ discard block |
||
| 98 | 98 | $this->attributes[$code] = []; |
| 99 | 99 | } |
| 100 | 100 | |
| 101 | - $this->attributes[$code][ $item->getType() ] = $item; |
|
| 101 | + $this->attributes[$code][$item->getType()] = $item; |
|
| 102 | 102 | } |
| 103 | 103 | } |
| 104 | 104 | \ No newline at end of file |
@@ -48,7 +48,7 @@ discard block |
||
| 48 | 48 | $result = $manager->searchItems( $manager->createSearch() ); |
| 49 | 49 | |
| 50 | 50 | foreach( $result as $id => $item ) { |
| 51 | - $this->categories[ $item->getCode() ] = $id; |
|
| 51 | + $this->categories[$item->getCode()] = $id; |
|
| 52 | 52 | } |
| 53 | 53 | } |
| 54 | 54 | |
@@ -88,6 +88,6 @@ discard block |
||
| 88 | 88 | */ |
| 89 | 89 | public function set( \Aimeos\MShop\Common\Item\Iface $item ) |
| 90 | 90 | { |
| 91 | - $this->categories[ $item->getCode() ] = $item->getId(); |
|
| 91 | + $this->categories[$item->getCode()] = $item->getId(); |
|
| 92 | 92 | } |
| 93 | 93 | } |
| 94 | 94 | \ No newline at end of file |
@@ -70,6 +70,6 @@ |
||
| 70 | 70 | */ |
| 71 | 71 | public function set( \Aimeos\MShop\Common\Item\Iface $item ) |
| 72 | 72 | { |
| 73 | - $this->prodmap[ $item->getCode() ] = $item->getId(); |
|
| 73 | + $this->prodmap[$item->getCode()] = $item->getId(); |
|
| 74 | 74 | } |
| 75 | 75 | } |
| 76 | 76 | \ No newline at end of file |
@@ -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\\Product\\Import\\Csv\\Cache\\' . $type : '<not a string>'; |
|
| 60 | + $classname = is_string( $name ) ? '\\Aimeos\\Controller\\Common\\Product\\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\\Product\\Import\\Csv\\Cache\\' . $type . '\\' . $name : '<not a string>'; |
|
| 70 | + $classname = is_string( $name ) ? '\\Aimeos\\Controller\\Common\\Product\\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 | |
@@ -256,7 +256,7 @@ discard block |
||
| 256 | 256 | { |
| 257 | 257 | if( ctype_alnum( $type ) === false ) |
| 258 | 258 | { |
| 259 | - $classname = is_string($type) ? '\\Aimeos\\Controller\\Common\\Product\\Import\\Csv\\Processor\\' . $type : '<not a string>'; |
|
| 259 | + $classname = is_string( $type ) ? '\\Aimeos\\Controller\\Common\\Product\\Import\\Csv\\Processor\\' . $type : '<not a string>'; |
|
| 260 | 260 | throw new \Aimeos\Controller\Jobs\Exception( sprintf( 'Invalid characters in class name "%1$s"', $classname ) ); |
| 261 | 261 | } |
| 262 | 262 | |
@@ -264,7 +264,7 @@ discard block |
||
| 264 | 264 | |
| 265 | 265 | if( ctype_alnum( $name ) === false ) |
| 266 | 266 | { |
| 267 | - $classname = is_string($name) ? '\\Aimeos\\Controller\\Common\\Product\\Import\\Csv\\Processor\\' . $type . '\\' . $name : '<not a string>'; |
|
| 267 | + $classname = is_string( $name ) ? '\\Aimeos\\Controller\\Common\\Product\\Import\\Csv\\Processor\\' . $type . '\\' . $name : '<not a string>'; |
|
| 268 | 268 | throw new \Aimeos\Controller\Jobs\Exception( sprintf( 'Invalid characters in class name "%1$s"', $classname ) ); |
| 269 | 269 | } |
| 270 | 270 | |
@@ -300,7 +300,7 @@ discard block |
||
| 300 | 300 | $search->setSlice( 0, count( $codes ) ); |
| 301 | 301 | |
| 302 | 302 | foreach( $manager->searchItems( $search, $domains ) as $item ) { |
| 303 | - $result[ $item->getCode() ] = $item; |
|
| 303 | + $result[$item->getCode()] = $item; |
|
| 304 | 304 | } |
| 305 | 305 | |
| 306 | 306 | return $result; |
@@ -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 | { |