@@ -57,8 +57,9 @@ |
||
57 | 57 | { |
58 | 58 | $this->metaboxes[$id] = array_merge($this->default_args(), $args); |
59 | 59 | $this->metaboxes[$id]['form'] = new \Amarkal\UI\Form($args['fields']); |
60 | + } else { |
|
61 | + throw new \RuntimeException("A metabox with id '$id' has already been registered."); |
|
60 | 62 | } |
61 | - else throw new \RuntimeException("A metabox with id '$id' has already been registered."); |
|
62 | 63 | } |
63 | 64 | |
64 | 65 | /** |