Test Failed
Branch master (8d1702)
by Andreas
11:03
created
lib/midcom/helper/nav/leaf.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,8 @@
 block discarded – undo
52 52
         } elseif (!empty($this->data[MIDCOM_NAV_GUID])) {
53 53
             try {
54 54
                 $this->data[MIDCOM_NAV_OBJECT] = midcom::get()->dbfactory->get_object_by_guid($this->data[MIDCOM_NAV_GUID]);
55
-            } catch (midcom_error $e) {
55
+            }
56
+            catch (midcom_error $e) {
56 57
             }
57 58
         } else {
58 59
             debug_add("Warning: The leaf {$this->leafid} of topic {$topic->id} does set neither a GUID nor an object.");
Please login to merge, or discard this patch.
lib/midcom/helper/reflector/tree.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -557,7 +557,8 @@
 block discarded – undo
557 557
         $tree = array();
558 558
         try {
559 559
             $children = self::get_child_objects($parent);
560
-        } catch (midcom_error $e) {
560
+        }
561
+        catch (midcom_error $e) {
561 562
             return $tree;
562 563
         }
563 564
 
Please login to merge, or discard this patch.
lib/midcom/helper/datamanager2/widget/autocomplete.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -455,7 +455,8 @@
 block discarded – undo
455 455
             }
456 456
             try {
457 457
                 $object = new $this->class($key);
458
-            } catch (midcom_error $e) {
458
+            }
459
+            catch (midcom_error $e) {
459 460
                 $e->log();
460 461
                 continue;
461 462
             }
Please login to merge, or discard this patch.
lib/midcom/helper/datamanager2/type/blobs.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -188,7 +188,8 @@
 block discarded – undo
188 188
     {
189 189
         try {
190 190
             $attachment = new midcom_db_attachment($guid);
191
-        } catch (midcom_error $e) {
191
+        }
192
+        catch (midcom_error $e) {
192 193
             debug_add("Failed to load the attachment {$guid} from disk, aborting.", MIDCOM_LOG_INFO);
193 194
             $e->log();
194 195
             return;
Please login to merge, or discard this patch.
lib/midcom/helper/metadata.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -658,7 +658,8 @@
 block discarded – undo
658 658
             && mgd_is_guid($guid)) {
659 659
             try {
660 660
                 $object = midcom::get()->dbfactory->get_object_by_guid($guid);
661
-            } catch (midcom_error $e) {
661
+            }
662
+            catch (midcom_error $e) {
662 663
                 debug_add("Failed to create a metadata instance for the GUID {$guid}: " . $e->getMessage(), MIDCOM_LOG_WARN);
663 664
                 debug_print_r("Source was:", $source);
664 665
 
Please login to merge, or discard this patch.
lib/midcom/admin/folder/handler/order.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -69,7 +69,8 @@
 block discarded – undo
69 69
         // Use the DB Factory to resolve the class and to get the object
70 70
         try {
71 71
             $object = midcom::get()->dbfactory->get_object_by_guid($identifier);
72
-        } catch (midcom_error $e) {
72
+        }
73
+        catch (midcom_error $e) {
73 74
             // This is probably a pseudo leaf, store the score to the current node
74 75
             $this->_topic->set_parameter('midcom.helper.nav.score', $identifier, $score);
75 76
             return true;
Please login to merge, or discard this patch.
lib/midcom/services/cache/module/nap.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -132,7 +132,8 @@
 block discarded – undo
132 132
                       && $nodeobject = $nav->get_node($node->id)) {
133 133
                 $napobject = $nav->get_leaf($nodeobject[MIDCOM_NAV_ID] . '-' . $object->id);
134 134
             }
135
-        } catch (midcom_error $e) {
135
+        }
136
+        catch (midcom_error $e) {
136 137
             $e->log();
137 138
         }
138 139
         return $napobject;
Please login to merge, or discard this patch.
lib/midcom/services/permalinks/main.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -72,7 +72,8 @@
 block discarded – undo
72 72
 
73 73
         try {
74 74
             $object = midcom::get()->dbfactory->get_object_by_guid($guid);
75
-        } catch (midcom_error $e) {
75
+        }
76
+        catch (midcom_error $e) {
76 77
             debug_add("Failed to resolve the GUID {$guid}, this is most probably an access denied error.", MIDCOM_LOG_ERROR);
77 78
             debug_add('Last MidCOM error string: ' . $e->getMessage());
78 79
             return null;
Please login to merge, or discard this patch.
lib/midcom/services/indexer/backend/solr.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -213,7 +213,8 @@
 block discarded – undo
213 213
         $browser = new Browser;
214 214
         try {
215 215
             $response = $browser->send($request);
216
-        } catch (Exception $e) {
216
+        }
217
+        catch (Exception $e) {
217 218
             debug_add("Failed to execute request " . $request->getUrl() . ": " . $e->getMessage(), MIDCOM_LOG_WARN);
218 219
             return false;
219 220
         }
Please login to merge, or discard this patch.