Completed
Push — master ( 370ac4...071b30 )
by CodexShaper
15:05
created
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-loader.php 2 patches
Indentation   +102 added lines, -102 removed lines patch added patch discarded remove patch
@@ -22,107 +22,107 @@
 block discarded – undo
22 22
  */
23 23
 class WPB_Loader {
24 24
 
25
-	/**
26
-	 * The array of actions registered with WordPress.
27
-	 *
28
-	 * @since    1.0.0
29
-	 * @access   protected
30
-	 * @var      array    $actions    The actions registered with WordPress to fire when the plugin loads.
31
-	 */
32
-	protected $actions;
33
-
34
-	/**
35
-	 * The array of filters registered with WordPress.
36
-	 *
37
-	 * @since    1.0.0
38
-	 * @access   protected
39
-	 * @var      array    $filters    The filters registered with WordPress to fire when the plugin loads.
40
-	 */
41
-	protected $filters;
42
-
43
-	/**
44
-	 * Initialize the collections used to maintain the actions and filters.
45
-	 *
46
-	 * @since    1.0.0
47
-	 */
48
-	public function __construct() {
49
-
50
-		$this->actions = array();
51
-		$this->filters = array();
52
-
53
-	}
54
-
55
-	/**
56
-	 * Add a new action to the collection to be registered with WordPress.
57
-	 *
58
-	 * @since    1.0.0
59
-	 * @param    string $hook             The name of the WordPress action that is being registered.
60
-	 * @param    object $component        A reference to the instance of the object on which the action is defined.
61
-	 * @param    string $callback         The name of the function definition on the $component.
62
-	 * @param    int    $priority         Optional. The priority at which the function should be fired. Default is 10.
63
-	 * @param    int    $accepted_args    Optional. The number of arguments that should be passed to the $callback. Default is 1.
64
-	 */
65
-	public function add_action( $hook, $component, $callback, $priority = 10, $accepted_args = 1 ) {
66
-		$this->actions = $this->add( $this->actions, $hook, $component, $callback, $priority, $accepted_args );
67
-	}
68
-
69
-	/**
70
-	 * Add a new filter to the collection to be registered with WordPress.
71
-	 *
72
-	 * @since    1.0.0
73
-	 * @param    string $hook             The name of the WordPress filter that is being registered.
74
-	 * @param    object $component        A reference to the instance of the object on which the filter is defined.
75
-	 * @param    string $callback         The name of the function definition on the $component.
76
-	 * @param    int    $priority         Optional. The priority at which the function should be fired. Default is 10.
77
-	 * @param    int    $accepted_args    Optional. The number of arguments that should be passed to the $callback. Default is 1.
78
-	 */
79
-	public function add_filter( $hook, $component, $callback, $priority = 10, $accepted_args = 1 ) {
80
-		$this->filters = $this->add( $this->filters, $hook, $component, $callback, $priority, $accepted_args );
81
-	}
82
-
83
-	/**
84
-	 * A utility function that is used to register the actions and hooks into a single
85
-	 * collection.
86
-	 *
87
-	 * @since    1.0.0
88
-	 * @access   private
89
-	 * @param    array  $hooks            The collection of hooks that is being registered (that is, actions or filters).
90
-	 * @param    string $hook             The name of the WordPress filter that is being registered.
91
-	 * @param    object $component        A reference to the instance of the object on which the filter is defined.
92
-	 * @param    string $callback         The name of the function definition on the $component.
93
-	 * @param    int    $priority         The priority at which the function should be fired.
94
-	 * @param    int    $accepted_args    The number of arguments that should be passed to the $callback.
95
-	 * @return   array                                  The collection of actions and filters registered with WordPress.
96
-	 */
97
-	private function add( $hooks, $hook, $component, $callback, $priority, $accepted_args ) {
98
-
99
-		$hooks[] = array(
100
-			'hook'          => $hook,
101
-			'component'     => $component,
102
-			'callback'      => $callback,
103
-			'priority'      => $priority,
104
-			'accepted_args' => $accepted_args,
105
-		);
106
-
107
-		return $hooks;
108
-
109
-	}
110
-
111
-	/**
112
-	 * Register the filters and actions with WordPress.
113
-	 *
114
-	 * @since    1.0.0
115
-	 */
116
-	public function run() {
117
-
118
-		foreach ( $this->filters as $hook ) {
119
-			add_filter( $hook['hook'], array( $hook['component'], $hook['callback'] ), $hook['priority'], $hook['accepted_args'] );
120
-		}
121
-
122
-		foreach ( $this->actions as $hook ) {
123
-			add_action( $hook['hook'], array( $hook['component'], $hook['callback'] ), $hook['priority'], $hook['accepted_args'] );
124
-		}
125
-
126
-	}
25
+    /**
26
+     * The array of actions registered with WordPress.
27
+     *
28
+     * @since    1.0.0
29
+     * @access   protected
30
+     * @var      array    $actions    The actions registered with WordPress to fire when the plugin loads.
31
+     */
32
+    protected $actions;
33
+
34
+    /**
35
+     * The array of filters registered with WordPress.
36
+     *
37
+     * @since    1.0.0
38
+     * @access   protected
39
+     * @var      array    $filters    The filters registered with WordPress to fire when the plugin loads.
40
+     */
41
+    protected $filters;
42
+
43
+    /**
44
+     * Initialize the collections used to maintain the actions and filters.
45
+     *
46
+     * @since    1.0.0
47
+     */
48
+    public function __construct() {
49
+
50
+        $this->actions = array();
51
+        $this->filters = array();
52
+
53
+    }
54
+
55
+    /**
56
+     * Add a new action to the collection to be registered with WordPress.
57
+     *
58
+     * @since    1.0.0
59
+     * @param    string $hook             The name of the WordPress action that is being registered.
60
+     * @param    object $component        A reference to the instance of the object on which the action is defined.
61
+     * @param    string $callback         The name of the function definition on the $component.
62
+     * @param    int    $priority         Optional. The priority at which the function should be fired. Default is 10.
63
+     * @param    int    $accepted_args    Optional. The number of arguments that should be passed to the $callback. Default is 1.
64
+     */
65
+    public function add_action( $hook, $component, $callback, $priority = 10, $accepted_args = 1 ) {
66
+        $this->actions = $this->add( $this->actions, $hook, $component, $callback, $priority, $accepted_args );
67
+    }
68
+
69
+    /**
70
+     * Add a new filter to the collection to be registered with WordPress.
71
+     *
72
+     * @since    1.0.0
73
+     * @param    string $hook             The name of the WordPress filter that is being registered.
74
+     * @param    object $component        A reference to the instance of the object on which the filter is defined.
75
+     * @param    string $callback         The name of the function definition on the $component.
76
+     * @param    int    $priority         Optional. The priority at which the function should be fired. Default is 10.
77
+     * @param    int    $accepted_args    Optional. The number of arguments that should be passed to the $callback. Default is 1.
78
+     */
79
+    public function add_filter( $hook, $component, $callback, $priority = 10, $accepted_args = 1 ) {
80
+        $this->filters = $this->add( $this->filters, $hook, $component, $callback, $priority, $accepted_args );
81
+    }
82
+
83
+    /**
84
+     * A utility function that is used to register the actions and hooks into a single
85
+     * collection.
86
+     *
87
+     * @since    1.0.0
88
+     * @access   private
89
+     * @param    array  $hooks            The collection of hooks that is being registered (that is, actions or filters).
90
+     * @param    string $hook             The name of the WordPress filter that is being registered.
91
+     * @param    object $component        A reference to the instance of the object on which the filter is defined.
92
+     * @param    string $callback         The name of the function definition on the $component.
93
+     * @param    int    $priority         The priority at which the function should be fired.
94
+     * @param    int    $accepted_args    The number of arguments that should be passed to the $callback.
95
+     * @return   array                                  The collection of actions and filters registered with WordPress.
96
+     */
97
+    private function add( $hooks, $hook, $component, $callback, $priority, $accepted_args ) {
98
+
99
+        $hooks[] = array(
100
+            'hook'          => $hook,
101
+            'component'     => $component,
102
+            'callback'      => $callback,
103
+            'priority'      => $priority,
104
+            'accepted_args' => $accepted_args,
105
+        );
106
+
107
+        return $hooks;
108
+
109
+    }
110
+
111
+    /**
112
+     * Register the filters and actions with WordPress.
113
+     *
114
+     * @since    1.0.0
115
+     */
116
+    public function run() {
117
+
118
+        foreach ( $this->filters as $hook ) {
119
+            add_filter( $hook['hook'], array( $hook['component'], $hook['callback'] ), $hook['priority'], $hook['accepted_args'] );
120
+        }
121
+
122
+        foreach ( $this->actions as $hook ) {
123
+            add_action( $hook['hook'], array( $hook['component'], $hook['callback'] ), $hook['priority'], $hook['accepted_args'] );
124
+        }
125
+
126
+    }
127 127
 
128 128
 }
Please login to merge, or discard this patch.
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -62,8 +62,8 @@  discard block
 block discarded – undo
62 62
 	 * @param    int    $priority         Optional. The priority at which the function should be fired. Default is 10.
63 63
 	 * @param    int    $accepted_args    Optional. The number of arguments that should be passed to the $callback. Default is 1.
64 64
 	 */
65
-	public function add_action( $hook, $component, $callback, $priority = 10, $accepted_args = 1 ) {
66
-		$this->actions = $this->add( $this->actions, $hook, $component, $callback, $priority, $accepted_args );
65
+	public function add_action($hook, $component, $callback, $priority = 10, $accepted_args = 1) {
66
+		$this->actions = $this->add($this->actions, $hook, $component, $callback, $priority, $accepted_args);
67 67
 	}
68 68
 
69 69
 	/**
@@ -76,8 +76,8 @@  discard block
 block discarded – undo
76 76
 	 * @param    int    $priority         Optional. The priority at which the function should be fired. Default is 10.
77 77
 	 * @param    int    $accepted_args    Optional. The number of arguments that should be passed to the $callback. Default is 1.
78 78
 	 */
79
-	public function add_filter( $hook, $component, $callback, $priority = 10, $accepted_args = 1 ) {
80
-		$this->filters = $this->add( $this->filters, $hook, $component, $callback, $priority, $accepted_args );
79
+	public function add_filter($hook, $component, $callback, $priority = 10, $accepted_args = 1) {
80
+		$this->filters = $this->add($this->filters, $hook, $component, $callback, $priority, $accepted_args);
81 81
 	}
82 82
 
83 83
 	/**
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
 	 * @param    int    $accepted_args    The number of arguments that should be passed to the $callback.
95 95
 	 * @return   array                                  The collection of actions and filters registered with WordPress.
96 96
 	 */
97
-	private function add( $hooks, $hook, $component, $callback, $priority, $accepted_args ) {
97
+	private function add($hooks, $hook, $component, $callback, $priority, $accepted_args) {
98 98
 
99 99
 		$hooks[] = array(
100 100
 			'hook'          => $hook,
@@ -115,12 +115,12 @@  discard block
 block discarded – undo
115 115
 	 */
116 116
 	public function run() {
117 117
 
118
-		foreach ( $this->filters as $hook ) {
119
-			add_filter( $hook['hook'], array( $hook['component'], $hook['callback'] ), $hook['priority'], $hook['accepted_args'] );
118
+		foreach ($this->filters as $hook) {
119
+			add_filter($hook['hook'], array($hook['component'], $hook['callback']), $hook['priority'], $hook['accepted_args']);
120 120
 		}
121 121
 
122
-		foreach ( $this->actions as $hook ) {
123
-			add_action( $hook['hook'], array( $hook['component'], $hook['callback'] ), $hook['priority'], $hook['accepted_args'] );
122
+		foreach ($this->actions as $hook) {
123
+			add_action($hook['hook'], array($hook['component'], $hook['callback']), $hook['priority'], $hook['accepted_args']);
124 124
 		}
125 125
 
126 126
 	}
Please login to merge, or discard this patch.
bootstrap/app.php 2 patches
Indentation   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -16,35 +16,35 @@
 block discarded – undo
16 16
 use WPB\Application;
17 17
 
18 18
 $app = ( new Application(
19
-	array(
20
-		'paths' => array(
21
-			'root' => WPB_APP_ROOT,
22
-		),
23
-	)
19
+    array(
20
+        'paths' => array(
21
+            'root' => WPB_APP_ROOT,
22
+        ),
23
+    )
24 24
 ) );
25 25
 
26 26
 $container = $app->getInstance();
27 27
 
28 28
 $container->singleton(
29
-	Illuminate\Contracts\Http\Kernel::class,
30
-	\WPB\App\Http\Kernel::class
29
+    Illuminate\Contracts\Http\Kernel::class,
30
+    \WPB\App\Http\Kernel::class
31 31
 );
32 32
 $container->singleton(
33
-	\Illuminate\Contracts\Debug\ExceptionHandler::class,
34
-	\WPB\App\Exceptions\Handler::class
33
+    \Illuminate\Contracts\Debug\ExceptionHandler::class,
34
+    \WPB\App\Exceptions\Handler::class
35 35
 );
36 36
 
37 37
 try {
38 38
 
39
-	$kernel = $container->make( \Illuminate\Contracts\Http\Kernel::class );
39
+    $kernel = $container->make( \Illuminate\Contracts\Http\Kernel::class );
40 40
 
41
-	$response = $kernel->handle( \Illuminate\Http\Request::capture() );
41
+    $response = $kernel->handle( \Illuminate\Http\Request::capture() );
42 42
 
43
-	$response->send();
43
+    $response->send();
44 44
 
45 45
 } catch ( \Exception $ex ) {
46
-	if ( ! \WPB\Support\Facades\Route::current() ) {
47
-		return true;
48
-	}
49
-	throw new \Exception( $ex, 1 );
46
+    if ( ! \WPB\Support\Facades\Route::current() ) {
47
+        return true;
48
+    }
49
+    throw new \Exception( $ex, 1 );
50 50
 }
Please login to merge, or discard this patch.
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -9,19 +9,19 @@  discard block
 block discarded – undo
9 9
  * @subpackage WPB/bootstrap
10 10
  */
11 11
 
12
-require_once ABSPATH . 'wp-includes/pluggable.php';
13
-require_once __DIR__ . '/../vendor/autoload.php';
14
-require_once __DIR__ . '/../src/helpers.php';
12
+require_once ABSPATH.'wp-includes/pluggable.php';
13
+require_once __DIR__.'/../vendor/autoload.php';
14
+require_once __DIR__.'/../src/helpers.php';
15 15
 
16 16
 use WPB\Application;
17 17
 
18
-$app = ( new Application(
18
+$app = (new Application(
19 19
 	array(
20 20
 		'paths' => array(
21 21
 			'root' => WPB_APP_ROOT,
22 22
 		),
23 23
 	)
24
-) );
24
+));
25 25
 
26 26
 $container = $app->getInstance();
27 27
 
@@ -36,15 +36,15 @@  discard block
 block discarded – undo
36 36
 
37 37
 try {
38 38
 
39
-	$kernel = $container->make( \Illuminate\Contracts\Http\Kernel::class );
39
+	$kernel = $container->make(\Illuminate\Contracts\Http\Kernel::class);
40 40
 
41
-	$response = $kernel->handle( \Illuminate\Http\Request::capture() );
41
+	$response = $kernel->handle(\Illuminate\Http\Request::capture());
42 42
 
43 43
 	$response->send();
44 44
 
45
-} catch ( \Exception $ex ) {
46
-	if ( ! \WPB\Support\Facades\Route::current() ) {
45
+} catch (\Exception $ex) {
46
+	if (!\WPB\Support\Facades\Route::current()) {
47 47
 		return true;
48 48
 	}
49
-	throw new \Exception( $ex, 1 );
49
+	throw new \Exception($ex, 1);
50 50
 }
Please login to merge, or discard this patch.
public/class-wpb-public.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_Public {
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 the 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 the 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 public-facing side of the site.
58
-	 *
59
-	 * @since    1.0.0
60
-	 */
61
-	public function enqueue_styles() {
56
+    /**
57
+     * Register the stylesheets for the public-facing side of the site.
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-public.css', array(), $this->version, 'all' );
75
+        wp_enqueue_style( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'css/wpb-public.css', array(), $this->version, 'all' );
76 76
 
77
-	}
77
+    }
78 78
 
79
-	/**
80
-	 * Register the JavaScript for the public-facing side of the site.
81
-	 *
82
-	 * @since    1.0.0
83
-	 */
84
-	public function enqueue_scripts() {
79
+    /**
80
+     * Register the JavaScript for the public-facing side of the site.
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-public.js', array( 'jquery' ), $this->version, false );
98
+        wp_enqueue_script( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'js/wpb-public.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 the 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-public.css', array(), $this->version, 'all' );
75
+		wp_enqueue_style($this->plugin_name, plugin_dir_url(__FILE__).'css/wpb-public.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-public.js', array( 'jquery' ), $this->version, false );
98
+		wp_enqueue_script($this->plugin_name, plugin_dir_url(__FILE__).'js/wpb-public.js', array('jquery'), $this->version, false);
99 99
 
100 100
 	}
101 101
 
Please login to merge, or discard this patch.
database/migrations/class-create-customers-table.php 2 patches
Indentation   +27 added lines, -27 removed lines patch added patch discarded remove patch
@@ -23,32 +23,32 @@
 block discarded – undo
23 23
  */
24 24
 class Create_Customers_Table extends Migration {
25 25
 
26
-	/**
27
-	 * Run the migrations.
28
-	 *
29
-	 * @return void
30
-	 */
31
-	public function up() {
32
-		Schema::create(
33
-			'customers',
34
-			function ( Blueprint $table ) {
35
-				$table->id();
36
-				$table->string( 'name' );
37
-				$table->string( 'email' )->unique();
38
-				$table->timestamp( 'email_verified_at' )->nullable();
39
-				$table->string( 'password' );
40
-				$table->rememberToken();
41
-				$table->timestamps();
42
-			}
43
-		);
44
-	}
26
+    /**
27
+     * Run the migrations.
28
+     *
29
+     * @return void
30
+     */
31
+    public function up() {
32
+        Schema::create(
33
+            'customers',
34
+            function ( Blueprint $table ) {
35
+                $table->id();
36
+                $table->string( 'name' );
37
+                $table->string( 'email' )->unique();
38
+                $table->timestamp( 'email_verified_at' )->nullable();
39
+                $table->string( 'password' );
40
+                $table->rememberToken();
41
+                $table->timestamps();
42
+            }
43
+        );
44
+    }
45 45
 
46
-	/**
47
-	 * Reverse the migrations.
48
-	 *
49
-	 * @return void
50
-	 */
51
-	public function down() {
52
-		Schema::dropIfExists( 'customers' );
53
-	}
46
+    /**
47
+     * Reverse the migrations.
48
+     *
49
+     * @return void
50
+     */
51
+    public function down() {
52
+        Schema::dropIfExists( 'customers' );
53
+    }
54 54
 }
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -31,12 +31,12 @@  discard block
 block discarded – undo
31 31
 	public function up() {
32 32
 		Schema::create(
33 33
 			'customers',
34
-			function ( Blueprint $table ) {
34
+			function(Blueprint $table) {
35 35
 				$table->id();
36
-				$table->string( 'name' );
37
-				$table->string( 'email' )->unique();
38
-				$table->timestamp( 'email_verified_at' )->nullable();
39
-				$table->string( 'password' );
36
+				$table->string('name');
37
+				$table->string('email')->unique();
38
+				$table->timestamp('email_verified_at')->nullable();
39
+				$table->string('password');
40 40
 				$table->rememberToken();
41 41
 				$table->timestamps();
42 42
 			}
@@ -49,6 +49,6 @@  discard block
 block discarded – undo
49 49
 	 * @return void
50 50
 	 */
51 51
 	public function down() {
52
-		Schema::dropIfExists( 'customers' );
52
+		Schema::dropIfExists('customers');
53 53
 	}
54 54
 }
Please login to merge, or discard this patch.
src/Database/Eloquent/Scopes/PostAuthorScope.php 2 patches
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -25,15 +25,15 @@
 block discarded – undo
25 25
  */
26 26
 class PostAuthorScope implements Scope {
27 27
 
28
-	/**
29
-	 * Apply the scope to a given Eloquent query builder.
30
-	 *
31
-	 * @param \Illuminate\Database\Eloquent\Builder $builder The eloquent builder.
32
-	 * @param \Illuminate\Database\Eloquent\Model   $model The eloquent model.
33
-	 *
34
-	 * @return void
35
-	 */
36
-	public function apply( Builder $builder, Model $model ) {
37
-		$builder->whereNull( 'post_author' );
38
-	}
28
+    /**
29
+     * Apply the scope to a given Eloquent query builder.
30
+     *
31
+     * @param \Illuminate\Database\Eloquent\Builder $builder The eloquent builder.
32
+     * @param \Illuminate\Database\Eloquent\Model   $model The eloquent model.
33
+     *
34
+     * @return void
35
+     */
36
+    public function apply( Builder $builder, Model $model ) {
37
+        $builder->whereNull( 'post_author' );
38
+    }
39 39
 }
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
 	 *
34 34
 	 * @return void
35 35
 	 */
36
-	public function apply( Builder $builder, Model $model ) {
37
-		$builder->whereNull( 'post_author' );
36
+	public function apply(Builder $builder, Model $model) {
37
+		$builder->whereNull('post_author');
38 38
 	}
39 39
 }
Please login to merge, or discard this patch.
src/Database/Eloquent/Scopes/PostTypeScope.php 2 patches
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -25,15 +25,15 @@
 block discarded – undo
25 25
  */
26 26
 class PostTypeScope implements Scope {
27 27
 
28
-	/**
29
-	 * Apply the scope to a given Eloquent query builder.
30
-	 *
31
-	 * @param \Illuminate\Database\Eloquent\Builder $builder $builder The eloquent builder.
32
-	 * @param \Illuminate\Database\Eloquent\Model   $model $model The eloquent model.
33
-	 *
34
-	 * @return void
35
-	 */
36
-	public function apply( Builder $builder, Model $model ) {
37
-		$builder->where( 'post_type', '=', 'post' );
38
-	}
28
+    /**
29
+     * Apply the scope to a given Eloquent query builder.
30
+     *
31
+     * @param \Illuminate\Database\Eloquent\Builder $builder $builder The eloquent builder.
32
+     * @param \Illuminate\Database\Eloquent\Model   $model $model The eloquent model.
33
+     *
34
+     * @return void
35
+     */
36
+    public function apply( Builder $builder, Model $model ) {
37
+        $builder->where( 'post_type', '=', 'post' );
38
+    }
39 39
 }
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
 	 *
34 34
 	 * @return void
35 35
 	 */
36
-	public function apply( Builder $builder, Model $model ) {
37
-		$builder->where( 'post_type', '=', 'post' );
36
+	public function apply(Builder $builder, Model $model) {
37
+		$builder->where('post_type', '=', 'post');
38 38
 	}
39 39
 }
Please login to merge, or discard this patch.
src/Database/Eloquent/Scopes/PostStatusScope.php 2 patches
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -25,15 +25,15 @@
 block discarded – undo
25 25
  */
26 26
 class PostStatusScope implements Scope {
27 27
 
28
-	/**
29
-	 * Apply the scope to a given Eloquent query builder.
30
-	 *
31
-	 * @param \Illuminate\Database\Eloquent\Builder $builder $builder The eloquent builder.
32
-	 * @param \Illuminate\Database\Eloquent\Model   $model $model The eloquent model.
33
-	 *
34
-	 * @return void
35
-	 */
36
-	public function apply( Builder $builder, Model $model ) {
37
-		$builder->where( 'post_status', '=', 'publish' );
38
-	}
28
+    /**
29
+     * Apply the scope to a given Eloquent query builder.
30
+     *
31
+     * @param \Illuminate\Database\Eloquent\Builder $builder $builder The eloquent builder.
32
+     * @param \Illuminate\Database\Eloquent\Model   $model $model The eloquent model.
33
+     *
34
+     * @return void
35
+     */
36
+    public function apply( Builder $builder, Model $model ) {
37
+        $builder->where( 'post_status', '=', 'publish' );
38
+    }
39 39
 }
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
 	 *
34 34
 	 * @return void
35 35
 	 */
36
-	public function apply( Builder $builder, Model $model ) {
37
-		$builder->where( 'post_status', '=', 'publish' );
36
+	public function apply(Builder $builder, Model $model) {
37
+		$builder->where('post_status', '=', 'publish');
38 38
 	}
39 39
 }
Please login to merge, or discard this patch.