Completed
Push — master ( 9c497f...01e407 )
by Askupa
01:41
created
functions.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -13,15 +13,15 @@  discard block
 block discarded – undo
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_SETTINGS' ) ) return false;
22
-define( 'AMARKAL_SETTINGS', true );
21
+if (defined('AMARKAL_SETTINGS')) return false;
22
+define('AMARKAL_SETTINGS', true);
23 23
 
24
-if(!function_exists('amarkal_add_settings_page'))
24
+if (!function_exists('amarkal_add_settings_page'))
25 25
 {
26 26
     /**
27 27
      * Add a new settings page
@@ -29,14 +29,14 @@  discard block
 block discarded – undo
29 29
      * @param [array] $args
30 30
      * @return void
31 31
      */
32
-    function amarkal_add_settings_page( $args )
32
+    function amarkal_add_settings_page($args)
33 33
     {
34 34
         $manager = Amarkal\Settings\Manager::get_instance();
35 35
         return $manager->add_settings_page($args);
36 36
     }
37 37
 }
38 38
 
39
-if(!function_exists('amarkal_get_settings_page'))
39
+if (!function_exists('amarkal_get_settings_page'))
40 40
 {
41 41
     /**
42 42
      * Get a settings page instance
@@ -44,14 +44,14 @@  discard block
 block discarded – undo
44 44
      * @param string $slug
45 45
      * @return Amarkal\Settings\SettingsPage
46 46
      */
47
-    function amarkal_get_settings_page( $slug )
47
+    function amarkal_get_settings_page($slug)
48 48
     {
49 49
         $manager = Amarkal\Settings\Manager::get_instance();
50 50
         return $manager->get_settings_page($slug);
51 51
     }
52 52
 }
53 53
 
54
-if(!function_exists('amarkal_get_settings_value'))
54
+if (!function_exists('amarkal_get_settings_value'))
55 55
 {
56 56
     /**
57 57
      * Get the value of the given settings field
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
      * @param string $field_name
61 61
      * @return any
62 62
      */
63
-    function amarkal_get_settings_value( $slug, $field_name )
63
+    function amarkal_get_settings_value($slug, $field_name)
64 64
     {
65 65
         $manager = Amarkal\Settings\Manager::get_instance();
66 66
         $page = $manager->get_settings_page($slug);
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
     }
69 69
 }
70 70
 
71
-if(!function_exists('amarkal_get_settings_values'))
71
+if (!function_exists('amarkal_get_settings_values'))
72 72
 {
73 73
     /**
74 74
      * Get all the values for the given settings page as an array
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
      * @param string $slug
77 77
      * @return array
78 78
      */
79
-    function amarkal_get_settings_values( $slug )
79
+    function amarkal_get_settings_values($slug)
80 80
     {
81 81
         $manager = Amarkal\Settings\Manager::get_instance();
82 82
         $page = $manager->get_settings_page($slug);
Please login to merge, or discard this patch.