Passed
Push — 2.4.1 ( 1a996b...93c1da )
by Hossein
03:06
created
src/Sitemap.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -41,14 +41,14 @@
 block discarded – undo
41 41
      */
42 42
     public function getUrl(string $url)
43 43
     {
44
-        return collect($this->tags)->first(function (Tag $tag) use ($url) {
44
+        return collect($this->tags)->first(function(Tag $tag) use ($url) {
45 45
             return $tag->getType() === 'url' && $tag->url === $url;
46 46
         });
47 47
     }
48 48
 
49 49
     public function hasUrl(string $url): bool
50 50
     {
51
-        return (bool)$this->getUrl($url);
51
+        return (bool) $this->getUrl($url);
52 52
     }
53 53
 
54 54
     public function render($sort = false): string
Please login to merge, or discard this patch.
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -53,8 +53,9 @@
 block discarded – undo
53 53
 
54 54
     public function render($sort = false): string
55 55
     {
56
-        if ($sort)
57
-            sort($this->tags);
56
+        if ($sort) {
57
+                    sort($this->tags);
58
+        }
58 59
 
59 60
         $tags = $this->tags;
60 61
 
Please login to merge, or discard this patch.