@@ -226,8 +226,7 @@ |
||
226 | 226 | |
227 | 227 | $params[] = implode( ',', $list ); |
228 | 228 | } |
229 | - } |
|
230 | - else |
|
229 | + } else |
|
231 | 230 | { |
232 | 231 | $params[] = $this->escape( '==', $this->getParamType( $string ), $string ); |
233 | 232 | } |
@@ -246,7 +246,7 @@ |
||
246 | 246 | * @see mshop/coupon/manager/code/decorators/global |
247 | 247 | */ |
248 | 248 | |
249 | - return $this->getSubManagerBase( 'coupon', 'code/' . $manager, $name ); |
|
249 | + return $this->getSubManagerBase( 'coupon', 'code/'.$manager, $name ); |
|
250 | 250 | } |
251 | 251 | |
252 | 252 |
@@ -226,8 +226,7 @@ |
||
226 | 226 | |
227 | 227 | $params[] = implode( ',', $list ); |
228 | 228 | } |
229 | - } |
|
230 | - else |
|
229 | + } else |
|
231 | 230 | { |
232 | 231 | $params[] = $this->escape( '==', $this->getParamType( $string ), $string ); |
233 | 232 | } |
@@ -622,7 +622,7 @@ |
||
622 | 622 | } |
623 | 623 | |
624 | 624 | $interface = '\\Aimeos\\MShop\\Coupon\\Provider\\Factory\\Iface'; |
625 | - $classname = '\\Aimeos\\MShop\\Coupon\\Provider\\' . $providername; |
|
625 | + $classname = '\\Aimeos\\MShop\\Coupon\\Provider\\'.$providername; |
|
626 | 626 | |
627 | 627 | if( class_exists( $classname ) === false ) { |
628 | 628 | throw new \Aimeos\MShop\Coupon\Exception( sprintf( 'Class "%1$s" not available', $classname ) ); |
@@ -67,8 +67,7 @@ |
||
67 | 67 | $this->setCode( $key ); |
68 | 68 | $this->values['id'] = $this->values['code']; |
69 | 69 | $this->modified = false; |
70 | - } |
|
71 | - else |
|
70 | + } else |
|
72 | 71 | { |
73 | 72 | $this->values['id'] = null; |
74 | 73 | $this->modified = true; |
@@ -226,8 +226,7 @@ |
||
226 | 226 | |
227 | 227 | $params[] = implode( ',', $list ); |
228 | 228 | } |
229 | - } |
|
230 | - else |
|
229 | + } else |
|
231 | 230 | { |
232 | 231 | $params[] = $this->escape( '==', $this->getParamType( $string ), $string ); |
233 | 232 | } |
@@ -67,8 +67,7 @@ |
||
67 | 67 | $this->setCode( $key ); |
68 | 68 | $this->values['id'] = $this->values['code']; |
69 | 69 | $this->modified = false; |
70 | - } |
|
71 | - else |
|
70 | + } else |
|
72 | 71 | { |
73 | 72 | $this->values['id'] = null; |
74 | 73 | $this->modified = true; |
@@ -104,9 +104,12 @@ discard block |
||
104 | 104 | */ |
105 | 105 | public function createItem() |
106 | 106 | { |
107 | - try { |
|
107 | + try |
|
108 | + { |
|
108 | 109 | $values = array( 'siteid' => $this->getContext()->getLocale()->getSiteId() ); |
109 | - } catch( \Exception $ex ) { |
|
110 | + } |
|
111 | + catch( \Exception $ex ) |
|
112 | + { |
|
110 | 113 | $values = array( 'siteid' => null ); |
111 | 114 | } |
112 | 115 | |
@@ -167,8 +170,7 @@ discard block |
||
167 | 170 | * @see mshop/locale/manager/language/standard/count |
168 | 171 | */ |
169 | 172 | $path = 'mshop/locale/manager/language/standard/insert'; |
170 | - } |
|
171 | - else |
|
173 | + } else |
|
172 | 174 | { |
173 | 175 | /** mshop/locale/manager/language/standard/update |
174 | 176 | * Updates an existing language record in the database |
@@ -369,7 +369,7 @@ discard block |
||
369 | 369 | $replace = array( |
370 | 370 | $search->getConditionString( $types, $translations ), |
371 | 371 | $search->getSortationString( $types, $translations ), |
372 | - ( $columns ? ', ' . $columns : '' ), |
|
372 | + ( $columns ? ', '.$columns : '' ), |
|
373 | 373 | $search->getSliceStart(), |
374 | 374 | $search->getSliceSize(), |
375 | 375 | ); |
@@ -581,7 +581,7 @@ discard block |
||
581 | 581 | * @see mshop/locale/manager/currency/decorators/global |
582 | 582 | */ |
583 | 583 | |
584 | - return $this->getSubManagerBase( 'locale', 'currency/' . $manager, $name ); |
|
584 | + return $this->getSubManagerBase( 'locale', 'currency/'.$manager, $name ); |
|
585 | 585 | } |
586 | 586 | |
587 | 587 | |
@@ -611,7 +611,7 @@ discard block |
||
611 | 611 | protected function getSearchResults( \Aimeos\MW\DB\Connection\Iface $conn, $sql ) |
612 | 612 | { |
613 | 613 | $statement = $conn->create( $sql ); |
614 | - $this->getContext()->getLogger()->log( __METHOD__ . ': SQL statement: ' . $statement, \Aimeos\MW\Logger\Base::DEBUG ); |
|
614 | + $this->getContext()->getLogger()->log( __METHOD__.': SQL statement: '.$statement, \Aimeos\MW\Logger\Base::DEBUG ); |
|
615 | 615 | |
616 | 616 | $results = $statement->execute(); |
617 | 617 |
@@ -865,7 +865,7 @@ discard block |
||
865 | 865 | * Returns the search results for the given SQL statement. |
866 | 866 | * |
867 | 867 | * @param \Aimeos\MW\DB\Connection\Iface $conn Database connection |
868 | - * @param $sql SQL statement |
|
868 | + * @param string $sql SQL statement |
|
869 | 869 | * @return \Aimeos\MW\DB\Result\Iface Search result object |
870 | 870 | */ |
871 | 871 | protected function getSearchResults( \Aimeos\MW\DB\Connection\Iface $conn, $sql ) |
@@ -906,7 +906,7 @@ discard block |
||
906 | 906 | * Returns the total number of items found for the conditions |
907 | 907 | * |
908 | 908 | * @param \Aimeos\MW\DB\Connection\Iface $conn Database connection |
909 | - * @param array $find List of markers that should be replaced in the SQL statement |
|
909 | + * @param string[] $find List of markers that should be replaced in the SQL statement |
|
910 | 910 | * @param array $replace List of replacements for the markers in the SQL statement |
911 | 911 | * @throws \Aimeos\MShop\Locale\Exception If no total value was found |
912 | 912 | * @return integer Total number of found items |
@@ -226,8 +226,7 @@ |
||
226 | 226 | |
227 | 227 | $params[] = implode( ',', $list ); |
228 | 228 | } |
229 | - } |
|
230 | - else |
|
229 | + } else |
|
231 | 230 | { |
232 | 231 | $params[] = $this->escape( '==', $this->getParamType( $string ), $string ); |
233 | 232 | } |
@@ -226,8 +226,7 @@ |
||
226 | 226 | |
227 | 227 | $params[] = implode( ',', $list ); |
228 | 228 | } |
229 | - } |
|
230 | - else |
|
229 | + } else |
|
231 | 230 | { |
232 | 231 | $params[] = $this->escape( '==', $this->getParamType( $string ), $string ); |
233 | 232 | } |
@@ -895,7 +895,7 @@ |
||
895 | 895 | * @see mshop/order/manager/base/address/decorators/global |
896 | 896 | */ |
897 | 897 | |
898 | - return $this->getSubManagerBase( 'order', 'base/address/' . $manager, $name ); |
|
898 | + return $this->getSubManagerBase( 'order', 'base/address/'.$manager, $name ); |
|
899 | 899 | } |
900 | 900 | |
901 | 901 |
@@ -226,8 +226,7 @@ |
||
226 | 226 | |
227 | 227 | $params[] = implode( ',', $list ); |
228 | 228 | } |
229 | - } |
|
230 | - else |
|
229 | + } else |
|
231 | 230 | { |
232 | 231 | $params[] = $this->escape( '==', $this->getParamType( $string ), $string ); |
233 | 232 | } |
@@ -605,7 +605,7 @@ |
||
605 | 605 | * @see mshop/order/manager/base/product/attribute/decorators/global |
606 | 606 | */ |
607 | 607 | |
608 | - return $this->getSubManagerBase( 'order', 'base/product/attribute/' . $manager, $name ); |
|
608 | + return $this->getSubManagerBase( 'order', 'base/product/attribute/'.$manager, $name ); |
|
609 | 609 | } |
610 | 610 | |
611 | 611 |