@@ -306,7 +306,7 @@ |
||
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 |
@@ -106,8 +106,7 @@ discard block |
||
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 |
||
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 |
||
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() |
@@ -109,8 +109,7 @@ |
||
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 | } |
@@ -32,15 +32,15 @@ |
||
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 |
@@ -32,15 +32,15 @@ |
||
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 |
@@ -53,8 +53,7 @@ |
||
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 | } |
@@ -71,9 +71,9 @@ |
||
71 | 71 | protected function createEnv($app) |
72 | 72 | { |
73 | 73 | return Dotenv::create( |
74 | - new RepositoryCreator, |
|
75 | - $app->environmentPath(), |
|
76 | - $app->environmentFile() |
|
74 | + new RepositoryCreator, |
|
75 | + $app->environmentPath(), |
|
76 | + $app->environmentFile() |
|
77 | 77 | ); |
78 | 78 | } |
79 | 79 | } |
80 | 80 | \ No newline at end of file |
@@ -33,29 +33,29 @@ |
||
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 |
@@ -46,7 +46,7 @@ |
||
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 |
@@ -543,7 +543,7 @@ discard block |
||
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 |
||
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 |
||
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 |
@@ -39,7 +39,7 @@ |
||
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(); |
@@ -32,27 +32,27 @@ |
||
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 |