Completed
Branch master (c3c77b)
by Aimeos
03:13
created
controller/jobs/src/Controller/Jobs/Subscription/Process/Renew/Factory.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -64,13 +64,13 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
controller/jobs/src/Controller/Jobs/Subscription/Process/Renew/Standard.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -301,7 +301,9 @@
 block discarded – undo
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
 	}
Please login to merge, or discard this patch.
controller/jobs/src/Controller/Jobs/Subscription/Process/Begin/Factory.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -64,13 +64,13 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
controller/jobs/src/Controller/Jobs/Subscription/Process/Begin/Standard.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -153,8 +153,7 @@
 block discarded – undo
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
 					}
Please login to merge, or discard this patch.
controller/jobs/src/Controller/Jobs/Subscription/Process/End/Factory.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -64,13 +64,13 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
controller/jobs/src/Controller/Jobs/Subscription/Process/Base.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
controller/jobs/src/Controller/Jobs/Catalog/Import/Csv/Factory.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -64,13 +64,13 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
controller/jobs/src/Controller/Jobs/Catalog/Import/Csv/Standard.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -572,7 +572,7 @@
 block discarded – undo
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();
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -590,8 +590,7 @@
 block discarded – undo
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
 					}
Please login to merge, or discard this patch.
controller/jobs/src/Controller/Jobs/Order/Service/Payment/Standard.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -119,8 +119,7 @@
 block discarded – undo
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
 					}
Please login to merge, or discard this patch.