@@ -64,13 +64,13 @@ |
||
64 | 64 | * @since 2018.04 |
65 | 65 | * @category Developer |
66 | 66 | */ |
67 | - if ( $name === null ) { |
|
68 | - $name = $context->getConfig()->get('controller/jobs/subscription/process/renew/name', 'Standard'); |
|
67 | + if( $name === null ) { |
|
68 | + $name = $context->getConfig()->get( 'controller/jobs/subscription/process/renew/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\\Subscription\\Process\\Renew\\' . $name : '<not a string>'; |
|
73 | + $classname = is_string( $name ) ? '\\Aimeos\\Controller\\Jobs\\Subscription\\Process\\Renew\\' . $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 |
@@ -301,7 +301,9 @@ |
||
301 | 301 | $context->setUserId( $baseItem->getCustomerId() ); |
302 | 302 | $context->setGroupIds( $customerItem->getGroups() ); |
303 | 303 | } |
304 | - catch( \Exception $e ) {} // Subscription without account |
|
304 | + catch( \Exception $e ) |
|
305 | + { |
|
306 | +} // Subscription without account |
|
305 | 307 | |
306 | 308 | return $context; |
307 | 309 | } |
@@ -64,13 +64,13 @@ |
||
64 | 64 | * @since 2018.04 |
65 | 65 | * @category Developer |
66 | 66 | */ |
67 | - if ( $name === null ) { |
|
68 | - $name = $context->getConfig()->get('controller/jobs/subscription/process/begin/name', 'Standard'); |
|
67 | + if( $name === null ) { |
|
68 | + $name = $context->getConfig()->get( 'controller/jobs/subscription/process/begin/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\\Subscription\\Process\\Begin\\' . $name : '<not a string>'; |
|
73 | + $classname = is_string( $name ) ? '\\Aimeos\\Controller\\Jobs\\Subscription\\Process\\Begin\\' . $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 |
@@ -153,8 +153,7 @@ |
||
153 | 153 | |
154 | 154 | $interval = new \DateInterval( $item->getInterval() ); |
155 | 155 | $item->setDateNext( date_create( $item->getTimeCreated() )->add( $interval )->format( 'Y-m-d' ) ); |
156 | - } |
|
157 | - elseif( $item->getTimeCreated() < $date ) |
|
156 | + } elseif( $item->getTimeCreated() < $date ) |
|
158 | 157 | { |
159 | 158 | $item->setStatus( 0 ); |
160 | 159 | } |
@@ -64,13 +64,13 @@ |
||
64 | 64 | * @since 2018.04 |
65 | 65 | * @category Developer |
66 | 66 | */ |
67 | - if ( $name === null ) { |
|
68 | - $name = $context->getConfig()->get('controller/jobs/subscription/process/end/name', 'Standard'); |
|
67 | + if( $name === null ) { |
|
68 | + $name = $context->getConfig()->get( 'controller/jobs/subscription/process/end/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\\Subscription\\Process\\End\\' . $name : '<not a string>'; |
|
73 | + $classname = is_string( $name ) ? '\\Aimeos\\Controller\\Jobs\\Subscription\\Process\\End\\' . $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 |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | { |
38 | 38 | if( ctype_alnum( $pname ) === false ) |
39 | 39 | { |
40 | - $classname = is_string($pname) ? '\\Aimeos\\Controller\\Common\\Subscription\\Process\\Processor\\' . $pname : '<not a string>'; |
|
40 | + $classname = is_string( $pname ) ? '\\Aimeos\\Controller\\Common\\Subscription\\Process\\Processor\\' . $pname : '<not a string>'; |
|
41 | 41 | throw new \Aimeos\Controller\Jobs\Exception( sprintf( 'Invalid characters in class name "%1$s"', $classname ) ); |
42 | 42 | } |
43 | 43 | |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | |
46 | 46 | if( ctype_alnum( $name ) === false ) |
47 | 47 | { |
48 | - $classname = is_string($name) ? '\\Aimeos\\Controller\\Common\\Subscription\\Process\\Processor\\' . $pname . '\\' . $name : '<not a string>'; |
|
48 | + $classname = is_string( $name ) ? '\\Aimeos\\Controller\\Common\\Subscription\\Process\\Processor\\' . $pname . '\\' . $name : '<not a string>'; |
|
49 | 49 | throw new \Aimeos\Controller\Jobs\Exception( sprintf( 'Invalid characters in class name "%1$s"', $classname ) ); |
50 | 50 | } |
51 | 51 |
@@ -64,13 +64,13 @@ |
||
64 | 64 | * @since 2018.04 |
65 | 65 | * @category Developer |
66 | 66 | */ |
67 | - if ( $name === null ) { |
|
68 | - $name = $context->getConfig()->get('controller/jobs/catalog/import/csv/name', 'Standard'); |
|
67 | + if( $name === null ) { |
|
68 | + $name = $context->getConfig()->get( 'controller/jobs/catalog/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\\Catalog\\Import\\Csv\\' . $name : '<not a string>'; |
|
73 | + $classname = is_string( $name ) ? '\\Aimeos\\Controller\\Jobs\\Catalog\\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 |
@@ -572,7 +572,7 @@ |
||
572 | 572 | { |
573 | 573 | $code = trim( $code ); |
574 | 574 | |
575 | - if( isset( $catalogMap[$code] ) ) { |
|
575 | + if( isset( $catalogMap[$code] ) ) { |
|
576 | 576 | $item = $catalogMap[$code]; |
577 | 577 | } else { |
578 | 578 | $item = $manager->createItem(); |
@@ -590,8 +590,7 @@ |
||
590 | 590 | { |
591 | 591 | $manager->moveItem( $item->getId(), $item->getParentId(), $parentid ); |
592 | 592 | $item = $manager->saveItem( $item ); |
593 | - } |
|
594 | - else |
|
593 | + } else |
|
595 | 594 | { |
596 | 595 | $item = $manager->insertItem( $item, $parentid ); |
597 | 596 | } |
@@ -119,8 +119,7 @@ |
||
119 | 119 | { |
120 | 120 | $capdate = date( 'Y-m-d 00:00:00', time() - 86400 * $capDays ); |
121 | 121 | $expr[] = $orderSearch->compare( '<=', 'order.datepayment', $capdate ); |
122 | - } |
|
123 | - else |
|
122 | + } else |
|
124 | 123 | { |
125 | 124 | $expr[] = $orderSearch->compare( '==', 'order.statusdelivery', $status ); |
126 | 125 | } |