Passed
Push — master ( cf00ea...cda971 )
by Andreas
09:47
created
src/midcom/console/command/cleanup/parameters.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,8 @@
 block discarded – undo
49 49
                 try {
50 50
                     \midgard_object_class::get_object_by_guid($param->parentguid);
51 51
                     $seen[$param->parentguid] = true;
52
-                } catch (\Exception) {
52
+                }
53
+                catch (\Exception) {
53 54
                     $seen[$param->parentguid] = false;
54 55
                 }
55 56
             }
Please login to merge, or discard this patch.
src/midcom/console/command/repligard.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,8 @@
 block discarded – undo
37 37
     {
38 38
         try {
39 39
             $this->db = connection::get_em()->getConnection()->getNativeConnection();
40
-        } catch (\Exception) {
40
+        }
41
+        catch (\Exception) {
41 42
             $this->db = $this->create_connection($input, $output);
42 43
         }
43 44
 
Please login to merge, or discard this patch.
src/midcom/console/command/exec.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -94,7 +94,8 @@
 block discarded – undo
94 94
 
95 95
         try {
96 96
             require $basedir . $file;
97
-        } catch (\midcom_error_forbidden) {
97
+        }
98
+        catch (\midcom_error_forbidden) {
98 99
             $dialog = $this->getHelperSet()->get('question');
99 100
             $this->login($dialog, $input, $output);
100 101
             require $basedir . $file;
Please login to merge, or discard this patch.
src/midcom/routing/resolver.php 1 patch
Braces   +6 added lines, -3 removed lines patch added patch discarded remove patch
@@ -59,7 +59,8 @@  discard block
 block discarded – undo
59 59
 
60 60
             try {
61 61
                 $result = $router->match($url);
62
-            } catch (ResourceNotFoundException) {
62
+            }
63
+            catch (ResourceNotFoundException) {
63 64
                 throw new midcom_error_notfound('This URL method is unknown.');
64 65
             }
65 66
             $this->request->attributes->add($result);
@@ -118,11 +119,13 @@  discard block
 block discarded – undo
118 119
 
119 120
         try {
120 121
             $result = $router->match($url);
121
-        } catch (ResourceNotFoundException) {
122
+        }
123
+        catch (ResourceNotFoundException) {
122 124
             // No match
123 125
             debug_add("Component {$viewer->_component} in {$viewer->_topic->name} declared unable to handle request.", MIDCOM_LOG_INFO);
124 126
             throw new midcom_error_notfound("This page is not available on this server.");
125
-        } catch (MethodNotAllowedException $e) {
127
+        }
128
+        catch (MethodNotAllowedException $e) {
126 129
             debug_add("Component {$viewer->_component} in {$viewer->_topic->name} declared unable to handle request (method not allowed).", MIDCOM_LOG_INFO);
127 130
             throw new midcom_error_forbidden($e->getMessage(), Response::HTTP_METHOD_NOT_ALLOWED);
128 131
         }
Please login to merge, or discard this patch.