@@ -16,6 +16,7 @@ |
||
16 | 16 | /** |
17 | 17 | * Capture thrown error message |
18 | 18 | * |
19 | + * @param string $message |
|
19 | 20 | * @return [string] [Return caught error] |
20 | 21 | */ |
21 | 22 | public function __construct($message) |
@@ -30,6 +30,6 @@ |
||
30 | 30 | */ |
31 | 31 | public function errorMessage() |
32 | 32 | { |
33 | - return $this->message; |
|
33 | + return $this->message; |
|
34 | 34 | } |
35 | 35 | } |
@@ -14,6 +14,7 @@ |
||
14 | 14 | /** |
15 | 15 | * Capture thrown [errorMessage] |
16 | 16 | * |
17 | + * @param string $message |
|
17 | 18 | * @return [string] [Return caught error] |
18 | 19 | */ |
19 | 20 | public function __construct($message) |
@@ -28,6 +28,6 @@ |
||
28 | 28 | */ |
29 | 29 | public function errorMessage() |
30 | 30 | { |
31 | - return $this->message; |
|
31 | + return $this->message; |
|
32 | 32 | } |
33 | 33 | } |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | $this->desc = $desc; |
52 | 52 | $this->sentence = $sentence; |
53 | 53 | |
54 | - if (! empty($this->slang) && !empty($this->desc) && !empty($this->sentence)) { |
|
54 | + if (!empty($this->slang) && !empty($this->desc) && !empty($this->sentence)) { |
|
55 | 55 | foreach ($this->words as $urbanWord) { |
56 | 56 | if (strtolower($urbanWord['slang']) === strtolower($this->slang)) { |
57 | 57 | throw new WordManagerException('Urban word already exists.'); |
@@ -90,7 +90,7 @@ discard block |
||
90 | 90 | 'key' => null, |
91 | 91 | ]; |
92 | 92 | |
93 | - if (! empty($this->slang)) { |
|
93 | + if (!empty($this->slang)) { |
|
94 | 94 | foreach ($this->words as $urbanWordKey => $urbanWord) { |
95 | 95 | if (strtolower($urbanWord['slang']) === strtolower($this->slang)) { |
96 | 96 | $foundWord['success'] = true; |
@@ -127,7 +127,7 @@ discard block |
||
127 | 127 | */ |
128 | 128 | public function updateWord($slang = '', $slangUpdate = '', $descUpdate = '', $sentenceUpdate = '') |
129 | 129 | { |
130 | - if (! empty($slangUpdate) && ! empty($descUpdate) && ! empty($sentenceUpdate)) { |
|
130 | + if (!empty($slangUpdate) && !empty($descUpdate) && !empty($sentenceUpdate)) { |
|
131 | 131 | $this->slang = $slang; |
132 | 132 | $wordKey = $this->readWord($this->slang); |
133 | 133 | |
@@ -163,7 +163,7 @@ discard block |
||
163 | 163 | 'urbanWord' => [], |
164 | 164 | ]; |
165 | 165 | |
166 | - if (! empty($this->slang)) { |
|
166 | + if (!empty($this->slang)) { |
|
167 | 167 | foreach ($this->words as $urbanWordKey => $urbanWord) { |
168 | 168 | if (strtolower($urbanWord['slang']) === strtolower($this->slang)) { |
169 | 169 | $foundWord['success'] = true; |