Passed
Push — master ( 54f711...32ffcd )
by Aimeos
03:15
created
src/Controller/Jobs/Subscription/Process/Begin/Standard.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -154,8 +154,7 @@
 block discarded – undo
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
 					}
Please login to merge, or discard this patch.
src/Controller/Jobs/Subscription/Process/Renew/Standard.php 1 patch
Braces   +11 added lines, -4 removed lines patch added patch discarded remove patch
@@ -124,9 +124,11 @@  discard block
 block discarded – undo
124 124
 					}
125 125
 					catch( \Exception $e )
126 126
 					{
127
-						if( $e->getCode() < 1 ) // not a soft error
127
+						if( $e->getCode() < 1 ) {
128
+							// not a soft error
128 129
 						{
129 130
 							$item->setReason( \Aimeos\MShop\Subscription\Item\Iface::REASON_PAYMENT );
131
+						}
130 132
 
131 133
 							if( $end ) {
132 134
 								$item->setDateEnd( date_create()->format( 'Y-m-d' ) );
@@ -228,9 +230,12 @@  discard block
 block discarded – undo
228 230
 		{
229 231
 			foreach( $codes as $code )
230 232
 			{
231
-				try {
233
+				try
234
+				{
232 235
 					$basket->addCoupon( $code );
233
-				} catch( \Aimeos\MShop\Plugin\Provider\Exception | \Aimeos\MShop\Coupon\Exception $e ) {
236
+				}
237
+				catch( \Aimeos\MShop\Plugin\Provider\Exception | \Aimeos\MShop\Coupon\Exception $e )
238
+				{
234 239
 					$basket->deleteCoupon( $code );
235 240
 				}
236 241
 			}
@@ -349,7 +354,9 @@  discard block
 block discarded – undo
349 354
 			$context->setUserId( $baseItem->getCustomerId() );
350 355
 			$context->setGroupIds( $customerItem->getGroups() );
351 356
 		}
352
-		catch( \Exception $e ) {} // Subscription without account
357
+		catch( \Exception $e )
358
+		{
359
+} // Subscription without account
353 360
 
354 361
 		return $context;
355 362
 	}
Please login to merge, or discard this patch.
src/Controller/Jobs/Supplier/Import/Xml/Standard.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -96,8 +96,7 @@
 block discarded – undo
96 96
 						$files[] = $entry->getPathname();
97 97
 					}
98 98
 				}
99
-			}
100
-			else
99
+			} else
101 100
 			{
102 101
 				$files[] = $location;
103 102
 			}
Please login to merge, or discard this patch.
src/Controller/Jobs/Attribute/Import/Xml/Standard.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -96,8 +96,7 @@
 block discarded – undo
96 96
 						$files[] = $entry->getPathname();
97 97
 					}
98 98
 				}
99
-			}
100
-			else
99
+			} else
101 100
 			{
102 101
 				$files[] = $location;
103 102
 			}
Please login to merge, or discard this patch.
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.
src/Controller/Jobs/Customer/Email/Watch/Standard.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -155,7 +155,7 @@
 block discarded – undo
155 155
 					}
156 156
 				}
157 157
 			}
158
-			catch( \Exception $e ) { ; } // no price available
158
+			catch( \Exception $e ) {; } // no price available
159 159
 		}
160 160
 
161 161
 		return $result;
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -155,7 +155,9 @@
 block discarded – undo
155 155
 					}
156 156
 				}
157 157
 			}
158
-			catch( \Exception $e ) { ; } // no price available
158
+			catch( \Exception $e )
159
+			{
160
+; } // no price available
159 161
 		}
160 162
 
161 163
 		return $result;
Please login to merge, or discard this patch.
src/Controller/Jobs/Customer/Import/Xml/Standard.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -96,8 +96,7 @@
 block discarded – undo
96 96
 						$files[] = $entry->getPathname();
97 97
 					}
98 98
 				}
99
-			}
100
-			else
99
+			} else
101 100
 			{
102 101
 				$files[] = $location;
103 102
 			}
Please login to merge, or discard this patch.
src/Controller/Jobs/Customer/Group/Import/Xml/Standard.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -96,8 +96,7 @@
 block discarded – undo
96 96
 						$files[] = $entry->getPathname();
97 97
 					}
98 98
 				}
99
-			}
100
-			else
99
+			} else
101 100
 			{
102 101
 				$files[] = $location;
103 102
 			}
Please login to merge, or discard this patch.
src/Controller/Jobs/Order/Email/Payment/Standard.php 1 patch
Braces   +12 added lines, -4 removed lines patch added patch discarded remove patch
@@ -254,10 +254,18 @@
 block discarded – undo
254 254
 			private $headerFcn;
255 255
 			private $footerFcn;
256 256
 
257
-			public function Footer() { return ( $fcn = $this->footerFcn ) ? $fcn( $this ) : null; }
258
-			public function Header() { return ( $fcn = $this->headerFcn ) ? $fcn( $this ) : null; }
259
-			public function setFooterFunction( \Closure $fcn ) { $this->footerFcn = $fcn; }
260
-			public function setHeaderFunction( \Closure $fcn ) { $this->headerFcn = $fcn; }
257
+			public function Footer()
258
+			{
259
+return ( $fcn = $this->footerFcn ) ? $fcn( $this ) : null; }
260
+			public function Header()
261
+			{
262
+return ( $fcn = $this->headerFcn ) ? $fcn( $this ) : null; }
263
+			public function setFooterFunction( \Closure $fcn )
264
+			{
265
+$this->footerFcn = $fcn; }
266
+			public function setHeaderFunction( \Closure $fcn )
267
+			{
268
+$this->headerFcn = $fcn; }
261 269
 		};
262 270
 		$pdf->setCreator( PDF_CREATOR );
263 271
 		$pdf->setAuthor( 'Aimeos' );
Please login to merge, or discard this patch.