@@ -11,25 +11,25 @@ discard block |
||
| 11 | 11 | * @link https://github.com/askupasoftware/amarkal-taxonomy |
| 12 | 12 | * @copyright 2017 Askupa Software |
| 13 | 13 | */ |
| 14 | -defined( 'ABSPATH' ) or die( 'No script kiddies please!' ); |
|
| 14 | +defined('ABSPATH') or die('No script kiddies please!'); |
|
| 15 | 15 | |
| 16 | 16 | /** |
| 17 | 17 | * Prevent loading the library more than once |
| 18 | 18 | */ |
| 19 | -if( defined( 'AMARKAL_TAXONOMY' ) ) return; |
|
| 20 | -define( 'AMARKAL_TAXONOMY', true ); |
|
| 19 | +if (defined('AMARKAL_TAXONOMY')) return; |
|
| 20 | +define('AMARKAL_TAXONOMY', true); |
|
| 21 | 21 | |
| 22 | 22 | /** |
| 23 | 23 | * Load required classes if not using composer |
| 24 | 24 | */ |
| 25 | -if( !class_exists('Composer\\Autoload\\ClassLoader') ) |
|
| 25 | +if (!class_exists('Composer\\Autoload\\ClassLoader')) |
|
| 26 | 26 | { |
| 27 | 27 | require_once 'Form.php'; |
| 28 | 28 | require_once 'AddField.php'; |
| 29 | 29 | require_once 'EditField.php'; |
| 30 | 30 | } |
| 31 | 31 | |
| 32 | -if(!function_exists('amarkal_taxonomy_add_field')) |
|
| 32 | +if (!function_exists('amarkal_taxonomy_add_field')) |
|
| 33 | 33 | { |
| 34 | 34 | /** |
| 35 | 35 | * Add a field to the add & edit forms of a given taxonomy. |
@@ -39,9 +39,9 @@ discard block |
||
| 39 | 39 | * amarkal-ui components or a registered custom component. |
| 40 | 40 | * @param array $field_props The field's properties |
| 41 | 41 | */ |
| 42 | - function amarkal_taxonomy_add_field( $taxonomy_name, $field_name, $field_props ) |
|
| 42 | + function amarkal_taxonomy_add_field($taxonomy_name, $field_name, $field_props) |
|
| 43 | 43 | { |
| 44 | 44 | $form = Amarkal\Taxonomy\Form::get_instance(); |
| 45 | - $form->add_field( $taxonomy_name, $field_name, $field_props ); |
|
| 45 | + $form->add_field($taxonomy_name, $field_name, $field_props); |
|
| 46 | 46 | } |
| 47 | 47 | } |
| 48 | 48 | \ No newline at end of file |