Completed
Push — master ( c1bd80...7840cd )
by CodexShaper
11:04 queued 12s
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-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 1 patch
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.
uninstall.php 1 patch
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.
src/Application.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -151,7 +151,7 @@
 block discarded – undo
151 151
     protected function registerRouter()
152 152
     {
153 153
         $this->app->instance(\Illuminate\Routing\Router::class, $this->app['router']);
154
-         $this->app->instance(\WPB\Router::class, $this->app['router']);  
154
+            $this->app->instance(\WPB\Router::class, $this->app['router']);  
155 155
         $this->app->alias('Route', \WPB\Support\Facades\Route::class);
156 156
     }
157 157
 
Please login to merge, or discard this patch.
app/Post.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@
 block discarded – undo
71 71
      */
72 72
     public function scopeType(Builder $builder, $type)
73 73
     {
74
-    	self::$type_scope = $type;
74
+        self::$type_scope = $type;
75 75
         return $builder->where('post_type', '=', $type);
76 76
     }
77 77
 
Please login to merge, or discard this patch.
app/Http/Middleware/AuthMiddleware.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
                     !Schema::hasTable('oauth_clients') || 
32 32
                     !Schema::hasTable('oauth_auth_codes') 
33 33
                 ) {
34
-                 throw new \Exception("Please install OAuth2 Server Plugin (plugin link) or Implement OAuth2 Server from this link (https://github.com/Codexshaper/oauth2)", 1);
34
+                    throw new \Exception("Please install OAuth2 Server Plugin (plugin link) or Implement OAuth2 Server from this link (https://github.com/Codexshaper/oauth2)", 1);
35 35
                 }
36 36
 
37 37
                 $manager        = new Manager;
Please login to merge, or discard this patch.
app/User.php 1 patch
Indentation   +25 added lines, -25 removed lines patch added patch discarded remove patch
@@ -6,32 +6,32 @@
 block discarded – undo
6 6
 
7 7
 class User extends Model
8 8
 {
9
-	protected $primaryKey = 'ID';
9
+    protected $primaryKey = 'ID';
10 10
 	
11
-	/**
12
-	 * The attributes that are mass assignable.
13
-	 *
14
-	 * @var array
15
-	 */
16
-	protected $fillable = [
17
-	    'name', 'email', 'password',
18
-	];
11
+    /**
12
+     * The attributes that are mass assignable.
13
+     *
14
+     * @var array
15
+     */
16
+    protected $fillable = [
17
+        'name', 'email', 'password',
18
+    ];
19 19
 
20
-	/**
21
-	 * The attributes that should be hidden for arrays.
22
-	 *
23
-	 * @var array
24
-	 */
25
-	protected $hidden = [
26
-	    'password', 'remember_token',
27
-	];
20
+    /**
21
+     * The attributes that should be hidden for arrays.
22
+     *
23
+     * @var array
24
+     */
25
+    protected $hidden = [
26
+        'password', 'remember_token',
27
+    ];
28 28
 
29
-	/**
30
-	 * The attributes that should be cast to native types.
31
-	 *
32
-	 * @var array
33
-	 */
34
-	protected $casts = [
35
-	    'email_verified_at' => 'datetime',
36
-	];
29
+    /**
30
+     * The attributes that should be cast to native types.
31
+     *
32
+     * @var array
33
+     */
34
+    protected $casts = [
35
+        'email_verified_at' => 'datetime',
36
+    ];
37 37
 }
38 38
\ No newline at end of file
Please login to merge, or discard this patch.
app/Commands/Install_Composer.php 1 patch
Indentation   +27 added lines, -27 removed lines patch added patch discarded remove patch
@@ -2,37 +2,37 @@
 block discarded – undo
2 2
 
3 3
 class Install_Composer
4 4
 {
5
-	public function __construct()
6
-	{
7
-		if (! file_exists(__DIR__.'/vendor/autoload.php')) {
5
+    public function __construct()
6
+    {
7
+        if (! file_exists(__DIR__.'/vendor/autoload.php')) {
8 8
 
9
-			require_once __DIR__.'/install/vendor/autoload.php';
9
+            require_once __DIR__.'/install/vendor/autoload.php';
10 10
 
11
-			if(file_exists(__DIR__ . '/install/vendor/bin/composer')) {
12
-				echo "composer file exists";
13
-			}
11
+            if(file_exists(__DIR__ . '/install/vendor/bin/composer')) {
12
+                echo "composer file exists";
13
+            }
14 14
 
15
-			// Composer\Factory::getHomeDir() method 
16
-			// needs COMPOSER_HOME environment variable set
17
-			putenv('COMPOSER_HOME=' . __DIR__ . '/install/vendor/bin/composer');
15
+            // Composer\Factory::getHomeDir() method 
16
+            // needs COMPOSER_HOME environment variable set
17
+            putenv('COMPOSER_HOME=' . __DIR__ . '/install/vendor/bin/composer');
18 18
 
19
-			// call `composer install` command programmatically
20
-			// if (file_exists(getcwd().'/composer.phar')) {
21
-			//     $composer = '"'.PHP_BINARY.'" '.getcwd().'/composer.phar';
22
-			// }
19
+            // call `composer install` command programmatically
20
+            // if (file_exists(getcwd().'/composer.phar')) {
21
+            //     $composer = '"'.PHP_BINARY.'" '.getcwd().'/composer.phar';
22
+            // }
23 23
 
24
-			$composer = 'composer';
24
+            $composer = 'composer';
25 25
 
26
-			try {
27
-				$process = \Symfony\Component\Process\Process::fromShellCommandline($composer.' install');
28
-		    	$process->setEnv([
29
-		    		'COMPOSER_HOME' => __DIR__ . '/install/vendor/bin/composer',
30
-		    	]);
31
-		    	$process->setTimeout(null); // Setting timeout to null to prevent installation from stopping at a certain point in time
32
-		    	$process->setWorkingDirectory(__DIR__)->mustRun();
33
-			} catch (\Exception $ex) {
34
-				echo $ex->getMessage();
35
-			}
36
-		}
37
-	}
26
+            try {
27
+                $process = \Symfony\Component\Process\Process::fromShellCommandline($composer.' install');
28
+                $process->setEnv([
29
+                    'COMPOSER_HOME' => __DIR__ . '/install/vendor/bin/composer',
30
+                ]);
31
+                $process->setTimeout(null); // Setting timeout to null to prevent installation from stopping at a certain point in time
32
+                $process->setWorkingDirectory(__DIR__)->mustRun();
33
+            } catch (\Exception $ex) {
34
+                echo $ex->getMessage();
35
+            }
36
+        }
37
+    }
38 38
 }
39 39
\ No newline at end of file
Please login to merge, or discard this patch.