@@ -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 | } |
@@ -96,8 +96,7 @@ |
||
96 | 96 | $files[] = $entry->getPathname(); |
97 | 97 | } |
98 | 98 | } |
99 | - } |
|
100 | - else |
|
99 | + } else |
|
101 | 100 | { |
102 | 101 | $files[] = $location; |
103 | 102 | } |
@@ -96,8 +96,7 @@ |
||
96 | 96 | $files[] = $entry->getPathname(); |
97 | 97 | } |
98 | 98 | } |
99 | - } |
|
100 | - else |
|
99 | + } else |
|
101 | 100 | { |
102 | 101 | $files[] = $location; |
103 | 102 | } |
@@ -96,8 +96,7 @@ |
||
96 | 96 | $files[] = $entry->getPathname(); |
97 | 97 | } |
98 | 98 | } |
99 | - } |
|
100 | - else |
|
99 | + } else |
|
101 | 100 | { |
102 | 101 | $files[] = $location; |
103 | 102 | } |
@@ -96,8 +96,7 @@ |
||
96 | 96 | $files[] = $entry->getPathname(); |
97 | 97 | } |
98 | 98 | } |
99 | - } |
|
100 | - else |
|
99 | + } else |
|
101 | 100 | { |
102 | 101 | $files[] = $location; |
103 | 102 | } |
@@ -96,8 +96,7 @@ |
||
96 | 96 | $files[] = $entry->getPathname(); |
97 | 97 | } |
98 | 98 | } |
99 | - } |
|
100 | - else |
|
99 | + } else |
|
101 | 100 | { |
102 | 101 | $files[] = $location; |
103 | 102 | } |
@@ -575,9 +575,11 @@ |
||
575 | 575 | |
576 | 576 | $map = $this->getMappedChunk( $list, $mapping ); |
577 | 577 | |
578 | - if( isset( $map[0] ) ) // there can only be one chunk for the base product data |
|
578 | + if( isset( $map[0] ) ) { |
|
579 | + // there can only be one chunk for the base product data |
|
579 | 580 | { |
580 | 581 | $type = $this->checkType( $this->getValue( $map[0], 'product.type', $product->getType() ) ); |
582 | + } |
|
581 | 583 | |
582 | 584 | $product = $product->fromArray( $map[0], true ); |
583 | 585 | $product = $manager->saveItem( $product->setType( $type ) ); |
@@ -154,8 +154,7 @@ |
||
154 | 154 | $interval = new \DateInterval( $item->getInterval() ); |
155 | 155 | $dateNext = date_create( $item->getTimeCreated() )->add( $interval )->format( 'Y-m-d' ); |
156 | 156 | $item = $item->setDateNext( $dateNext )->setPeriod( 1 ); |
157 | - } |
|
158 | - elseif( $item->getTimeCreated() < $date ) |
|
157 | + } elseif( $item->getTimeCreated() < $date ) |
|
159 | 158 | { |
160 | 159 | $item->setStatus( 0 ); |
161 | 160 | } |