@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | |
45 | 45 | private function validate() : OperationResult |
46 | 46 | { |
47 | - if(empty($this->delimiter)) |
|
47 | + if (empty($this->delimiter)) |
|
48 | 48 | { |
49 | 49 | return $this->makeError( |
50 | 50 | 'Delimiters may not be empty.', |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | ); |
53 | 53 | } |
54 | 54 | |
55 | - if(strlen($this->delimiter) < 2) |
|
55 | + if (strlen($this->delimiter) < 2) |
|
56 | 56 | { |
57 | 57 | return $this->makeError( |
58 | 58 | 'The delimiter must have at least 2 characters in length.', |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | |
63 | 63 | $encoded = urlencode($this->delimiter); |
64 | 64 | |
65 | - if($encoded !== $this->delimiter) |
|
65 | + if ($encoded !== $this->delimiter) |
|
66 | 66 | { |
67 | 67 | return $this->makeError( |
68 | 68 | 'The delimiter is not URL encoding neutral: it must not be modified by a urlencode() call.', |
@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | |
76 | 76 | public function throwExceptionIfInvalid() : void |
77 | 77 | { |
78 | - if($this->isValid()) { |
|
78 | + if ($this->isValid()) { |
|
79 | 79 | return; |
80 | 80 | } |
81 | 81 |
@@ -69,7 +69,7 @@ |
||
69 | 69 | |
70 | 70 | public function getReplacementText() : string |
71 | 71 | { |
72 | - if(!empty($this->replacement)) |
|
72 | + if (!empty($this->replacement)) |
|
73 | 73 | { |
74 | 74 | return $this->replacement; |
75 | 75 | } |