@@ -44,7 +44,7 @@ |
||
44 | 44 | */ |
45 | 45 | public function ranker() |
46 | 46 | { |
47 | - if (! empty($this->sentence)) { |
|
47 | + if (!empty($this->sentence)) { |
|
48 | 48 | |
49 | 49 | $wordsArray = preg_split('/\s+/', $this->sentence); |
50 | 50 | $rankedArray = []; |
@@ -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 | } |
@@ -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 | |
56 | 56 | foreach ($this->words as $urbanWord) { |
57 | 57 | |
@@ -94,7 +94,7 @@ discard block |
||
94 | 94 | 'key' => null, |
95 | 95 | ]; |
96 | 96 | |
97 | - if (! empty($this->slang)) { |
|
97 | + if (!empty($this->slang)) { |
|
98 | 98 | |
99 | 99 | foreach ($this->words as $urbanWordKey => $urbanWord) { |
100 | 100 | |
@@ -137,7 +137,7 @@ discard block |
||
137 | 137 | */ |
138 | 138 | public function updateWord($slang = '', $slangUpdate = '', $descUpdate = '', $sentenceUpdate = '') |
139 | 139 | { |
140 | - if (! empty($slangUpdate) && ! empty($descUpdate) && ! empty($sentenceUpdate)) { |
|
140 | + if (!empty($slangUpdate) && !empty($descUpdate) && !empty($sentenceUpdate)) { |
|
141 | 141 | |
142 | 142 | $this->slang = $slang; |
143 | 143 | $wordKey = $this->readWord($this->slang); |
@@ -177,7 +177,7 @@ discard block |
||
177 | 177 | 'urbanWord' => [], |
178 | 178 | ]; |
179 | 179 | |
180 | - if (! empty($this->slang)) { |
|
180 | + if (!empty($this->slang)) { |
|
181 | 181 | |
182 | 182 | foreach ($this->words as $urbanWordKey => $urbanWord) { |
183 | 183 |