@@ -13,15 +13,15 @@ discard block |
||
| 13 | 13 | */ |
| 14 | 14 | |
| 15 | 15 | // Prevent direct file access |
| 16 | -defined( 'ABSPATH' ) or die( 'No script kiddies please!' ); |
|
| 16 | +defined('ABSPATH') or die('No script kiddies please!'); |
|
| 17 | 17 | |
| 18 | 18 | /** |
| 19 | 19 | * Prevent loading the library more than once |
| 20 | 20 | */ |
| 21 | -if( defined( 'AMARKAL_TAXONOMY' ) ) return false; |
|
| 22 | -define( 'AMARKAL_TAXONOMY', true ); |
|
| 21 | +if (defined('AMARKAL_TAXONOMY')) return false; |
|
| 22 | +define('AMARKAL_TAXONOMY', true); |
|
| 23 | 23 | |
| 24 | -if(!function_exists('amarkal_taxonomy_add_field')) |
|
| 24 | +if (!function_exists('amarkal_taxonomy_add_field')) |
|
| 25 | 25 | { |
| 26 | 26 | /** |
| 27 | 27 | * Add a field to the add & edit forms of a given taxonomy. |
@@ -31,9 +31,9 @@ discard block |
||
| 31 | 31 | * amarkal-ui components or a registered custom component. |
| 32 | 32 | * @param array $field_props The field's properties |
| 33 | 33 | */ |
| 34 | - function amarkal_taxonomy_add_field( $taxonomy_name, $field_name, $field_props ) |
|
| 34 | + function amarkal_taxonomy_add_field($taxonomy_name, $field_name, $field_props) |
|
| 35 | 35 | { |
| 36 | 36 | $form = Amarkal\Taxonomy\Form::get_instance(); |
| 37 | - $form->add_field( $taxonomy_name, $field_name, $field_props ); |
|
| 37 | + $form->add_field($taxonomy_name, $field_name, $field_props); |
|
| 38 | 38 | } |
| 39 | 39 | } |
| 40 | 40 | \ No newline at end of file |
@@ -18,7 +18,9 @@ |
||
| 18 | 18 | /** |
| 19 | 19 | * Prevent loading the library more than once |
| 20 | 20 | */ |
| 21 | -if( defined( 'AMARKAL_TAXONOMY' ) ) return false; |
|
| 21 | +if( defined( 'AMARKAL_TAXONOMY' ) ) { |
|
| 22 | + return false; |
|
| 23 | +} |
|
| 22 | 24 | define( 'AMARKAL_TAXONOMY', true ); |
| 23 | 25 | |
| 24 | 26 | if(!function_exists('amarkal_taxonomy_add_field')) |
@@ -6,7 +6,7 @@ |
||
| 6 | 6 | */ |
| 7 | 7 | |
| 8 | 8 | // Prevent direct file access |
| 9 | -defined( 'ABSPATH' ) or die( 'No script kiddies please!' ); |
|
| 9 | +defined('ABSPATH') or die('No script kiddies please!'); |
|
| 10 | 10 | |
| 11 | 11 | // Load module functions |
| 12 | 12 | require_once 'functions.php'; |
@@ -6,13 +6,13 @@ |
||
| 6 | 6 | */ |
| 7 | 7 | |
| 8 | 8 | // Prevent direct file access |
| 9 | -defined( 'ABSPATH' ) or die( 'No script kiddies please!' ); |
|
| 9 | +defined('ABSPATH') or die('No script kiddies please!'); |
|
| 10 | 10 | |
| 11 | 11 | /** |
| 12 | 12 | * Load module functions. If this amarkal module has not been loaded, |
| 13 | 13 | * functions.php will not return false. |
| 14 | 14 | */ |
| 15 | -if(false !== require_once 'functions.php') |
|
| 15 | +if (false !== require_once 'functions.php') |
|
| 16 | 16 | { |
| 17 | 17 | // Load required classes if not using composer |
| 18 | 18 | require_once 'Form.php'; |