Completed
Push — master ( 1ec88c...762353 )
by wally
09:03 queued 06:13
created
src/Ping.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -38,9 +38,9 @@
 block discarded – undo
38 38
 
39 39
     public function addUrl(string $url): self {
40 40
 
41
-       if ($this->chekcIfValidUrl($url) === false) {
42
-           throw new \RuntimeException('Not a good url.');
43
-       }
41
+        if ($this->chekcIfValidUrl($url) === false) {
42
+            throw new \RuntimeException('Not a good url.');
43
+        }
44 44
 
45 45
         $this->urlEntity->addUrl($url);
46 46
         return $this;
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
     }
48 48
 
49 49
     public function addMultipleUrls(array $urlArray): self {
50
-        foreach ($urlArray as $url){
50
+        foreach ($urlArray as $url) {
51 51
             $this->addUrl($url);
52 52
         }
53 53
 
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
 
72 72
     public function ping(string $url = null) {
73 73
 
74
-        if ($url !== null){
74
+        if ($url !== null) {
75 75
             return $this->pingService->pingSingle($url);
76 76
         }
77 77
         return $this->pingService->ping($this->urlEntity);
Please login to merge, or discard this patch.
src/Entity/Url.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
 
30 30
     public function removeUrl($result): self
31 31
     {
32
-        unset($this->url[array_search($result, $this->url,[FALSE])]);
32
+        unset($this->url[array_search($result, $this->url, [FALSE])]);
33 33
 
34 34
         return $this;
35 35
     }
Please login to merge, or discard this patch.