Completed
Push — master ( 26b7f9...bdc586 )
by John
01:51
created
src/exceptions/WordManagerException.php 2 patches
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -16,6 +16,7 @@
 block discarded – undo
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)
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,6 +30,6 @@
 block discarded – undo
30 30
      */
31 31
     public function errorMessage()
32 32
     {
33
-         return $this->message;
33
+            return $this->message;
34 34
     }
35 35
 }
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/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.