@@ -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 = []; |
@@ -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; |