Completed
Branch master (6f8a68)
by Askupa
02:19
created
Manager.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,8 +37,9 @@
 block discarded – undo
37 37
         if( !in_array($id, $this->metaboxes) )
38 38
         {
39 39
             $this->metaboxes[$id] = array_merge($this->default_args(), $args);
40
+        } else {
41
+            throw new \RuntimeException("A metabox with id '$id' has already been registered.");
40 42
         }
41
-        else throw new \RuntimeException("A metabox with id '$id' has already been registered.");
42 43
     }
43 44
     
44 45
     public function render( $post, $args )
Please login to merge, or discard this patch.
functions.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,9 @@
 block discarded – undo
18 18
 /**
19 19
  * Prevent loading the library more than once
20 20
  */
21
-if( defined( 'AMARKAL_METABOX' ) ) return false;
21
+if( defined( 'AMARKAL_METABOX' ) ) {
22
+    return false;
23
+}
22 24
 define( 'AMARKAL_METABOX', true );
23 25
 
24 26
 if(!function_exists('amarkal_add_meta_box'))
Please login to merge, or discard this patch.