| @@ -40,11 +40,11 @@ discard block | ||
| 40 | 40 |          if (Str::contains($file, "{$this->url()}/guide/index.html")) { | 
| 41 | 41 | $crawler | 
| 42 | 42 |                  ->filter('.sidebar-links > li > a') | 
| 43 | -                ->each(function (HtmlPageCrawler $node) use ($entries) { | |
| 43 | +                ->each(function(HtmlPageCrawler $node) use ($entries) { | |
| 44 | 44 | $entries->push([ | 
| 45 | 45 | 'name' => $node->text(), | 
| 46 | 46 | 'type' => 'Guide', | 
| 47 | -                        'path' => $this->url() . '/guide/' . $node->attr('href'), | |
| 47 | +                        'path' => $this->url().'/guide/'.$node->attr('href'), | |
| 48 | 48 | ]); | 
| 49 | 49 | }); | 
| 50 | 50 | } | 
| @@ -56,11 +56,11 @@ discard block | ||
| 56 | 56 |      { | 
| 57 | 57 | $entries = collect(); | 
| 58 | 58 | |
| 59 | -        $crawler->filter('h2')->each(function (HtmlPageCrawler $node) use ($entries, $file) { | |
| 59 | +        $crawler->filter('h2')->each(function(HtmlPageCrawler $node) use ($entries, $file) { | |
| 60 | 60 | $entries->push([ | 
| 61 | 61 | 'name' => $node->text(), | 
| 62 | 62 | 'type' => 'Section', | 
| 63 | - 'path' => Str::after($file . '#' . Str::slug($node->text()), $this->innerDirectory()) | |
| 63 | + 'path' => Str::after($file.'#'.Str::slug($node->text()), $this->innerDirectory()) | |
| 64 | 64 | ]); | 
| 65 | 65 | }); | 
| 66 | 66 | |
| @@ -112,7 +112,7 @@ discard block | ||
| 112 | 112 |      { | 
| 113 | 113 | $crawler | 
| 114 | 114 |              ->filter('p > a:first-child > img') | 
| 115 | -            ->each(function ($node) { | |
| 115 | +            ->each(function($node) { | |
| 116 | 116 |                  $node->closest('a')->remove(); | 
| 117 | 117 | }); | 
| 118 | 118 | } | 
| @@ -122,9 +122,9 @@ discard block | ||
| 122 | 122 |          $crawler->filter('head') | 
| 123 | 123 |              ->before('<a name="//apple_ref/cpp/Section/Top" class="dashAnchor"></a>'); | 
| 124 | 124 | |
| 125 | -        $crawler->filter('h2, h3')->each(static function (HtmlPageCrawler $node) { | |
| 125 | +        $crawler->filter('h2, h3')->each(static function(HtmlPageCrawler $node) { | |
| 126 | 126 | $node->before( | 
| 127 | - '<a id="' . Str::slug($node->text()) . '" name="//apple_ref/cpp/Section/' . rawurlencode($node->text()) . '" class="dashAnchor"></a>' | |
| 127 | + '<a id="'.Str::slug($node->text()).'" name="//apple_ref/cpp/Section/'.rawurlencode($node->text()).'" class="dashAnchor"></a>' | |
| 128 | 128 | ); | 
| 129 | 129 | }); | 
| 130 | 130 | } |