@@ -24,7 +24,7 @@ |
||
24 | 24 | */ |
25 | 25 | protected function publishConfig() |
26 | 26 | { |
27 | - $path = __DIR__.'/../config/disqus.php'; |
|
27 | + $path = __DIR__ . '/../config/disqus.php'; |
|
28 | 28 | $this->mergeConfigFrom($path, 'disqus'); |
29 | 29 | $this->publishes([ |
30 | 30 | $path => config_path('disqus.php'), |
@@ -36,13 +36,13 @@ discard block |
||
36 | 36 | { |
37 | 37 | $content = $response->getContent(); |
38 | 38 | |
39 | - if (! Str::contains($content, '<div id="disqus_thread"></div>')) { |
|
39 | + if ( ! Str::contains($content, '<div id="disqus_thread"></div>')) { |
|
40 | 40 | return; |
41 | 41 | } |
42 | 42 | |
43 | 43 | $uri = $request->getRequestUri(); |
44 | 44 | $pageUrl = url($uri); |
45 | - $pageId = 'route'.implode('.', explode('/', $uri)); |
|
45 | + $pageId = 'route' . implode('.', explode('/', $uri)); |
|
46 | 46 | $username = config('disqus.username'); |
47 | 47 | |
48 | 48 | $disqusHtml = <<<CDATA |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | $bodyPosition = strripos($content, '</body>'); |
68 | 68 | |
69 | 69 | if (false !== $bodyPosition) { |
70 | - $content = substr($content, 0, $bodyPosition).$disqusHtml.substr($content, $bodyPosition); |
|
70 | + $content = substr($content, 0, $bodyPosition) . $disqusHtml . substr($content, $bodyPosition); |
|
71 | 71 | } |
72 | 72 | |
73 | 73 | $response->setContent($content); |