Completed
Push — master ( 61a587...35416d )
by CodexShaper
03:28
created
includes/class-wpb-activator.php 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -24,15 +24,15 @@
 block discarded – undo
24 24
  */
25 25
 class WPB_Activator {
26 26
 
27
-	/**
28
-	 * Short Description. (use period)
29
-	 *
30
-	 * Long Description.
31
-	 *
32
-	 * @since    1.0.0
33
-	 */
34
-	public static function activate() {
27
+    /**
28
+     * Short Description. (use period)
29
+     *
30
+     * Long Description.
31
+     *
32
+     * @since    1.0.0
33
+     */
34
+    public static function activate() {
35 35
 		
36
-	}
36
+    }
37 37
 
38 38
 }
Please login to merge, or discard this patch.
includes/class-wpb-i18n.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
 		load_plugin_textdomain(
38 38
 			'wpb',
39 39
 			false,
40
-			dirname( dirname( plugin_basename( __FILE__ ) ) ) . '/languages/'
40
+			dirname(dirname(plugin_basename(__FILE__))).'/languages/'
41 41
 		);
42 42
 
43 43
 	}
Please login to merge, or discard this 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.
includes/class-wpb-deactivator.php 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -22,15 +22,15 @@
 block discarded – undo
22 22
  */
23 23
 class WPB_Deactivator {
24 24
 
25
-	/**
26
-	 * Short Description. (use period)
27
-	 *
28
-	 * Long Description.
29
-	 *
30
-	 * @since    1.0.0
31
-	 */
32
-	public static function deactivate() {
25
+    /**
26
+     * Short Description. (use period)
27
+     *
28
+     * Long Description.
29
+     *
30
+     * @since    1.0.0
31
+     */
32
+    public static function deactivate() {
33 33
 
34
-	}
34
+    }
35 35
 
36 36
 }
Please login to merge, or discard this patch.
wpb.php 2 patches
Indentation   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -27,32 +27,32 @@  discard block
 block discarded – undo
27 27
 
28 28
 // If this file is called directly, abort.
29 29
 if ( ! defined( 'WPINC' ) ) {
30
-	die;
30
+    die;
31 31
 }
32 32
 
33 33
 // Application root directory.
34 34
 if (!defined('WPB_APP_ROOT')) {
35
-	define( 'WPB_APP_ROOT', __DIR__ );
35
+    define( 'WPB_APP_ROOT', __DIR__ );
36 36
 }
37 37
 // Worpress plugin builder file path.
38 38
 if (!defined('WPB_FILE')) {
39
-	define( 'WPB_FILE', __FILE__ );
39
+    define( 'WPB_FILE', __FILE__ );
40 40
 }
41 41
 // Worpress plugin builder directory path.
42 42
 if (!defined('WPB_PATH')) {
43
-	define( 'WPB_PATH', dirname( WPB_FILE ) );
43
+    define( 'WPB_PATH', dirname( WPB_FILE ) );
44 44
 }
45 45
 // Worpress plugin builder includes path.
46 46
 if (!defined('WPB_INCLUDES')) {
47
-	define( 'WPB_INCLUDES', WPB_PATH . '/includes' );
47
+    define( 'WPB_INCLUDES', WPB_PATH . '/includes' );
48 48
 }
49 49
 // Worpress plugin builder url.
50 50
 if (!defined('WPB_URL')) {
51
-	define( 'WPB_URL', plugins_url( '', WPB_FILE ) );
51
+    define( 'WPB_URL', plugins_url( '', WPB_FILE ) );
52 52
 }
53 53
 // Worpress plugin builder assets path.
54 54
 if (!defined('WPB_ASSETS')) {
55
-	define( 'WPB_ASSETS', WPB_URL . '/public' );
55
+    define( 'WPB_ASSETS', WPB_URL . '/public' );
56 56
 }
57 57
 
58 58
 require_once __DIR__.'/bootstrap/app.php';
@@ -69,8 +69,8 @@  discard block
 block discarded – undo
69 69
  * This action is documented in includes/class-wpb-activator.php
70 70
  */
71 71
 function wpb_activate() {
72
-	require_once plugin_dir_path( __FILE__ ) . 'includes/class-wpb-activator.php';
73
-	WPB_Activator::activate();
72
+    require_once plugin_dir_path( __FILE__ ) . 'includes/class-wpb-activator.php';
73
+    WPB_Activator::activate();
74 74
 }
75 75
 
76 76
 /**
@@ -78,8 +78,8 @@  discard block
 block discarded – undo
78 78
  * This action is documented in includes/class-wpb-deactivator.php
79 79
  */
80 80
 function wpb_deactivate() {
81
-	require_once plugin_dir_path( __FILE__ ) . 'includes/class-wpb-deactivator.php';
82
-	WPB_Deactivator::deactivate();
81
+    require_once plugin_dir_path( __FILE__ ) . 'includes/class-wpb-deactivator.php';
82
+    WPB_Deactivator::deactivate();
83 83
 }
84 84
 
85 85
 register_activation_hook( __FILE__, 'wpb_activate' );
@@ -102,8 +102,8 @@  discard block
 block discarded – undo
102 102
  */
103 103
 function wpb_run() {
104 104
 
105
-	$plugin = new WPB();
106
-	$plugin->run();
105
+    $plugin = new WPB();
106
+    $plugin->run();
107 107
 
108 108
 }
109 109
 wpb_run();
Please login to merge, or discard this patch.
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -26,33 +26,33 @@  discard block
 block discarded – undo
26 26
  */
27 27
 
28 28
 // If this file is called directly, abort.
29
-if ( ! defined( 'WPINC' ) ) {
29
+if (!defined('WPINC')) {
30 30
 	die;
31 31
 }
32 32
 
33 33
 // Application root directory.
34 34
 if (!defined('WPB_APP_ROOT')) {
35
-	define( 'WPB_APP_ROOT', __DIR__ );
35
+	define('WPB_APP_ROOT', __DIR__);
36 36
 }
37 37
 // Worpress plugin builder file path.
38 38
 if (!defined('WPB_FILE')) {
39
-	define( 'WPB_FILE', __FILE__ );
39
+	define('WPB_FILE', __FILE__);
40 40
 }
41 41
 // Worpress plugin builder directory path.
42 42
 if (!defined('WPB_PATH')) {
43
-	define( 'WPB_PATH', dirname( WPB_FILE ) );
43
+	define('WPB_PATH', dirname(WPB_FILE));
44 44
 }
45 45
 // Worpress plugin builder includes path.
46 46
 if (!defined('WPB_INCLUDES')) {
47
-	define( 'WPB_INCLUDES', WPB_PATH . '/includes' );
47
+	define('WPB_INCLUDES', WPB_PATH.'/includes');
48 48
 }
49 49
 // Worpress plugin builder url.
50 50
 if (!defined('WPB_URL')) {
51
-	define( 'WPB_URL', plugins_url( '', WPB_FILE ) );
51
+	define('WPB_URL', plugins_url('', WPB_FILE));
52 52
 }
53 53
 // Worpress plugin builder assets path.
54 54
 if (!defined('WPB_ASSETS')) {
55
-	define( 'WPB_ASSETS', WPB_URL . '/public' );
55
+	define('WPB_ASSETS', WPB_URL.'/public');
56 56
 }
57 57
 
58 58
 require_once __DIR__.'/bootstrap/app.php';
@@ -62,14 +62,14 @@  discard block
 block discarded – undo
62 62
  * Start at version 1.0.0 and use SemVer - https://semver.org
63 63
  * Rename this for your plugin and update it as you release new versions.
64 64
  */
65
-define( 'WPB_VERSION', '1.0.0' );
65
+define('WPB_VERSION', '1.0.0');
66 66
 
67 67
 /**
68 68
  * The code that runs during plugin activation.
69 69
  * This action is documented in includes/class-wpb-activator.php
70 70
  */
71 71
 function wpb_activate() {
72
-	require_once plugin_dir_path( __FILE__ ) . 'includes/class-wpb-activator.php';
72
+	require_once plugin_dir_path(__FILE__).'includes/class-wpb-activator.php';
73 73
 	WPB_Activator::activate();
74 74
 }
75 75
 
@@ -78,18 +78,18 @@  discard block
 block discarded – undo
78 78
  * This action is documented in includes/class-wpb-deactivator.php
79 79
  */
80 80
 function wpb_deactivate() {
81
-	require_once plugin_dir_path( __FILE__ ) . 'includes/class-wpb-deactivator.php';
81
+	require_once plugin_dir_path(__FILE__).'includes/class-wpb-deactivator.php';
82 82
 	WPB_Deactivator::deactivate();
83 83
 }
84 84
 
85
-register_activation_hook( __FILE__, 'wpb_activate' );
86
-register_deactivation_hook( __FILE__, 'wpb_deactivate' );
85
+register_activation_hook(__FILE__, 'wpb_activate');
86
+register_deactivation_hook(__FILE__, 'wpb_deactivate');
87 87
 
88 88
 /**
89 89
  * The core plugin class that is used to define internationalization,
90 90
  * admin-specific hooks, and public-facing site hooks.
91 91
  */
92
-require plugin_dir_path( __FILE__ ) . 'includes/class-wpb.php';
92
+require plugin_dir_path(__FILE__).'includes/class-wpb.php';
93 93
 
94 94
 /**
95 95
  * Begins execution of the plugin.
Please login to merge, or discard this patch.
uninstall.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,5 +27,5 @@
 block discarded – undo
27 27
 
28 28
 // If uninstall not called from WordPress, then exit.
29 29
 if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) {
30
-	exit;
30
+    exit;
31 31
 }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,6 +26,6 @@
 block discarded – undo
26 26
  */
27 27
 
28 28
 // If uninstall not called from WordPress, then exit.
29
-if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) {
29
+if (!defined('WP_UNINSTALL_PLUGIN')) {
30 30
 	exit;
31 31
 }
Please login to merge, or discard this patch.
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.
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.