@@ -38,9 +38,9 @@ |
||
| 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; |
@@ -47,7 +47,7 @@ discard block |
||
| 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 |
||
| 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); |
@@ -29,7 +29,7 @@ |
||
| 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 | } |