Completed
Push — master ( 88fae4...fdf1a5 )
by Askupa
01:52
created
form.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,8 +57,9 @@
 block discarded – undo
57 57
         if( !isset($this->fields[$taxonomy_name][$field_name]))
58 58
         {
59 59
             $this->fields[$taxonomy_name][$field_name] = $field_props;
60
+        } else {
61
+            throw new \RuntimeException("A field named '$field_name' has already been registered in '$taxonomy_name'");
60 62
         }
61
-        else throw new \RuntimeException("A field named '$field_name' has already been registered in '$taxonomy_name'");
62 63
     }
63 64
     
64 65
     /**
Please login to merge, or discard this patch.
bootstrap.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,9 @@
 block discarded – undo
16 16
 /**
17 17
  * Prevent loading the library more than once
18 18
  */
19
-if( defined( 'AMARKAL_TAXONOMY' ) ) return;
19
+if( defined( 'AMARKAL_TAXONOMY' ) ) {
20
+    return;
21
+}
20 22
 define( 'AMARKAL_TAXONOMY', true );
21 23
 
22 24
 /**
Please login to merge, or discard this patch.