@@ -33,7 +33,7 @@ |
||
33 | 33 | $toGet = implode('|', [ |
34 | 34 | '.*\.githubassets\.com', |
35 | 35 | '.*\.githubusercontent\.com', |
36 | - '\.css', |
|
36 | + '\.css', |
|
37 | 37 | '\.ico', |
38 | 38 | '\.js', |
39 | 39 | '\.png', |
@@ -79,11 +79,11 @@ discard block |
||
79 | 79 | { |
80 | 80 | $entries = collect(); |
81 | 81 | |
82 | - $crawler->filter('.entry-content h2')->each(function (HtmlPageCrawler $node) use ($entries) { |
|
82 | + $crawler->filter('.entry-content h2')->each(function(HtmlPageCrawler $node) use ($entries) { |
|
83 | 83 | $entries->push([ |
84 | 84 | 'name' => trim($node->text()), |
85 | 85 | 'type' => 'Guide', |
86 | - 'path' => $this->url() . '/alpinejs/' . $node->children('a')->attr('href') |
|
86 | + 'path' => $this->url().'/alpinejs/'.$node->children('a')->attr('href') |
|
87 | 87 | ]); |
88 | 88 | }); |
89 | 89 | |
@@ -94,11 +94,11 @@ discard block |
||
94 | 94 | { |
95 | 95 | $entries = collect(); |
96 | 96 | |
97 | - $crawler->filter('.entry-content h3')->each(function (HtmlPageCrawler $node) use ($entries) { |
|
97 | + $crawler->filter('.entry-content h3')->each(function(HtmlPageCrawler $node) use ($entries) { |
|
98 | 98 | $entries->push([ |
99 | 99 | 'name' => trim($node->text()), |
100 | 100 | 'type' => 'Section', |
101 | - 'path' => $this->url() . '/alpinejs/' . $node->children('a')->attr('href') |
|
101 | + 'path' => $this->url().'/alpinejs/'.$node->children('a')->attr('href') |
|
102 | 102 | ]); |
103 | 103 | }); |
104 | 104 | |
@@ -184,7 +184,7 @@ discard block |
||
184 | 184 | $crawler->filter('head') |
185 | 185 | ->before('<a name="//apple_ref/cpp/Section/Top" class="dashAnchor"></a>'); |
186 | 186 | |
187 | - $crawler->filter('h3')->each(function (HtmlPageCrawler $node) { |
|
187 | + $crawler->filter('h3')->each(function(HtmlPageCrawler $node) { |
|
188 | 188 | $node->prepend( |
189 | 189 | '<a id="' |
190 | 190 | . Str::slug($node->text()) |