Completed
Push — master ( c1bd80...7840cd )
by CodexShaper
11:04 queued 12s
created
admin/class-wpb-admin.php 2 patches
Indentation   +65 added lines, -65 removed lines patch added patch discarded remove patch
@@ -21,82 +21,82 @@
 block discarded – undo
21 21
  */
22 22
 class WPB_Admin {
23 23
 
24
-	/**
25
-	 * The ID of this plugin.
26
-	 *
27
-	 * @since    1.0.0
28
-	 * @access   private
29
-	 * @var      string    $plugin_name    The ID of this plugin.
30
-	 */
31
-	private $plugin_name;
24
+    /**
25
+     * The ID of this plugin.
26
+     *
27
+     * @since    1.0.0
28
+     * @access   private
29
+     * @var      string    $plugin_name    The ID of this plugin.
30
+     */
31
+    private $plugin_name;
32 32
 
33
-	/**
34
-	 * The version of this plugin.
35
-	 *
36
-	 * @since    1.0.0
37
-	 * @access   private
38
-	 * @var      string    $version    The current version of this plugin.
39
-	 */
40
-	private $version;
33
+    /**
34
+     * The version of this plugin.
35
+     *
36
+     * @since    1.0.0
37
+     * @access   private
38
+     * @var      string    $version    The current version of this plugin.
39
+     */
40
+    private $version;
41 41
 
42
-	/**
43
-	 * Initialize the class and set its properties.
44
-	 *
45
-	 * @since    1.0.0
46
-	 * @param      string $plugin_name       The name of this plugin.
47
-	 * @param      string $version    The version of this plugin.
48
-	 */
49
-	public function __construct( $plugin_name, $version ) {
42
+    /**
43
+     * Initialize the class and set its properties.
44
+     *
45
+     * @since    1.0.0
46
+     * @param      string $plugin_name       The name of this plugin.
47
+     * @param      string $version    The version of this plugin.
48
+     */
49
+    public function __construct( $plugin_name, $version ) {
50 50
 
51
-		$this->plugin_name = $plugin_name;
52
-		$this->version     = $version;
51
+        $this->plugin_name = $plugin_name;
52
+        $this->version     = $version;
53 53
 
54
-	}
54
+    }
55 55
 
56
-	/**
57
-	 * Register the stylesheets for the admin area.
58
-	 *
59
-	 * @since    1.0.0
60
-	 */
61
-	public function enqueue_styles() {
56
+    /**
57
+     * Register the stylesheets for the admin area.
58
+     *
59
+     * @since    1.0.0
60
+     */
61
+    public function enqueue_styles() {
62 62
 
63
-		/**
64
-		 * This function is provided for demonstration purposes only.
65
-		 *
66
-		 * An instance of this class should be passed to the run() function
67
-		 * defined in WPB_Loader as all of the hooks are defined
68
-		 * in that particular class.
69
-		 *
70
-		 * The WPB_Loader will then create the relationship
71
-		 * between the defined hooks and the functions defined in this
72
-		 * class.
73
-		 */
63
+        /**
64
+         * This function is provided for demonstration purposes only.
65
+         *
66
+         * An instance of this class should be passed to the run() function
67
+         * defined in WPB_Loader as all of the hooks are defined
68
+         * in that particular class.
69
+         *
70
+         * The WPB_Loader will then create the relationship
71
+         * between the defined hooks and the functions defined in this
72
+         * class.
73
+         */
74 74
 
75
-		wp_enqueue_style( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'css/wpb-admin.css', array(), $this->version, 'all' );
75
+        wp_enqueue_style( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'css/wpb-admin.css', array(), $this->version, 'all' );
76 76
 
77
-	}
77
+    }
78 78
 
79
-	/**
80
-	 * Register the JavaScript for the admin area.
81
-	 *
82
-	 * @since    1.0.0
83
-	 */
84
-	public function enqueue_scripts() {
79
+    /**
80
+     * Register the JavaScript for the admin area.
81
+     *
82
+     * @since    1.0.0
83
+     */
84
+    public function enqueue_scripts() {
85 85
 
86
-		/**
87
-		 * This function is provided for demonstration purposes only.
88
-		 *
89
-		 * An instance of this class should be passed to the run() function
90
-		 * defined in WPB_Loader as all of the hooks are defined
91
-		 * in that particular class.
92
-		 *
93
-		 * The WPB_Loader will then create the relationship
94
-		 * between the defined hooks and the functions defined in this
95
-		 * class.
96
-		 */
86
+        /**
87
+         * This function is provided for demonstration purposes only.
88
+         *
89
+         * An instance of this class should be passed to the run() function
90
+         * defined in WPB_Loader as all of the hooks are defined
91
+         * in that particular class.
92
+         *
93
+         * The WPB_Loader will then create the relationship
94
+         * between the defined hooks and the functions defined in this
95
+         * class.
96
+         */
97 97
 
98
-		wp_enqueue_script( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'js/wpb-admin.js', array( 'jquery' ), $this->version, false );
98
+        wp_enqueue_script( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'js/wpb-admin.js', array( 'jquery' ), $this->version, false );
99 99
 
100
-	}
100
+    }
101 101
 
102 102
 }
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
 	 * @param      string $plugin_name       The name of this plugin.
47 47
 	 * @param      string $version    The version of this plugin.
48 48
 	 */
49
-	public function __construct( $plugin_name, $version ) {
49
+	public function __construct($plugin_name, $version) {
50 50
 
51 51
 		$this->plugin_name = $plugin_name;
52 52
 		$this->version     = $version;
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
 		 * class.
73 73
 		 */
74 74
 
75
-		wp_enqueue_style( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'css/wpb-admin.css', array(), $this->version, 'all' );
75
+		wp_enqueue_style($this->plugin_name, plugin_dir_url(__FILE__).'css/wpb-admin.css', array(), $this->version, 'all');
76 76
 
77 77
 	}
78 78
 
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
 		 * class.
96 96
 		 */
97 97
 
98
-		wp_enqueue_script( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'js/wpb-admin.js', array( 'jquery' ), $this->version, false );
98
+		wp_enqueue_script($this->plugin_name, plugin_dir_url(__FILE__).'js/wpb-admin.js', array('jquery'), $this->version, false);
99 99
 
100 100
 	}
101 101
 
Please login to merge, or discard this patch.
admin/class-wpb-admin-submenu.php 2 patches
Indentation   +138 added lines, -138 removed lines patch added patch discarded remove patch
@@ -22,142 +22,142 @@
 block discarded – undo
22 22
  */
23 23
 class WPB_Admin_SubMenu {
24 24
 
25
-	/**
26
-	 * The menu page title.
27
-	 *
28
-	 * @since    1.0.0
29
-	 * @access   protected
30
-	 * @var      string    $page_title    The string used to set menu page title.
31
-	 */
32
-	public $page_title;
33
-
34
-	/**
35
-	 * The menu title.
36
-	 *
37
-	 * @since    1.0.0
38
-	 * @access   protected
39
-	 * @var      string    $menu_title    The string used to set menu title.
40
-	 */
41
-	public $menu_title;
42
-
43
-	/**
44
-	 * The menu capability.
45
-	 *
46
-	 * @since    1.0.0
47
-	 * @access   protected
48
-	 * @var      string    $capability    The string used to set menu capability.
49
-	 */
50
-	public $capability;
51
-
52
-	/**
53
-	 * The menu slug.
54
-	 *
55
-	 * @since    1.0.0
56
-	 * @access   protected
57
-	 * @var      string    $slug    The string used to set menu slug.
58
-	 */
59
-	public $slug;
60
-
61
-	/**
62
-	 * The callback to render content.
63
-	 *
64
-	 * @since    1.0.0
65
-	 * @access   protected
66
-	 * @var      callback    $callback    The callback used to render content.
67
-	 */
68
-	public $callback;
69
-
70
-	/**
71
-	 * The menu icon.
72
-	 *
73
-	 * @since    1.0.0
74
-	 * @access   protected
75
-	 * @var      string    $icon    The string used to set menu icon.
76
-	 */
77
-	public $icon;
78
-
79
-	/**
80
-	 * The menu position.
81
-	 *
82
-	 * @since    1.0.0
83
-	 * @access   protected
84
-	 * @var      int    $position    The string used to set menu position.
85
-	 */
86
-	public $position;
87
-
88
-	/**
89
-	 * The menu plugin name.
90
-	 *
91
-	 * @since    1.0.0
92
-	 * @access   protected
93
-	 * @var      string    $plugin_name    The string used to uniquely identify this plugin.
94
-	 */
95
-	public $plugin_name;
96
-
97
-	/**
98
-	 * Create a new menu page.
99
-	 *
100
-	 * @since    1.0.0
101
-	 * @access   public
102
-	 */
103
-	public function save() {
104
-		add_action( 'admin_menu', array( $this, 'create_submenu' ) );
105
-	}
106
-
107
-	/**
108
-	 * Create a new submenu page.
109
-	 *
110
-	 * @since    1.0.0
111
-	 * @param    array $options Pass proprties as an array.
112
-	 * @access   public
113
-	 */
114
-	public function make( $options = array() ) {
115
-		foreach ( $options as $property => $value ) {
116
-			if ( property_exists( $this, $property ) ) {
117
-				$this->{$property} = $value;
118
-			}
119
-		}
120
-		add_action( 'admin_menu', array( $this, 'create_submenu' ) );
121
-	}
122
-
123
-	/**
124
-	 * Register new submenu page.
125
-	 *
126
-	 * @return void
127
-	 */
128
-	public function create_submenu() {
129
-		if ( current_user_can( $this->capability ) ) {
130
-			$hook = add_submenu_page(
131
-				$this->parent_slug,
132
-				$this->page_title,
133
-				$this->menu_title,
134
-				$this->capability,
135
-				$this->slug,
136
-				$this->callback,
137
-				$this->icon
138
-			);
139
-		}
140
-
141
-		add_action( 'load-' . $hook, array( $this, 'init_hooks' ) );
142
-	}
143
-
144
-	/**
145
-	 * Initialize hooks for the admin page.
146
-	 *
147
-	 * @return void
148
-	 */
149
-	public function init_hooks() {
150
-		add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_scripts' ) );
151
-	}
152
-
153
-	/**
154
-	 * Load scripts and styles for the submenu page.
155
-	 *
156
-	 * @return void
157
-	 */
158
-	public function enqueue_scripts() {
159
-		wp_enqueue_style( $this->plugin_name . '-vendors' );
160
-		wp_enqueue_style( $this->plugin_name . '-admin' );
161
-		wp_enqueue_script( $this->plugin_name . '-admin' );
162
-	}
25
+    /**
26
+     * The menu page title.
27
+     *
28
+     * @since    1.0.0
29
+     * @access   protected
30
+     * @var      string    $page_title    The string used to set menu page title.
31
+     */
32
+    public $page_title;
33
+
34
+    /**
35
+     * The menu title.
36
+     *
37
+     * @since    1.0.0
38
+     * @access   protected
39
+     * @var      string    $menu_title    The string used to set menu title.
40
+     */
41
+    public $menu_title;
42
+
43
+    /**
44
+     * The menu capability.
45
+     *
46
+     * @since    1.0.0
47
+     * @access   protected
48
+     * @var      string    $capability    The string used to set menu capability.
49
+     */
50
+    public $capability;
51
+
52
+    /**
53
+     * The menu slug.
54
+     *
55
+     * @since    1.0.0
56
+     * @access   protected
57
+     * @var      string    $slug    The string used to set menu slug.
58
+     */
59
+    public $slug;
60
+
61
+    /**
62
+     * The callback to render content.
63
+     *
64
+     * @since    1.0.0
65
+     * @access   protected
66
+     * @var      callback    $callback    The callback used to render content.
67
+     */
68
+    public $callback;
69
+
70
+    /**
71
+     * The menu icon.
72
+     *
73
+     * @since    1.0.0
74
+     * @access   protected
75
+     * @var      string    $icon    The string used to set menu icon.
76
+     */
77
+    public $icon;
78
+
79
+    /**
80
+     * The menu position.
81
+     *
82
+     * @since    1.0.0
83
+     * @access   protected
84
+     * @var      int    $position    The string used to set menu position.
85
+     */
86
+    public $position;
87
+
88
+    /**
89
+     * The menu plugin name.
90
+     *
91
+     * @since    1.0.0
92
+     * @access   protected
93
+     * @var      string    $plugin_name    The string used to uniquely identify this plugin.
94
+     */
95
+    public $plugin_name;
96
+
97
+    /**
98
+     * Create a new menu page.
99
+     *
100
+     * @since    1.0.0
101
+     * @access   public
102
+     */
103
+    public function save() {
104
+        add_action( 'admin_menu', array( $this, 'create_submenu' ) );
105
+    }
106
+
107
+    /**
108
+     * Create a new submenu page.
109
+     *
110
+     * @since    1.0.0
111
+     * @param    array $options Pass proprties as an array.
112
+     * @access   public
113
+     */
114
+    public function make( $options = array() ) {
115
+        foreach ( $options as $property => $value ) {
116
+            if ( property_exists( $this, $property ) ) {
117
+                $this->{$property} = $value;
118
+            }
119
+        }
120
+        add_action( 'admin_menu', array( $this, 'create_submenu' ) );
121
+    }
122
+
123
+    /**
124
+     * Register new submenu page.
125
+     *
126
+     * @return void
127
+     */
128
+    public function create_submenu() {
129
+        if ( current_user_can( $this->capability ) ) {
130
+            $hook = add_submenu_page(
131
+                $this->parent_slug,
132
+                $this->page_title,
133
+                $this->menu_title,
134
+                $this->capability,
135
+                $this->slug,
136
+                $this->callback,
137
+                $this->icon
138
+            );
139
+        }
140
+
141
+        add_action( 'load-' . $hook, array( $this, 'init_hooks' ) );
142
+    }
143
+
144
+    /**
145
+     * Initialize hooks for the admin page.
146
+     *
147
+     * @return void
148
+     */
149
+    public function init_hooks() {
150
+        add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_scripts' ) );
151
+    }
152
+
153
+    /**
154
+     * Load scripts and styles for the submenu page.
155
+     *
156
+     * @return void
157
+     */
158
+    public function enqueue_scripts() {
159
+        wp_enqueue_style( $this->plugin_name . '-vendors' );
160
+        wp_enqueue_style( $this->plugin_name . '-admin' );
161
+        wp_enqueue_script( $this->plugin_name . '-admin' );
162
+    }
163 163
 }
Please login to merge, or discard this patch.
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
 	 * @access   public
102 102
 	 */
103 103
 	public function save() {
104
-		add_action( 'admin_menu', array( $this, 'create_submenu' ) );
104
+		add_action('admin_menu', array($this, 'create_submenu'));
105 105
 	}
106 106
 
107 107
 	/**
@@ -111,13 +111,13 @@  discard block
 block discarded – undo
111 111
 	 * @param    array $options Pass proprties as an array.
112 112
 	 * @access   public
113 113
 	 */
114
-	public function make( $options = array() ) {
115
-		foreach ( $options as $property => $value ) {
116
-			if ( property_exists( $this, $property ) ) {
114
+	public function make($options = array()) {
115
+		foreach ($options as $property => $value) {
116
+			if (property_exists($this, $property)) {
117 117
 				$this->{$property} = $value;
118 118
 			}
119 119
 		}
120
-		add_action( 'admin_menu', array( $this, 'create_submenu' ) );
120
+		add_action('admin_menu', array($this, 'create_submenu'));
121 121
 	}
122 122
 
123 123
 	/**
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
 	 * @return void
127 127
 	 */
128 128
 	public function create_submenu() {
129
-		if ( current_user_can( $this->capability ) ) {
129
+		if (current_user_can($this->capability)) {
130 130
 			$hook = add_submenu_page(
131 131
 				$this->parent_slug,
132 132
 				$this->page_title,
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
 			);
139 139
 		}
140 140
 
141
-		add_action( 'load-' . $hook, array( $this, 'init_hooks' ) );
141
+		add_action('load-'.$hook, array($this, 'init_hooks'));
142 142
 	}
143 143
 
144 144
 	/**
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
 	 * @return void
148 148
 	 */
149 149
 	public function init_hooks() {
150
-		add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_scripts' ) );
150
+		add_action('admin_enqueue_scripts', array($this, 'enqueue_scripts'));
151 151
 	}
152 152
 
153 153
 	/**
@@ -156,8 +156,8 @@  discard block
 block discarded – undo
156 156
 	 * @return void
157 157
 	 */
158 158
 	public function enqueue_scripts() {
159
-		wp_enqueue_style( $this->plugin_name . '-vendors' );
160
-		wp_enqueue_style( $this->plugin_name . '-admin' );
161
-		wp_enqueue_script( $this->plugin_name . '-admin' );
159
+		wp_enqueue_style($this->plugin_name.'-vendors');
160
+		wp_enqueue_style($this->plugin_name.'-admin');
161
+		wp_enqueue_script($this->plugin_name.'-admin');
162 162
 	}
163 163
 }
Please login to merge, or discard this patch.
admin/class-wpb-admin-menu.php 2 patches
Indentation   +122 added lines, -122 removed lines patch added patch discarded remove patch
@@ -21,139 +21,139 @@
 block discarded – undo
21 21
  */
22 22
 class WPB_Admin_Menu {
23 23
 
24
-	/**
25
-	 * The menu page title.
26
-	 *
27
-	 * @since    1.0.0
28
-	 * @access   protected
29
-	 * @var      string    $page_title    The string used to set menu page title.
30
-	 */
31
-	public $page_title;
24
+    /**
25
+     * The menu page title.
26
+     *
27
+     * @since    1.0.0
28
+     * @access   protected
29
+     * @var      string    $page_title    The string used to set menu page title.
30
+     */
31
+    public $page_title;
32 32
 
33
-	/**
34
-	 * The menu title.
35
-	 *
36
-	 * @since    1.0.0
37
-	 * @access   protected
38
-	 * @var      string    $menu_title    The string used to set menu title.
39
-	 */
40
-	public $menu_title;
33
+    /**
34
+     * The menu title.
35
+     *
36
+     * @since    1.0.0
37
+     * @access   protected
38
+     * @var      string    $menu_title    The string used to set menu title.
39
+     */
40
+    public $menu_title;
41 41
 
42
-	/**
43
-	 * The menu capability.
44
-	 *
45
-	 * @since    1.0.0
46
-	 * @access   protected
47
-	 * @var      string    $capability    The string used to set menu capability.
48
-	 */
49
-	public $capability;
42
+    /**
43
+     * The menu capability.
44
+     *
45
+     * @since    1.0.0
46
+     * @access   protected
47
+     * @var      string    $capability    The string used to set menu capability.
48
+     */
49
+    public $capability;
50 50
 
51
-	/**
52
-	 * The menu slug.
53
-	 *
54
-	 * @since    1.0.0
55
-	 * @access   protected
56
-	 * @var      string    $slug    The string used to set menu slug.
57
-	 */
58
-	public $slug;
51
+    /**
52
+     * The menu slug.
53
+     *
54
+     * @since    1.0.0
55
+     * @access   protected
56
+     * @var      string    $slug    The string used to set menu slug.
57
+     */
58
+    public $slug;
59 59
 
60
-	/**
61
-	 * The callback to render content.
62
-	 *
63
-	 * @since    1.0.0
64
-	 * @access   protected
65
-	 * @var      callback    $callback    The callback used to render content.
66
-	 */
67
-	public $callback;
60
+    /**
61
+     * The callback to render content.
62
+     *
63
+     * @since    1.0.0
64
+     * @access   protected
65
+     * @var      callback    $callback    The callback used to render content.
66
+     */
67
+    public $callback;
68 68
 
69
-	/**
70
-	 * The menu icon.
71
-	 *
72
-	 * @since    1.0.0
73
-	 * @access   protected
74
-	 * @var      string    $icon    The string used to set menu icon.
75
-	 */
76
-	public $icon;
69
+    /**
70
+     * The menu icon.
71
+     *
72
+     * @since    1.0.0
73
+     * @access   protected
74
+     * @var      string    $icon    The string used to set menu icon.
75
+     */
76
+    public $icon;
77 77
 
78
-	/**
79
-	 * The menu position.
80
-	 *
81
-	 * @since    1.0.0
82
-	 * @access   protected
83
-	 * @var      int    $position    The string used to set menu position.
84
-	 */
85
-	public $position;
78
+    /**
79
+     * The menu position.
80
+     *
81
+     * @since    1.0.0
82
+     * @access   protected
83
+     * @var      int    $position    The string used to set menu position.
84
+     */
85
+    public $position;
86 86
 
87
-	/**
88
-	 * The menu plugin name.
89
-	 *
90
-	 * @since    1.0.0
91
-	 * @access   protected
92
-	 * @var      string    $plugin_name    The string used to uniquely identify this plugin.
93
-	 */
94
-	public $plugin_name;
87
+    /**
88
+     * The menu plugin name.
89
+     *
90
+     * @since    1.0.0
91
+     * @access   protected
92
+     * @var      string    $plugin_name    The string used to uniquely identify this plugin.
93
+     */
94
+    public $plugin_name;
95 95
 
96
-	/**
97
-	 * Create a new menu page.
98
-	 *
99
-	 * @since    1.0.0
100
-	 * @access   public
101
-	 */
102
-	public function save() {
103
-		add_action( 'admin_menu', array( $this, 'create_menu' ) );
104
-	}
96
+    /**
97
+     * Create a new menu page.
98
+     *
99
+     * @since    1.0.0
100
+     * @access   public
101
+     */
102
+    public function save() {
103
+        add_action( 'admin_menu', array( $this, 'create_menu' ) );
104
+    }
105 105
 
106
-	/**
107
-	 * Create a new menu page.
108
-	 *
109
-	 * @since    1.0.0
110
-	 * @param    array $options Pass proprties as an array.
111
-	 * @access   public
112
-	 */
113
-	public function make( $options = array() ) {
114
-		foreach ( $options as $property => $value ) {
115
-			if ( property_exists( get_called_class(), $property ) ) {
116
-				$this->{$property} = $value;
117
-			}
118
-		}
119
-		add_action( 'admin_menu', array( $this, 'create_menu' ) );
120
-	}
106
+    /**
107
+     * Create a new menu page.
108
+     *
109
+     * @since    1.0.0
110
+     * @param    array $options Pass proprties as an array.
111
+     * @access   public
112
+     */
113
+    public function make( $options = array() ) {
114
+        foreach ( $options as $property => $value ) {
115
+            if ( property_exists( get_called_class(), $property ) ) {
116
+                $this->{$property} = $value;
117
+            }
118
+        }
119
+        add_action( 'admin_menu', array( $this, 'create_menu' ) );
120
+    }
121 121
 
122
-	/**
123
-	 * Register new menu page.
124
-	 *
125
-	 * @return void
126
-	 */
127
-	public function create_menu() {
128
-		$hook = add_menu_page(
129
-			$this->page_title,
130
-			$this->menu_title,
131
-			$this->capability,
132
-			$this->slug,
133
-			$this->callback,
134
-			$this->icon
135
-		);
122
+    /**
123
+     * Register new menu page.
124
+     *
125
+     * @return void
126
+     */
127
+    public function create_menu() {
128
+        $hook = add_menu_page(
129
+            $this->page_title,
130
+            $this->menu_title,
131
+            $this->capability,
132
+            $this->slug,
133
+            $this->callback,
134
+            $this->icon
135
+        );
136 136
 
137
-		add_action( 'load-' . $hook, array( $this, 'init_hooks' ) );
138
-	}
137
+        add_action( 'load-' . $hook, array( $this, 'init_hooks' ) );
138
+    }
139 139
 
140
-	/**
141
-	 * Initialize hooks for the admin page.
142
-	 *
143
-	 * @return void
144
-	 */
145
-	public function init_hooks() {
146
-		add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_scripts' ) );
147
-	}
140
+    /**
141
+     * Initialize hooks for the admin page.
142
+     *
143
+     * @return void
144
+     */
145
+    public function init_hooks() {
146
+        add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_scripts' ) );
147
+    }
148 148
 
149
-	/**
150
-	 * Load scripts and styles for the current menu page.
151
-	 *
152
-	 * @return void
153
-	 */
154
-	public function enqueue_scripts() {
155
-		wp_enqueue_style( $this->plugin_name . '-vendors' );
156
-		wp_enqueue_style( $this->plugin_name . '-admin' );
157
-		wp_enqueue_script( $this->plugin_name . '-admin' );
158
-	}
149
+    /**
150
+     * Load scripts and styles for the current menu page.
151
+     *
152
+     * @return void
153
+     */
154
+    public function enqueue_scripts() {
155
+        wp_enqueue_style( $this->plugin_name . '-vendors' );
156
+        wp_enqueue_style( $this->plugin_name . '-admin' );
157
+        wp_enqueue_script( $this->plugin_name . '-admin' );
158
+    }
159 159
 }
Please login to merge, or discard this patch.
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
 	 * @access   public
101 101
 	 */
102 102
 	public function save() {
103
-		add_action( 'admin_menu', array( $this, 'create_menu' ) );
103
+		add_action('admin_menu', array($this, 'create_menu'));
104 104
 	}
105 105
 
106 106
 	/**
@@ -110,13 +110,13 @@  discard block
 block discarded – undo
110 110
 	 * @param    array $options Pass proprties as an array.
111 111
 	 * @access   public
112 112
 	 */
113
-	public function make( $options = array() ) {
114
-		foreach ( $options as $property => $value ) {
115
-			if ( property_exists( get_called_class(), $property ) ) {
113
+	public function make($options = array()) {
114
+		foreach ($options as $property => $value) {
115
+			if (property_exists(get_called_class(), $property)) {
116 116
 				$this->{$property} = $value;
117 117
 			}
118 118
 		}
119
-		add_action( 'admin_menu', array( $this, 'create_menu' ) );
119
+		add_action('admin_menu', array($this, 'create_menu'));
120 120
 	}
121 121
 
122 122
 	/**
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
 			$this->icon
135 135
 		);
136 136
 
137
-		add_action( 'load-' . $hook, array( $this, 'init_hooks' ) );
137
+		add_action('load-'.$hook, array($this, 'init_hooks'));
138 138
 	}
139 139
 
140 140
 	/**
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
 	 * @return void
144 144
 	 */
145 145
 	public function init_hooks() {
146
-		add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_scripts' ) );
146
+		add_action('admin_enqueue_scripts', array($this, 'enqueue_scripts'));
147 147
 	}
148 148
 
149 149
 	/**
@@ -152,8 +152,8 @@  discard block
 block discarded – undo
152 152
 	 * @return void
153 153
 	 */
154 154
 	public function enqueue_scripts() {
155
-		wp_enqueue_style( $this->plugin_name . '-vendors' );
156
-		wp_enqueue_style( $this->plugin_name . '-admin' );
157
-		wp_enqueue_script( $this->plugin_name . '-admin' );
155
+		wp_enqueue_style($this->plugin_name.'-vendors');
156
+		wp_enqueue_style($this->plugin_name.'-admin');
157
+		wp_enqueue_script($this->plugin_name.'-admin');
158 158
 	}
159 159
 }
Please login to merge, or discard this patch.
routes/api.php 2 patches
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -16,9 +16,9 @@
 block discarded – undo
16 16
 use Illuminate\Http\Request;
17 17
 
18 18
 $router->get(
19
-	'test',
20
-	function( Request $request ) {
21
-		echo 'API Test';
22
-		die();
23
-	}
19
+    'test',
20
+    function( Request $request ) {
21
+        echo 'API Test';
22
+        die();
23
+    }
24 24
 );
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
 
18 18
 $router->get(
19 19
 	'test',
20
-	function( Request $request ) {
20
+	function(Request $request) {
21 21
 		echo 'API Test';
22 22
 		die();
23 23
 	}
Please login to merge, or discard this patch.
routes/web.php 2 patches
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -16,17 +16,17 @@
 block discarded – undo
16 16
 use Illuminate\Http\Request;
17 17
 
18 18
 $router->get(
19
-	'test',
20
-	function() {
21
-		echo wpb_view( 'welcome' );
22
-		die();
23
-	}
19
+    'test',
20
+    function() {
21
+        echo wpb_view( 'welcome' );
22
+        die();
23
+    }
24 24
 );
25 25
 
26 26
 Route::get(
27
-	'test/facade',
28
-	function( Request $request ) {
29
-		echo 'This is a facade route';
30
-		die();
31
-	}
27
+    'test/facade',
28
+    function( Request $request ) {
29
+        echo 'This is a facade route';
30
+        die();
31
+    }
32 32
 );
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,14 +18,14 @@
 block discarded – undo
18 18
 $router->get(
19 19
 	'test',
20 20
 	function() {
21
-		echo wpb_view( 'welcome' );
21
+		echo wpb_view('welcome');
22 22
 		die();
23 23
 	}
24 24
 );
25 25
 
26 26
 Route::get(
27 27
 	'test/facade',
28
-	function( Request $request ) {
28
+	function(Request $request) {
29 29
 		echo 'This is a facade route';
30 30
 		die();
31 31
 	}
Please login to merge, or discard this patch.
config/app.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -10,12 +10,12 @@
 block discarded – undo
10 10
  */
11 11
 
12 12
 return array(
13
-	'debug'     => true,
14
-	'env'       => 'production',
15
-	'providers' => array(
16
-		'\Illuminate\Filesystem\FilesystemServiceProvider',
17
-		'\Illuminate\Events\EventServiceProvider',
18
-		'\CodexShaper\Routing\RoutingServiceProvider',
19
-		'Illuminate\View\ViewServiceProvider',
20
-	),
13
+    'debug'     => true,
14
+    'env'       => 'production',
15
+    'providers' => array(
16
+        '\Illuminate\Filesystem\FilesystemServiceProvider',
17
+        '\Illuminate\Events\EventServiceProvider',
18
+        '\CodexShaper\Routing\RoutingServiceProvider',
19
+        'Illuminate\View\ViewServiceProvider',
20
+    ),
21 21
 );
Please login to merge, or discard this patch.
config/view.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -10,8 +10,8 @@
 block discarded – undo
10 10
  */
11 11
 
12 12
 return array(
13
-	'paths'    => array(
14
-		__DIR__ . '/../resources/views',
15
-	),
16
-	'compiled' => __DIR__ . '/../storage/cache',
13
+    'paths'    => array(
14
+        __DIR__ . '/../resources/views',
15
+    ),
16
+    'compiled' => __DIR__ . '/../storage/cache',
17 17
 );
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
 
12 12
 return array(
13 13
 	'paths'    => array(
14
-		__DIR__ . '/../resources/views',
14
+		__DIR__.'/../resources/views',
15 15
 	),
16
-	'compiled' => __DIR__ . '/../storage/cache',
16
+	'compiled' => __DIR__.'/../storage/cache',
17 17
 );
Please login to merge, or discard this patch.
config/database.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -10,8 +10,8 @@
 block discarded – undo
10 10
  */
11 11
 
12 12
 return array(
13
-	'paths' => array(
14
-		'migrations' => __DIR__ . '/../database/migrations',
15
-		'seeds'      => __DIR__ . '/../database/seeds',
16
-	),
13
+    'paths' => array(
14
+        'migrations' => __DIR__ . '/../database/migrations',
15
+        'seeds'      => __DIR__ . '/../database/seeds',
16
+    ),
17 17
 );
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
 
12 12
 return array(
13 13
 	'paths' => array(
14
-		'migrations' => __DIR__ . '/../database/migrations',
15
-		'seeds'      => __DIR__ . '/../database/seeds',
14
+		'migrations' => __DIR__.'/../database/migrations',
15
+		'seeds'      => __DIR__.'/../database/seeds',
16 16
 	),
17 17
 );
Please login to merge, or discard this patch.
includes/class-wpb-i18n.php 1 patch
Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -26,20 +26,20 @@
 block discarded – undo
26 26
 class WPB_I18n {
27 27
 
28 28
 
29
-	/**
30
-	 * Load the plugin text domain for translation.
31
-	 *
32
-	 * @since    1.0.0
33
-	 */
34
-	public function load_plugin_textdomain() {
35
-
36
-		load_plugin_textdomain(
37
-			'wpb',
38
-			false,
39
-			dirname( dirname( plugin_basename( __FILE__ ) ) ) . '/languages/'
40
-		);
41
-
42
-	}
29
+    /**
30
+     * Load the plugin text domain for translation.
31
+     *
32
+     * @since    1.0.0
33
+     */
34
+    public function load_plugin_textdomain() {
35
+
36
+        load_plugin_textdomain(
37
+            'wpb',
38
+            false,
39
+            dirname( dirname( plugin_basename( __FILE__ ) ) ) . '/languages/'
40
+        );
41
+
42
+    }
43 43
 
44 44
 
45 45
 
Please login to merge, or discard this patch.