Skip to content

Commit cc2596e

Browse files
authored
Merge pull request #6 from tomschlick/analysis-8LZb9J
Applied fixes from StyleCI
2 parents ac24645 + 9e07455 commit cc2596e

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

src/HttpPush.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public function generateLinks() : array
4040
$links = [];
4141

4242
foreach ($this->resources as $row) {
43-
$links[] = '<' . $row['path'] . '>; rel=preload; as=' . $row['type'];
43+
$links[] = '<'.$row['path'].'>; rel=preload; as='.$row['type'];
4444
}
4545

4646
return $links;
@@ -64,6 +64,7 @@ public function clear()
6464

6565
/**
6666
* @param string $resourcePath
67+
*
6768
* @return string
6869
*/
6970
public static function getTypeByExtension(string $resourcePath) : string

src/ServiceProvider.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class ServiceProvider extends BaseServiceProvider
1515
public function boot()
1616
{
1717
$this->publishes([
18-
__DIR__ . '/../config/server-push.php' => config_path('server-push.php'),
18+
__DIR__.'/../config/server-push.php' => config_path('server-push.php'),
1919
], 'config');
2020
}
2121

@@ -39,7 +39,7 @@ public function register()
3939
*/
4040
protected function registerDefaultLinks()
4141
{
42-
$this->mergeConfigFrom(__DIR__ . '/../config/server-push.php', 'server-push');
42+
$this->mergeConfigFrom(__DIR__.'/../config/server-push.php', 'server-push');
4343
$instance = app('server-push');
4444

4545
foreach (config('server-push.default_links', []) as $type => $paths) {
@@ -52,15 +52,15 @@ protected function registerDefaultLinks()
5252

5353
protected function registerElixirLinks()
5454
{
55-
$this->mergeConfigFrom(__DIR__ . '/../config/server-push.php', 'server-push');
55+
$this->mergeConfigFrom(__DIR__.'/../config/server-push.php', 'server-push');
5656
$instance = app('server-push');
5757

5858
if (config('server-push.autolink_elixir')) {
59-
$revPath = public_path() . '/build/rev-manifest.json';
59+
$revPath = public_path().'/build/rev-manifest.json';
6060
if (file_exists($revPath)) {
6161
$revMap = json_decode($revPath, true);
6262
foreach (array_values($revMap) as $path) {
63-
$instance->queueResource('/' . ltrim($path, '/'));
63+
$instance->queueResource('/'.ltrim($path, '/'));
6464
}
6565
}
6666
}

0 commit comments

Comments
 (0)