Passed
Push — 0.7.0 ( e05ac6...4ebf14 )
by Alexander
02:45
created
src/components/Core/Exceptions/Handler.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -306,7 +306,7 @@
 block discarded – undo
306 306
      */
307 307
     protected function renderExceptionWithGDebug(Throwable $e)
308 308
     {
309
-        return take(new GDebug, function ($debug) {
309
+        return take(new GDebug, function($debug) {
310 310
             
311 311
             $debug->pushHandler($this->DebugHandler());
312 312
 
Please login to merge, or discard this patch.
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -106,8 +106,7 @@  discard block
 block discarded – undo
106 106
         try
107 107
         {
108 108
             $logger = $this->container->make(LoggerInterface::class);
109
-        }
110
-        catch (Exception $e)
109
+        } catch (Exception $e)
111 110
         {
112 111
             throw $e;
113 112
         }
@@ -288,8 +287,7 @@  discard block
 block discarded – undo
288 287
             return config('app.debug') && class_exists(GDebug::class)
289 288
                         ? $this->renderExceptionWithGDebug($e) 
290 289
                         : $this->renderExceptionWithFlatDesignDebug($e, config('app.debug'));
291
-        }
292
-        catch (Exception $e)
290
+        } catch (Exception $e)
293 291
         {
294 292
             $this->renderExceptionWithFlatDesignDebug($e, config('app.debug'));
295 293
         }
@@ -357,8 +355,7 @@  discard block
 block discarded – undo
357 355
             $response = new RedirectResponse(
358 356
                 $response->getTargetUrl(), $response->status(), $response->headers->all()
359 357
             );
360
-        }
361
-        else
358
+        } else
362 359
         {
363 360
             $response = new Response(
364 361
                 $response->content(), $response->status(), $response->headers->all()
Please login to merge, or discard this patch.
src/components/Core/Bootstrap/BootHandleExceptions.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -109,8 +109,7 @@
 block discarded – undo
109 109
         try
110 110
         {
111 111
             $this->getExceptionHandler()->report($e);
112
-        }
113
-        catch (Exception $e)
112
+        } catch (Exception $e)
114 113
         {
115 114
             //
116 115
         }
Please login to merge, or discard this patch.
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/BootDetectEnvironment.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -70,8 +70,8 @@
 block discarded – undo
70 70
     protected function createEnv($app)
71 71
     {
72 72
         return Dotenv::create(
73
-               $app->environmentPath(),
74
-               $app->environmentFile()
73
+                $app->environmentPath(),
74
+                $app->environmentFile()
75 75
         );
76 76
     }
77 77
 }
78 78
\ No newline at end of file
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -53,8 +53,7 @@
 block discarded – undo
53 53
         try
54 54
         {
55 55
             $this->createEnv($app)->load();
56
-        }
57
-        catch (Exception $e)
56
+        } catch (Exception $e)
58 57
         {
59 58
             //
60 59
         }
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.