@@ -116,7 +116,7 @@ |
||
116 | 116 | * |
117 | 117 | * @param string|null $domain Name of the domain (e.g. product, text, etc.) or null for all |
118 | 118 | * @param array|string|null $type Name/Names of the item type or null for all |
119 | - * @param array|string|null $listtype Name/Names of the list item type or null for all |
|
119 | + * @param string $listtype Name/Names of the list item type or null for all |
|
120 | 120 | * @return array List of items implementing \Aimeos\MShop\Common\Item\Iface |
121 | 121 | */ |
122 | 122 | public function getRefItems( $domain = null, $type = null, $listtype = null ) |
@@ -136,8 +136,7 @@ |
||
136 | 136 | $subList = self::createControllers( $it, $context, $aimeos, $pref ); |
137 | 137 | |
138 | 138 | $list = array_merge( $list, $subList ); |
139 | - } |
|
140 | - else if( $prefix !== '' && $entry->getType() === 'file' |
|
139 | + } else if( $prefix !== '' && $entry->getType() === 'file' |
|
141 | 140 | && ( $name = $entry->getBaseName( '.php' ) ) === 'Factory' ) |
142 | 141 | { |
143 | 142 | $list[$prefix] = self::createController( $context, $aimeos, $prefix ); |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | $parts[$key] = ucwords( $part ); |
57 | 57 | } |
58 | 58 | |
59 | - $factory = '\\Aimeos\\Controller\\Jobs\\' . join( '\\', $parts ) . '\\Factory'; |
|
59 | + $factory = '\\Aimeos\\Controller\\Jobs\\'.join( '\\', $parts ).'\\Factory'; |
|
60 | 60 | |
61 | 61 | if( class_exists( $factory ) === false ) { |
62 | 62 | throw new \Aimeos\Controller\Jobs\Exception( sprintf( 'Class "%1$s" not found', $factory ) ); |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | $cntlList = []; |
87 | 87 | $subFolder = trim( str_replace( '\\', '/', self::$prefix ), '/' ); |
88 | 88 | |
89 | - if( strncmp( $subFolder, 'Aimeos' . '/', 7 ) === 0 ) { |
|
89 | + if( strncmp( $subFolder, 'Aimeos'.'/', 7 ) === 0 ) { |
|
90 | 90 | $subFolder = substr( $subFolder, 7 ); |
91 | 91 | } |
92 | 92 | |
@@ -94,7 +94,7 @@ discard block |
||
94 | 94 | { |
95 | 95 | foreach( $list as $relpath ) |
96 | 96 | { |
97 | - $path .= DIRECTORY_SEPARATOR . str_replace( '/', DIRECTORY_SEPARATOR, $relpath . '/' . $subFolder ); |
|
97 | + $path .= DIRECTORY_SEPARATOR.str_replace( '/', DIRECTORY_SEPARATOR, $relpath.'/'.$subFolder ); |
|
98 | 98 | |
99 | 99 | if( is_dir( $path ) ) |
100 | 100 | { |
@@ -132,7 +132,7 @@ discard block |
||
132 | 132 | { |
133 | 133 | $name = strtolower( $entry->getBaseName() ); |
134 | 134 | $it = new \DirectoryIterator( $entry->getPathName() ); |
135 | - $pref = ( $prefix !== '' ? $prefix . '/' : '' ) . $name; |
|
135 | + $pref = ( $prefix !== '' ? $prefix.'/' : '' ).$name; |
|
136 | 136 | $subList = self::createControllers( $it, $context, $aimeos, $pref ); |
137 | 137 | |
138 | 138 | $list = array_merge( $list, $subList ); |
@@ -72,8 +72,7 @@ |
||
72 | 72 | { |
73 | 73 | $this->executeList( $stmts ); |
74 | 74 | $this->status( 'migrated' ); |
75 | - } |
|
76 | - else |
|
75 | + } else |
|
77 | 76 | { |
78 | 77 | $this->status( 'OK' ); |
79 | 78 | } |
@@ -65,8 +65,7 @@ |
||
65 | 65 | { |
66 | 66 | $this->executeList( $stmts ); |
67 | 67 | $this->status( 'added' ); |
68 | - } |
|
69 | - else |
|
68 | + } else |
|
70 | 69 | { |
71 | 70 | $this->status( 'OK' ); |
72 | 71 | } |
@@ -71,8 +71,7 @@ |
||
71 | 71 | { |
72 | 72 | $this->execute( $stmt ); |
73 | 73 | $this->status( 'done' ); |
74 | - } |
|
75 | - else |
|
74 | + } else |
|
76 | 75 | { |
77 | 76 | $this->status( 'OK' ); |
78 | 77 | } |
@@ -90,8 +90,7 @@ |
||
90 | 90 | $this->executeList( $stmts['drop'] ); |
91 | 91 | |
92 | 92 | $this->status( sprintf( 'migrated (%1$d)', $count ) ); |
93 | - } |
|
94 | - else |
|
93 | + } else |
|
95 | 94 | { |
96 | 95 | $this->status( 'OK' ); |
97 | 96 | } |
@@ -172,8 +172,7 @@ |
||
172 | 172 | { |
173 | 173 | $this->executeList( $stmtList ); |
174 | 174 | $this->status( 'migrated' ); |
175 | - } |
|
176 | - else |
|
175 | + } else |
|
177 | 176 | { |
178 | 177 | $this->status( 'OK' ); |
179 | 178 | } |
@@ -90,8 +90,7 @@ |
||
90 | 90 | { |
91 | 91 | $this->executeList( $stmts, 'db-coupon' ); |
92 | 92 | $this->status( 'done' ); |
93 | - } |
|
94 | - else |
|
93 | + } else |
|
95 | 94 | { |
96 | 95 | $this->status( 'OK' ); |
97 | 96 | } |
@@ -67,8 +67,7 @@ |
||
67 | 67 | { |
68 | 68 | $this->execute( $stmt ); |
69 | 69 | $this->status( 'renamed' ); |
70 | - } |
|
71 | - else |
|
70 | + } else |
|
72 | 71 | { |
73 | 72 | $this->status( 'OK' ); |
74 | 73 | } |