Passed
Push — remove-version-badges ( aa1bdf )
by Guillaume
05:16
created
app/Docsets/ChartjsPluginDatalabels.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -40,11 +40,11 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
@@ -111,9 +111,9 @@  discard block
 block discarded – undo
111 111
         $crawler->filter('head')
112 112
             ->before('<a name="//apple_ref/cpp/Section/Top" class="dashAnchor"></a>');
113 113
 
114
-        $crawler->filter('h2, h3')->each(static function (HtmlPageCrawler $node) {
114
+        $crawler->filter('h2, h3')->each(static function(HtmlPageCrawler $node) {
115 115
             $node->before(
116
-                '<a id="' . Str::slug($node->text()) . '" name="//apple_ref/cpp/Section/' . rawurlencode($node->text()) . '" class="dashAnchor"></a>'
116
+                '<a id="'.Str::slug($node->text()).'" name="//apple_ref/cpp/Section/'.rawurlencode($node->text()).'" class="dashAnchor"></a>'
117 117
             );
118 118
         });
119 119
     }
Please login to merge, or discard this patch.