Passed
Branch master (7a2a88)
by Maurizio
14:27
created
src/SitemapIndex.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
 
36 36
     public function getSitemap(string $url): ?Sitemap
37 37
     {
38
-        return collect($this->tags)->first(function (Tag $tag) use ($url) {
38
+        return collect($this->tags)->first(function(Tag $tag) use ($url) {
39 39
             return $tag->getType() === 'sitemap' && $tag->url === $url;
40 40
         });
41 41
     }
Please login to merge, or discard this patch.
src/Tags/Url.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -121,13 +121,13 @@
 block discarded – undo
121 121
     public function segments(?int $index = null)
122 122
     {
123 123
         $segments = collect(explode('/', $this->path()))
124
-            ->filter(function ($value) {
124
+            ->filter(function($value) {
125 125
                 return $value !== '';
126 126
             })
127 127
             ->values()
128 128
             ->toArray();
129 129
 
130
-        if (! is_null($index)) {
130
+        if (!is_null($index)) {
131 131
             return $this->segment($index);
132 132
         }
133 133
 
Please login to merge, or discard this patch.
src/Sitemap.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
             $tag = Url::create($tag);
46 46
         }
47 47
 
48
-        if (! in_array($tag, $this->tags)) {
48
+        if (!in_array($tag, $this->tags)) {
49 49
             $this->tags[] = $tag;
50 50
         }
51 51
 
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
 
60 60
     public function getUrl(string $url): ?Url
61 61
     {
62
-        return collect($this->tags)->first(function (Tag $tag) use ($url) {
62
+        return collect($this->tags)->first(function(Tag $tag) use ($url) {
63 63
             return $tag->getType() === 'url' && $tag->url === $url;
64 64
         });
65 65
     }
@@ -71,15 +71,15 @@  discard block
 block discarded – undo
71 71
 
72 72
     public function hasImages() : bool
73 73
     {
74
-        return (bool) collect($this->tags)->first(function (Tag $tag) {
75
-            return $tag->getType() === 'url' && ! empty($tag->images);
74
+        return (bool) collect($this->tags)->first(function(Tag $tag) {
75
+            return $tag->getType() === 'url' && !empty($tag->images);
76 76
         });
77 77
     }
78 78
 
79 79
     public function hasNews() : bool
80 80
     {
81
-        return (bool) collect($this->tags)->first(function (Tag $tag) {
82
-            return $tag->getType() === 'url' && ! empty($tag->news);
81
+        return (bool) collect($this->tags)->first(function(Tag $tag) {
82
+            return $tag->getType() === 'url' && !empty($tag->news);
83 83
         });
84 84
     }
85 85
 
Please login to merge, or discard this patch.