Completed
Push — develop ( 4aabf2...3c50bf )
by Stan
02:05
created
src/Middleware/ServerPush.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
         $crawler = new Crawler($response->content());
61 61
 
62 62
         $content = $crawler->filter('link, script[src], img[src]')
63
-                           ->extract(['src', 'href']);
63
+                            ->extract(['src', 'href']);
64 64
 
65 65
         // TODO: Ordering might be necessary for manifest files due to https://laravel.com/docs/5.5/mix#vendor-extraction
66 66
         return collect($content)->flatten(1)
Please login to merge, or discard this patch.
src/Response.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
 
21 21
         if ($push !== null) {
22 22
             $this->header('Link', $push->getLink())
23
-                 ->withCookie($push->getCookie());
23
+                    ->withCookie($push->getCookie());
24 24
         }
25 25
 
26 26
         return $this;
Please login to merge, or discard this patch.
tests/TestCase.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
61 61
     {
62 62
         // The function "public_path" is in "Illuminate/Foundation" which is no standalone dependency.
63 63
         Container::getInstance()
64
-                 ->instance('path.public', __DIR__ . DIRECTORY_SEPARATOR . 'fixtures');
64
+                    ->instance('path.public', __DIR__ . DIRECTORY_SEPARATOR . 'fixtures');
65 65
 
66 66
         $this->request = new Request();
67 67
         $this->builder = new Builder($this->request, $this->builderSettings);
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
61 61
     {
62 62
         // The function "public_path" is in "Illuminate/Foundation" which is no standalone dependency.
63 63
         Container::getInstance()
64
-                 ->instance('path.public', __DIR__ . DIRECTORY_SEPARATOR . 'fixtures');
64
+                 ->instance('path.public', __DIR__.DIRECTORY_SEPARATOR.'fixtures');
65 65
 
66 66
         $this->request = new Request();
67 67
         $this->builder = new Builder($this->request, $this->builderSettings);
Please login to merge, or discard this patch.
tests/fixtures/helpers.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,6 +15,6 @@
 block discarded – undo
15 15
         $destination = ($path ? DIRECTORY_SEPARATOR . ltrim($path, DIRECTORY_SEPARATOR) : $path);
16 16
 
17 17
         return Container::getInstance()
18
-                        ->make('path.public') . $destination;
18
+                        ->make('path.public').$destination;
19 19
     }
20 20
 }
Please login to merge, or discard this patch.
tests/BuilderTest.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
     public function it_should_return_null_when_the_given_resources_already_got_cached()
119 119
     {
120 120
         $cache = $this->transform($this->pushable)
121
-                      ->toJson();
121
+                        ->toJson();
122 122
 
123 123
         $cookies = [
124 124
             $this->builderSettings['cookie']['name'] => $cache,
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
         $pushed = array_slice($this->pushable, 0, 4);
140 140
 
141 141
         $cache = $this->transform($pushed)
142
-                      ->toJson();
142
+                        ->toJson();
143 143
 
144 144
         $cookies = [
145 145
             $this->builderSettings['cookie']['name'] => $cache,
Please login to merge, or discard this patch.
src/Providers/Http2PusherServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
      *
16 16
      * @var string
17 17
      */
18
-    private $config = __DIR__ . '/../config/http2-pusher.php';
18
+    private $config = __DIR__.'/../config/http2-pusher.php';
19 19
 
20 20
     /**
21 21
      * Bootstrap any application services.
Please login to merge, or discard this patch.
tests/ServerPushMiddlewareTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -172,7 +172,7 @@
 block discarded – undo
172 172
     {
173 173
         return function () use ($page) {
174 174
             return new Response(
175
-                file_get_contents(__DIR__ . "/fixtures/pages/{$page}.html")
175
+                file_get_contents(__DIR__."/fixtures/pages/{$page}.html")
176 176
             );
177 177
         };
178 178
     }
Please login to merge, or discard this patch.