Passed
Push — 0.8.x ( c36ed7...20ecf3 )
by Alexander
07:28 queued 04:02
created
src/components/Session/SessionServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
         $this->registerSessionManager();
42 42
         $this->registerSessionDriver();
43 43
 
44
-        $this->app->singleton(StartSession::class, function ($app) {
44
+        $this->app->singleton(StartSession::class, function($app) {
45 45
             return new StartSession($app->make(SessionManager::class), fn () => $app->make(CacheFactory::class));
46 46
         });
47 47
     }
Please login to merge, or discard this patch.
src/components/Session/SessionManager.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -104,7 +104,7 @@
 block discarded – undo
104 104
     protected function createDatabaseDriver()
105 105
     {
106 106
         $table    = $this->config->get('session.table');
107
-        $lifetime = $this->config->get('session.lifetime') ;
107
+        $lifetime = $this->config->get('session.lifetime');
108 108
 
109 109
         return $this->buildSession(new DatabaseSessionHandler(
110 110
             $this->getDatabaseConnection(),
Please login to merge, or discard this patch.
src/components/Session/Store.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -160,9 +160,9 @@
 block discarded – undo
160 160
     {
161 161
         if ($data = $this->handler->read($this->getId())) {
162 162
             if ($this->serialization === 'json') {
163
-               $data = json_decode($this->prepareForUnserialize($data), true);
163
+                $data = json_decode($this->prepareForUnserialize($data), true);
164 164
             } else {
165
-               $data = @unserialize($this->prepareForUnserialize($data));
165
+                $data = @unserialize($this->prepareForUnserialize($data));
166 166
             }
167 167
             
168 168
             if ($data !== false && is_array($data)) {
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -321,7 +321,7 @@  discard block
 block discarded – undo
321 321
      */
322 322
     public function ageFlashData(): void
323 323
     {
324
-        foreach($this->get('_flash.old', []) as $old) {
324
+        foreach ($this->get('_flash.old', []) as $old) {
325 325
             $this->erase($old);
326 326
         }
327 327
 
@@ -382,7 +382,7 @@  discard block
 block discarded – undo
382 382
     {
383 383
         $placeholder = new stdClass;
384 384
         
385
-        return ! collect(is_array($key) ? $key : func_get_args())->contains(function ($key) use ($placeholder) {
385
+        return ! collect(is_array($key) ? $key : func_get_args())->contains(function($key) use ($placeholder) {
386 386
             return $this->get($key, $placeholder) === $placeholder;
387 387
         });
388 388
     }
@@ -546,7 +546,7 @@  discard block
 block discarded – undo
546 546
      */
547 547
     public function regenerate($destroy = false): callable
548 548
     {
549
-        return take($this->migrate($destroy), function () {
549
+        return take($this->migrate($destroy), function() {
550 550
             $this->regenerateToken();
551 551
         });
552 552
     }
@@ -574,7 +574,7 @@  discard block
 block discarded – undo
574 574
      * 
575 575
      * @return string|null
576 576
      */
577
-    public function previousUrl(): string|null
577
+    public function previousUrl(): string | null
578 578
     {
579 579
         return $this->get('_previous.url');
580 580
     }
Please login to merge, or discard this patch.
src/components/Session/Middleware/StartSession.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
      */
80 80
     public function getSession(Request $request)
81 81
     {
82
-        return take($this->manager->driver(), function ($session) use ($request) {
82
+        return take($this->manager->driver(), function($session) use ($request) {
83 83
             $session->setId($request->cookies->get($session->getName()));
84 84
         });
85 85
     }
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
      */
123 123
     protected function startSession(Request $request, $session)
124 124
     {
125
-        return take($session, function ($session) use ($request) {
125
+        return take($session, function($session) use ($request) {
126 126
             $session->setRequestOnHandler($request);
127 127
             
128 128
             $session->start();
Please login to merge, or discard this patch.
src/components/Cookie/CookieManager.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -142,14 +142,14 @@
 block discarded – undo
142 142
         return $this->make($name, '', -2628000, $path, $domain);
143 143
     }
144 144
 
145
-     /**
146
-     * Determine if a cookie has been queued.
147
-     * 
148
-     * @param  string  $key
149
-     * @param  string|null  $path
150
-     * 
151
-     * @return bool
152
-     */
145
+        /**
146
+         * Determine if a cookie has been queued.
147
+         * 
148
+         * @param  string  $key
149
+         * @param  string|null  $path
150
+         * 
151
+         * @return bool
152
+         */
153 153
     public function hasQueued(string $key, string $path = null): bool
154 154
     {
155 155
         return ! is_null($this->queued($key, null, $path));
Please login to merge, or discard this patch.
src/components/Cookie/CookieServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
      */
36 36
     public function register()
37 37
     {
38
-        $this->app->singleton('cookie', function ($app) {
38
+        $this->app->singleton('cookie', function($app) {
39 39
             $config = $app->make('config')->get('session');
40 40
             
41 41
             return (new CookieManager)->setDefaultPathAndDomain(
Please login to merge, or discard this patch.
src/components/View/Engines/PhpEngine.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
 
80 80
         try {
81 81
             $this->files->getRequire($path, $data);
82
-        } catch(Throwable $e) {
82
+        } catch (Throwable $e) {
83 83
             return $this->handleViewException($e, $obLevel);
84 84
         }
85 85
 
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
      */
99 99
     protected function handleViewException(Throwable $e, $obLevel): void
100 100
     {
101
-        while(ob_get_level() > $obLevel) {
101
+        while (ob_get_level() > $obLevel) {
102 102
             ob_end_clean();
103 103
         }
104 104
 
Please login to merge, or discard this patch.
src/components/View/ViewServiceProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
      */
56 56
     public function registerView()
57 57
     {
58
-        $this->app->singleton('view', function ($app) {
58
+        $this->app->singleton('view', function($app) {
59 59
             // The resolver will be used by an environment to get each of the various 
60 60
             // engine implementations such as plain PHP or Plaze engine.
61 61
             $resolver = $app['view.engine.resolver'];
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
      */
103 103
     public function registerEngineResolver()
104 104
     {
105
-        $this->app->singleton('view.engine.resolver', function () {
105
+        $this->app->singleton('view.engine.resolver', function() {
106 106
             $resolver = new EngineResolver;
107 107
 
108 108
             // Register of the various view engines with the resolver
Please login to merge, or discard this patch.
src/components/View/Extensions.php 1 patch
Indentation   +38 added lines, -38 removed lines patch added patch discarded remove patch
@@ -27,45 +27,45 @@
 block discarded – undo
27 27
  */
28 28
 trait Extensions
29 29
 {
30
-	/**
31
-	 * The file extension.
32
-	 *
33
-	 * @var array $extension
34
-	 */
35
-	protected $extension = [
36
-		'plaze.php', 
37
-		'php',
38
-		'html',
39
-	];
30
+    /**
31
+     * The file extension.
32
+     *
33
+     * @var array $extension
34
+     */
35
+    protected $extension = [
36
+        'plaze.php', 
37
+        'php',
38
+        'html',
39
+    ];
40 40
 	
41
-	/**
42
-	 * The type to engine bindings.
43
-	 *
44
-	 * @var array $extensions
45
-	 */
46
-	protected $extensions = [
47
-		'plaze.php' => 'plaze', 
48
-		'php' => 'php',
49
-		'html' => 'file',
50
-	];
41
+    /**
42
+     * The type to engine bindings.
43
+     *
44
+     * @var array $extensions
45
+     */
46
+    protected $extensions = [
47
+        'plaze.php' => 'plaze', 
48
+        'php' => 'php',
49
+        'html' => 'file',
50
+    ];
51 51
 
52
-	/**
53
-	 * Get the template file extension.
54
-	 * 
55
-	 * @return array
56
-	 */
57
-	public function getExtensions(): array
58
-	{
59
-		return $this->extension;
60
-	}
52
+    /**
53
+     * Get the template file extension.
54
+     * 
55
+     * @return array
56
+     */
57
+    public function getExtensions(): array
58
+    {
59
+        return $this->extension;
60
+    }
61 61
 
62
-	/**
63
-	 * Get type to engine bindings.
64
-	 * 
65
-	 * @return array
66
-	 */
67
-	public function getKeysToExtensions(): array
68
-	{
69
-		return array_keys($this->extensions);
70
-	}
62
+    /**
63
+     * Get type to engine bindings.
64
+     * 
65
+     * @return array
66
+     */
67
+    public function getKeysToExtensions(): array
68
+    {
69
+        return array_keys($this->extensions);
70
+    }
71 71
 }
72 72
\ No newline at end of file
Please login to merge, or discard this patch.