@@ -18,7 +18,9 @@ |
||
| 18 | 18 | /** |
| 19 | 19 | * Prevent loading the library more than once |
| 20 | 20 | */ |
| 21 | -if( defined( 'AMARKAL_SETTINGS' ) ) return false; |
|
| 21 | +if( defined( 'AMARKAL_SETTINGS' ) ) { |
|
| 22 | + return false; |
|
| 23 | +} |
|
| 22 | 24 | define( 'AMARKAL_SETTINGS', true ); |
| 23 | 25 | |
| 24 | 26 | if(!function_exists('amarkal_add_settings_page')) |
@@ -105,8 +105,7 @@ discard block |
||
| 105 | 105 | try |
| 106 | 106 | { |
| 107 | 107 | return $this->get_field_value_for_parent($parent_slug, $field_name); |
| 108 | - } |
|
| 109 | - catch(\RuntimeException $e) |
|
| 108 | + } catch(\RuntimeException $e) |
|
| 110 | 109 | { |
| 111 | 110 | continue; |
| 112 | 111 | } |
@@ -132,8 +131,7 @@ discard block |
||
| 132 | 131 | $component = $cp->get_component($field_name); |
| 133 | 132 | $value = \get_option($field_name, $component->default); |
| 134 | 133 | return $value; |
| 135 | - } |
|
| 136 | - catch(\RuntimeException $e) |
|
| 134 | + } catch(\RuntimeException $e) |
|
| 137 | 135 | { |
| 138 | 136 | continue; |
| 139 | 137 | } |