Passed
Push — master ( 9e7def...40aec1 )
by Andreas
09:29
created
lib/midcom/core/dbaobject.php 2 patches
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -93,7 +93,8 @@
 block discarded – undo
93 93
             try {
94 94
                 $mgdschemaclass = $this->__mgdschema_class_name__;
95 95
                 $this->__object = new $mgdschemaclass($id);
96
-            } catch (mgd_exception $e) {
96
+            }
97
+            catch (mgd_exception $e) {
97 98
                 debug_add('Constructing ' . $this->__mgdschema_class_name__ . ' object ' . $id . ' failed, reason: ' . $e->getMessage(), MIDCOM_LOG_WARN);
98 99
                 throw new midcom_error_midgard($e, $id);
99 100
             }
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
             }
72 72
             $this->__object = $id;
73 73
         } else {
74
-            if (   is_int($id)
74
+            if (is_int($id)
75 75
                 && $id < 1) {
76 76
                 throw new midcom_error($id . ' is not a valid database ID');
77 77
             }
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
             }
86 86
 
87 87
             //Some useful information for performance tuning
88
-            if (   midcom::get()->config->get('log_level') >= MIDCOM_LOG_DEBUG
88
+            if (midcom::get()->config->get('log_level') >= MIDCOM_LOG_DEBUG
89 89
                 && $this->__object->guid) {
90 90
                 static $guids = [];
91 91
                 static $total = 0;
Please login to merge, or discard this patch.