Completed
Push — master ( 3272b0...853e83 )
by Aimeos
02:24 queued 12s
created
client/jsonapi/src/Client/JsonApi/Subscription/Standard.php 1 patch
Braces   +7 added lines, -14 removed lines patch added patch discarded remove patch
@@ -43,18 +43,15 @@  discard block
 block discarded – undo
43 43
 			$view->total = 1;
44 44
 
45 45
 			$status = 200;
46
-		}
47
-		catch( \Aimeos\Controller\Frontend\Exception $e )
46
+		} catch( \Aimeos\Controller\Frontend\Exception $e )
48 47
 		{
49 48
 			$status = 403;
50 49
 			$view->errors = $this->getErrorDetails( $e, 'controller/frontend' );
51
-		}
52
-		catch( \Aimeos\MShop\Exception $e )
50
+		} catch( \Aimeos\MShop\Exception $e )
53 51
 		{
54 52
 			$status = 404;
55 53
 			$view->errors = $this->getErrorDetails( $e, 'mshop' );
56
-		}
57
-		catch( \Exception $e )
54
+		} catch( \Exception $e )
58 55
 		{
59 56
 			$status = 500;
60 57
 			$view->errors = $this->getErrorDetails( $e );
@@ -83,8 +80,7 @@  discard block
 block discarded – undo
83 80
 			{
84 81
 				$view->items = $cntl->getItem( $id );
85 82
 				$view->total = 1;
86
-			}
87
-			else
83
+			} else
88 84
 			{
89 85
 				$total = 0;
90 86
 				$filter = $cntl->createFilter();
@@ -95,18 +91,15 @@  discard block
 block discarded – undo
95 91
 			}
96 92
 
97 93
 			$status = 200;
98
-		}
99
-		catch( \Aimeos\Controller\Frontend\Exception $e )
94
+		} catch( \Aimeos\Controller\Frontend\Exception $e )
100 95
 		{
101 96
 			$status = 403;
102 97
 			$view->errors = $this->getErrorDetails( $e, 'controller/frontend' );
103
-		}
104
-		catch( \Aimeos\MShop\Exception $e )
98
+		} catch( \Aimeos\MShop\Exception $e )
105 99
 		{
106 100
 			$status = 404;
107 101
 			$view->errors = $this->getErrorDetails( $e, 'mshop' );
108
-		}
109
-		catch( \Exception $e )
102
+		} catch( \Exception $e )
110 103
 		{
111 104
 			$status = 500;
112 105
 			$view->errors = $this->getErrorDetails( $e );
Please login to merge, or discard this patch.
client/jsonapi/templates/subscription/standard.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -101,8 +101,7 @@
 block discarded – undo
101 101
 				foreach( $items as $item ) {
102 102
 					$data[] = $entryFcn( $item );
103 103
 				}
104
-			}
105
-			else
104
+			} else
106 105
 			{
107 106
 				$data = $entryFcn( $items );
108 107
 			}
Please login to merge, or discard this patch.