Completed
Push — master ( 911f66...7ec80a )
by John
02:15
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/exceptions/WordRankManagerException.php 2 patches
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -14,6 +14,7 @@
 block discarded – undo
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)
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,6 +28,6 @@
 block discarded – undo
28 28
      */
29 29
     public function errorMessage()
30 30
     {
31
-         return $this->message;
31
+            return $this->message;
32 32
     }
33 33
 }
Please login to merge, or discard this patch.
src/exceptions/WordManagerException.php 2 patches
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -14,6 +14,7 @@
 block discarded – undo
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)
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,6 +28,6 @@
 block discarded – undo
28 28
      */
29 29
     public function errorMessage()
30 30
     {
31
-         return $this->message;
31
+            return $this->message;
32 32
     }
33 33
 }
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
 
56 56
             foreach ($this->words as $urbanWord) {
57 57
 
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.