Completed
Push — master ( 262a1a...ffe0da )
by
unknown
35:42 queued 10:45
created
packages/Menu/src/Controller/IndexController.php 1 patch
Braces   +4 added lines, -8 removed lines patch added patch discarded remove patch
@@ -84,17 +84,14 @@  discard block
 block discarded – undo
84 84
 
85 85
             if($id) {
86 86
                 $this->menuService->updateMenuItem($data, $id);
87
-            }
88
-            else{
87
+            } else{
89 88
                 $this->menuService->addMenuItem($data);
90 89
             }
91 90
 
92 91
             return $this->response->withStatus(302)->withHeader('Location', $this->router->generateUri('admin.menu'));
93
-        }
94
-        catch(FilterException $fe){
92
+        } catch(FilterException $fe){
95 93
             return $this->edit($fe->getArrayMessages());
96
-        }
97
-        catch(\Exception $e){
94
+        } catch(\Exception $e){
98 95
             throw $e;
99 96
         }
100 97
     }
@@ -106,8 +103,7 @@  discard block
 block discarded – undo
106 103
             $this->menuService->delete($id);
107 104
 
108 105
             return $this->response->withStatus(302)->withHeader('Location', $this->router->generateUri('admin.menu'));
109
-        }
110
-        catch(\Exception $e){
106
+        } catch(\Exception $e){
111 107
             throw $e;
112 108
         }
113 109
     }
Please login to merge, or discard this patch.
packages/Article/src/Controller/PostController.php 1 patch
Braces   +4 added lines, -8 removed lines patch added patch discarded remove patch
@@ -120,15 +120,12 @@  discard block
 block discarded – undo
120 120
 
121 121
             if($id) {
122 122
                 $this->postService->updateArticle($data, $id);
123
-            }
124
-            else{
123
+            } else{
125 124
                 $this->postService->createArticle($user, $data);
126 125
             }
127
-        }
128
-        catch(FilterException $fe){
126
+        } catch(FilterException $fe){
129 127
             return $this->edit($fe->getArrayMessages());
130
-        }
131
-        catch(\Exception $e){
128
+        } catch(\Exception $e){
132 129
             throw $e;
133 130
         }
134 131
 
@@ -145,8 +142,7 @@  discard block
 block discarded – undo
145 142
     {
146 143
         try{
147 144
             $this->postService->deleteArticle($this->request->getAttribute('id'));
148
-        }
149
-        catch(\Exception $e){
145
+        } catch(\Exception $e){
150 146
             throw $e;
151 147
         }
152 148
 
Please login to merge, or discard this patch.
packages/Category/src/Controller/IndexController.php 1 patch
Braces   +4 added lines, -8 removed lines patch added patch discarded remove patch
@@ -103,17 +103,14 @@  discard block
 block discarded – undo
103 103
 
104 104
             if($id) {
105 105
                 $this->categoryService->updateCategory($data, $id);
106
-            }
107
-            else{
106
+            } else{
108 107
                 $this->categoryService->createCategory($data);
109 108
             }
110 109
 
111 110
             return $this->response->withStatus(302)->withHeader('Location', $this->router->generateUri('admin.categories'));
112
-        }
113
-        catch(FilterException $fe){
111
+        } catch(FilterException $fe){
114 112
             return $this->edit($fe->getArrayMessages());
115
-        }
116
-        catch(\Exception $e){
113
+        } catch(\Exception $e){
117 114
             throw $e;
118 115
         }
119 116
     }
@@ -125,8 +122,7 @@  discard block
 block discarded – undo
125 122
             $this->categoryService->delete($id);
126 123
 
127 124
             return $this->response->withStatus(302)->withHeader('Location', $this->router->generateUri('admin.categories'));
128
-        }
129
-        catch(\Exception $e){
125
+        } catch(\Exception $e){
130 126
             return $this->response->withStatus(302)->withHeader('Location', $this->router->generateUri('admin.categories'));
131 127
         }
132 128
     }
Please login to merge, or discard this patch.
packages/Web/Action/EventAction.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -89,8 +89,7 @@
 block discarded – undo
89 89
                 $attendees = $this->meetupService->getMeetupAttendees($parts[count($parts) - 2]);
90 90
                 shuffle($attendees);
91 91
             }
92
-        }
93
-        catch(\Exception $e) {
92
+        } catch(\Exception $e) {
94 93
         }
95 94
 
96 95
         return new HtmlResponse(
Please login to merge, or discard this patch.