Completed
Push — master ( 5b826e...d636cb )
by Askupa
01:55
created
bootstrap.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -10,25 +10,25 @@  discard block
 block discarded – undo
10 10
  * @link      https://github.com/askupasoftware/amarkal-ui
11 11
  * @copyright 2017 Askupa Software
12 12
  */
13
-defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
13
+defined('ABSPATH') or die('No script kiddies please!');
14 14
 
15 15
 /**
16 16
  * Prevent loading the library more than once
17 17
  */
18
-if( defined( 'AMARKAL_UI' ) ) return;
19
-define( 'AMARKAL_UI', true );
18
+if (defined('AMARKAL_UI')) return;
19
+define('AMARKAL_UI', true);
20 20
 
21 21
 /**
22 22
  * Load required classes if not using composer
23 23
  */
24
-if( !class_exists('Composer\\Autoload\\ClassLoader') )
24
+if (!class_exists('Composer\\Autoload\\ClassLoader'))
25 25
 {
26 26
     require_once 'Renderer.php';
27 27
     require_once 'AbstractController.php';
28 28
     require_once 'AbstractComponent.php';
29 29
 }
30 30
 
31
-if(!function_exists('amarkal_ui_render'))
31
+if (!function_exists('amarkal_ui_render'))
32 32
 {
33 33
     /**
34 34
      * Render a UI component.
@@ -38,14 +38,14 @@  discard block
 block discarded – undo
38 38
      * @param array $props The component's properties
39 39
      * @return string The rendered HTML
40 40
      */
41
-    function amarkal_ui_render( $type, array $props = array() )
41
+    function amarkal_ui_render($type, array $props = array())
42 42
     {
43 43
         $renderer = Amarkal\UI\Renderer::get_instance();
44
-        return $renderer->render_component( $type, $props );
44
+        return $renderer->render_component($type, $props);
45 45
     }
46 46
 }
47 47
 
48
-if(!function_exists('amarkal_ui_register_component'))
48
+if (!function_exists('amarkal_ui_register_component'))
49 49
 {
50 50
     /**
51 51
      * Register a custom UI component. The registered component's class should
@@ -55,9 +55,9 @@  discard block
 block discarded – undo
55 55
      * to one of the core component's type, it will override the core component.
56 56
      * @param string $class_name The component's class name.
57 57
      */
58
-    function amarkal_ui_register_component( $type, $class_name )
58
+    function amarkal_ui_register_component($type, $class_name)
59 59
     {
60 60
         $renderer = Amarkal\UI\Renderer::get_instance();
61
-        $renderer->register_component( $type, $class_name );
61
+        $renderer->register_component($type, $class_name);
62 62
     }
63 63
 }
64 64
\ No newline at end of file
Please login to merge, or discard this patch.