Completed
Push — master ( b1752b...53e537 )
by John
03:18
created
src/WordRankManager.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
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 = [];
Please login to merge, or discard this patch.
src/UrbanWordsManager.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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;
Please login to merge, or discard this patch.