Passed
Push — 0.7.0 ( dd56a8...ba8797 )
by Alexander
03:04 queued 10s
created
src/components/Core/Bootstrap/BootRegisterProviders.php 1 patch
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -32,15 +32,15 @@
 block discarded – undo
32 32
  */
33 33
 class BootRegisterProviders
34 34
 {
35
-	/**
36
-	 * Bootstrap the given application.
37
-	 * 
38
-	 * @param  \Syscodes\Contracts\Core\Application  $app
39
-	 * 
40
-	 * @return void
41
-	 */
42
-	public function Bootstrap(Application $app)
43
-	{
44
-		return $app->registerConfiguredProviders();
45
-	}
35
+    /**
36
+     * Bootstrap the given application.
37
+     * 
38
+     * @param  \Syscodes\Contracts\Core\Application  $app
39
+     * 
40
+     * @return void
41
+     */
42
+    public function Bootstrap(Application $app)
43
+    {
44
+        return $app->registerConfiguredProviders();
45
+    }
46 46
 }
47 47
\ No newline at end of file
Please login to merge, or discard this patch.
src/components/Core/Bootstrap/BootProviders.php 1 patch
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -32,15 +32,15 @@
 block discarded – undo
32 32
  */
33 33
 class BootProviders
34 34
 {
35
-	/**
36
-	 * Bootstrap the given application.
37
-	 * 
38
-	 * @param  \Syscodes\Contracts\Core\Application  $app
39
-	 * 
40
-	 * @return void
41
-	 */
42
-	public function Bootstrap(Application $app)
43
-	{
44
-		return $app->boot();
45
-	}
35
+    /**
36
+     * Bootstrap the given application.
37
+     * 
38
+     * @param  \Syscodes\Contracts\Core\Application  $app
39
+     * 
40
+     * @return void
41
+     */
42
+    public function Bootstrap(Application $app)
43
+    {
44
+        return $app->boot();
45
+    }
46 46
 }
47 47
\ No newline at end of file
Please login to merge, or discard this patch.
src/components/Core/Bootstrap/BootConfiguration.php 2 patches
Indentation   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -33,29 +33,29 @@
 block discarded – undo
33 33
  */
34 34
 class BootConfiguration
35 35
 {	
36
-	/**
37
-	 * Bootstrap the given application.
38
-	 * 
39
-	 * @param  \Syscodes\Contracts\Core\Application  $app
40
-	 * 
41
-	 * @return void
42
-	 */
43
-	public function bootstrap(Application $app)
44
-	{
45
-		$app->instance('config', $config = new Configure);
36
+    /**
37
+     * Bootstrap the given application.
38
+     * 
39
+     * @param  \Syscodes\Contracts\Core\Application  $app
40
+     * 
41
+     * @return void
42
+     */
43
+    public function bootstrap(Application $app)
44
+    {
45
+        $app->instance('config', $config = new Configure);
46 46
 
47
-		// Finally, we will set the application's environment based on the configuration
47
+        // Finally, we will set the application's environment based on the configuration
48 48
         // values that were loaded. 
49
-		$app->detectEnvironment(function () use ($config) {
50
-		    return $config->get('app.env', 'production');
51
-		});
49
+        $app->detectEnvironment(function () use ($config) {
50
+            return $config->get('app.env', 'production');
51
+        });
52 52
 		
53
-		// Load environment
54
-		$app->bootEnvironment();
53
+        // Load environment
54
+        $app->bootEnvironment();
55 55
 
56
-		// Set a default timezone if one is defined
57
-		date_default_timezone_set($config->get('app.timezone', 'UTC'));
56
+        // Set a default timezone if one is defined
57
+        date_default_timezone_set($config->get('app.timezone', 'UTC'));
58 58
 
59
-		mb_internal_encoding('UTF-8');
60
-	}
59
+        mb_internal_encoding('UTF-8');
60
+    }
61 61
 }
62 62
\ No newline at end of file
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
 
47 47
 		// Finally, we will set the application's environment based on the configuration
48 48
         // values that were loaded. 
49
-		$app->detectEnvironment(function () use ($config) {
49
+		$app->detectEnvironment(function() use ($config) {
50 50
 		    return $config->get('app.env', 'production');
51 51
 		});
52 52
 		
Please login to merge, or discard this patch.
src/components/Core/helpers.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -543,7 +543,7 @@  discard block
 block discarded – undo
543 543
 
544 544
 if ( ! function_exists('segment'))
545 545
 {
546
-  /**
546
+    /**
547 547
      * Returns the desired segment, or $default if it does not exist.
548 548
      *
549 549
      * @param  int  $segment  
@@ -559,7 +559,7 @@  discard block
 block discarded – undo
559 559
 
560 560
 if ( ! function_exists('segments'))
561 561
 {
562
-  /**
562
+    /**
563 563
      * Returns all segments in an array.
564 564
      *
565 565
      * @return array
@@ -587,7 +587,7 @@  discard block
 block discarded – undo
587 587
 
588 588
 if ( ! function_exists('totalSegments'))
589 589
 {
590
-  /**
590
+    /**
591 591
      * Returns the total number of segment.
592 592
      *
593 593
      * @return int
Please login to merge, or discard this patch.
src/components/Core/Support/Providers/RouteServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
      */
40 40
     public function register()
41 41
     {
42
-        $this->app->booted(function ()
42
+        $this->app->booted(function()
43 43
         {
44 44
             $this->app['router']->getRoutes()->refreshNameLookups();
45 45
             $this->app['router']->getRoutes()->refreshActionLookups();
Please login to merge, or discard this patch.
src/components/Database/Holisen/Model.php 1 patch
Indentation   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -32,27 +32,27 @@
 block discarded – undo
32 32
  */
33 33
 class Model
34 34
 {
35
-	/**
36
-	 * Variable of connection database.
37
-	 *
38
-	 * @var string|null $pdo
39
-	 */
40
-	protected $pdo = null;
35
+    /**
36
+     * Variable of connection database.
37
+     *
38
+     * @var string|null $pdo
39
+     */
40
+    protected $pdo = null;
41 41
 
42
-	/**
43
-	 * Constructor. Sets PDO to exception mode.
44
-	 *
45
-	 * @param  PDO  $pdo
46
-	 *
47
-	 * @return string
48
-	 */
49
-	public function __construct(PDO $pdo)
50
-	{
51
-		// Required for safety
52
-		$pdo->setAttribute(\PDO::ATTR_ERRMODE, \PDO::ERRMODE_EXCEPTION);
42
+    /**
43
+     * Constructor. Sets PDO to exception mode.
44
+     *
45
+     * @param  PDO  $pdo
46
+     *
47
+     * @return string
48
+     */
49
+    public function __construct(PDO $pdo)
50
+    {
51
+        // Required for safety
52
+        $pdo->setAttribute(\PDO::ATTR_ERRMODE, \PDO::ERRMODE_EXCEPTION);
53 53
 
54
-		$this->pdo = $pdo;
55
-	}
54
+        $this->pdo = $pdo;
55
+    }
56 56
 
57 57
 	
58 58
 }
59 59
\ No newline at end of file
Please login to merge, or discard this patch.
src/components/Database/DatabaseServiceProvider.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -49,17 +49,17 @@
 block discarded – undo
49 49
      */
50 50
     protected function registerConfigurationServices()
51 51
     {
52
-        $this->app->singleton('db.factory', function ($app)
52
+        $this->app->singleton('db.factory', function($app)
53 53
         {
54 54
             return new ConnectionFactory($app);
55 55
         });
56 56
 
57
-        $this->app->singleton('db', function ($app)
57
+        $this->app->singleton('db', function($app)
58 58
         {
59 59
             return new DatabaseManager($app, $app['db.factory']);
60 60
         });
61 61
         
62
-        $this->app->bind('db.connection', function ($app) {
62
+        $this->app->bind('db.connection', function($app) {
63 63
             return $app['db']->connection();
64 64
         });
65 65
     }
Please login to merge, or discard this patch.
src/components/Database/Query/Grammars/PostgresGrammar.php 3 patches
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -68,13 +68,13 @@
 block discarded – undo
68 68
         return $this->compileInsert($builder, $values).' returning '.$this->wrap($sequence);
69 69
     }
70 70
 
71
-     /**
72
-     * Compile a truncate table statement into SQL.
73
-     * 
74
-     * @param  \Syscodes\Database\Query\Builder  $builder
75
-     * 
76
-     * @return array
77
-     */
71
+        /**
72
+         * Compile a truncate table statement into SQL.
73
+         * 
74
+         * @param  \Syscodes\Database\Query\Builder  $builder
75
+         * 
76
+         * @return array
77
+         */
78 78
     public function truncate(Builder $builder)
79 79
     {
80 80
         return ['truncate table '.$this->wrapTable($builder->from).' restart identity cascade' => []];
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
63 63
      */
64 64
     public function compileInsertGetId(Builder $builder, $values, $sequence)
65 65
     {
66
-        if (is_null($sequence)) $sequence = 'id' ;
66
+        if (is_null($sequence)) $sequence = 'id';
67 67
 
68 68
         return $this->compileInsert($builder, $values).' returning '.$this->wrap($sequence);
69 69
     }
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,9 @@
 block discarded – undo
63 63
      */
64 64
     public function compileInsertGetId(Builder $builder, $values, $sequence)
65 65
     {
66
-        if (is_null($sequence)) $sequence = 'id' ;
66
+        if (is_null($sequence)) {
67
+            $sequence = 'id' ;
68
+        }
67 69
 
68 70
         return $this->compileInsert($builder, $values).' returning '.$this->wrap($sequence);
69 71
     }
Please login to merge, or discard this patch.
src/components/Database/Query/Grammars/SqlServerGrammar.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -188,13 +188,13 @@
 block discarded – undo
188 188
         return 'select * from ('.$sql.') as '.$this->wrapTable('temp_table');
189 189
     }
190 190
 
191
-     /**
192
-     * Compile a truncate table statement into SQL.
193
-     * 
194
-     * @param  \Syscodes\Database\Query\Builder  $builder
195
-     * 
196
-     * @return array
197
-     */
191
+        /**
192
+         * Compile a truncate table statement into SQL.
193
+         * 
194
+         * @param  \Syscodes\Database\Query\Builder  $builder
195
+         * 
196
+         * @return array
197
+         */
198 198
     public function truncate(Builder $builder)
199 199
     {
200 200
         return ['truncate table '.$this->wrapTable($builder->from) => []];
Please login to merge, or discard this patch.