Passed
Push — master ( 8f2317...686ec4 )
by Mohammed
04:00 queued 01:47
created
src/helpers/Handler.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
             if (count($arr)>=3)
38 38
             {
39 39
                 $this->after_comma_array = [$arr[0], $arr[1]];
40
-            }else
40
+            } else
41 41
             {
42 42
                 $this->after_comma_array = $arr;
43 43
             }
Please login to merge, or discard this patch.
src/helpers/Validation.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
     	
13 13
         if (is_numeric($this->parsed_number)) {
14 14
                     return $this;
15
-        }else {
15
+        } else {
16 16
                     die('is not right number ');
17 17
         }
18 18
     }
Please login to merge, or discard this patch.
src/helpers/Calculators.php 2 patches
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
 
114 114
         if ($arr[0]<=2) {
115 115
                     $thousands = $this->thousands[$arr[0]];
116
-        } else {
116
+        }else {
117 117
                     $thousands = $this->ones[$arr[0]].' '.$this->thousands['39'];
118 118
         }
119 119
 
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
 
141 141
             if (in_array($arr[1], [2, 1])) {
142 142
                             $thousands = $this->others[$arr[1]].$conn.$this->tens[$arr[0]];
143
-            } else {
143
+            }else {
144 144
                             $thousands = $this->ones[$arr[1]].$conn.$this->tens[$arr[0]];
145 145
             }
146 146
 
@@ -150,28 +150,28 @@  discard block
 block discarded – undo
150 150
                 {
151 151
                     $thousands = $this->ones[10];
152 152
                     $thousands .= ' '.$this->thousands[39];
153
-                } else
153
+                }else
154 154
                 {
155 155
                     $thousands = $this->tens[$arr[0]];
156 156
                     $thousands .= ' '.$this->thousands[1];
157 157
                 }
158 158
 
159
-            } else {
159
+            }else {
160 160
                 if ($arr[2] == 0 and $arr[3] == 0 and $arr[4] == 0)
161 161
                 {
162 162
                     $thousands .= ' '.$this->thousands[1];
163
-                } else
163
+                }else
164 164
                 {
165 165
                     $thousands .= ' '.$this->thousands[1199];
166 166
                 }
167 167
 
168 168
             }
169 169
 
170
-        } else
170
+        }else
171 171
         {
172 172
             if (in_array($arr[1], [2, 1])) {
173 173
                             $thousands = $this->others[$arr[1]].' ';
174
-            } else {
174
+            }else {
175 175
                             $thousands = $this->ones[$arr[1]].' ';
176 176
             }
177 177
 
@@ -198,7 +198,7 @@  discard block
 block discarded – undo
198 198
             if ($arr[1] == 0 && $arr[2] == 0)
199 199
             {
200 200
                 $thousands = $this->hundreds[$arr[0]].' '.$this->thousands[1];
201
-            } else {
201
+            }else {
202 202
                 if ($arr[1] == 0)
203 203
                 {
204 204
                     $thousands = $this->hundreds[$arr[0]].$this->config['connection_tool'].
@@ -211,12 +211,12 @@  discard block
 block discarded – undo
211 211
                         $thousands = $this->hundreds[$arr[0]].$this->config['connection_tool'].
212 212
                             $this->tens[$arr[1]].' '.$this->thousands[1];
213 213
 
214
-                    } else
214
+                    }else
215 215
                     {
216 216
                         $thousands = $this->hundreds[$arr[0]].$this->config['connection_tool'].
217 217
                             $this->tens[$arr[1]].' '.$this->thousands[1199];
218 218
                     }
219
-                } else
219
+                }else
220 220
                 {
221 221
 //                    $thousands_lang = $this->thousands[1199];
222 222
                     if ($arr[1] == 0 and $arr[2]>=1 and $arr[1]<=10) {
@@ -233,7 +233,7 @@  discard block
 block discarded – undo
233 233
                 }
234 234
             }
235 235
 
236
-        } else
236
+        }else
237 237
         {
238 238
             return $this->classE([$arr[1], $arr[2], $arr[3], $arr[4], $arr[5]]);
239 239
         }
@@ -253,7 +253,7 @@  discard block
 block discarded – undo
253 253
 
254 254
         if ($arr[0]<=2) {
255 255
                     $million = $this->millions[$arr[0]];
256
-        } else {
256
+        }else {
257 257
                     $million = $this->ones[$arr[0]].' '.$this->millions['39'];
258 258
         }
259 259
 
Please login to merge, or discard this patch.
Braces   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -289,7 +289,7 @@  discard block
 block discarded – undo
289 289
 
290 290
             if (in_array($arr[1], [2, 1])) {
291 291
                             $million = $this->others[$arr[1]].$conn.$this->tens[$arr[0]];
292
-            }else {
292
+            } else {
293 293
                             $million = $this->ones[$arr[1]].$conn.$this->tens[$arr[0]];
294 294
             }
295 295
 
@@ -299,28 +299,28 @@  discard block
 block discarded – undo
299 299
                 {
300 300
                     $million = $this->ones[10];
301 301
                     $million .= ' '.$this->millions[39];
302
-                }else
302
+                } else
303 303
                 {
304 304
                     $million = $this->tens[$arr[0]];
305 305
                     $million .= ' '.$this->millions[1];
306 306
                 }
307 307
 
308
-            }else {
308
+            } else {
309 309
                 if ($arr[2] == 0 and $arr[3] == 0 and $arr[4] == 0)
310 310
                 {
311 311
                     $million .= ' '.$this->millions[1];
312
-                }else
312
+                } else
313 313
                 {
314 314
                     $million .= ' '.$this->millions[1199];
315 315
                 }
316 316
 
317 317
             }
318 318
 
319
-        }else
319
+        } else
320 320
         {
321 321
             if (in_array($arr[1], [2, 1])) {
322 322
                             $million = $this->others[$arr[1]].' ';
323
-            }else {
323
+            } else {
324 324
                             $million = $this->ones[$arr[1]].' ';
325 325
             }
326 326
 
@@ -356,7 +356,7 @@  discard block
 block discarded – undo
356 356
 
357 357
         if (in_array($arr[1], [2])) {
358 358
                     $million = $this->others[$arr[1]].$this->config['connection_tool'].$this->tens[$arr[0]];
359
-        }else {
359
+        } else {
360 360
                     $million = $this->ones[$arr[1]].$this->config['connection_tool'].$this->tens[$arr[0]];
361 361
         }
362 362
 
Please login to merge, or discard this patch.
src/Tafqeet.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
             if ($this->is_main1_currency) {
111 111
                 $result .= $this->result_before_comma.' '.$this->config['currencies'][$currency]['main1'];
112 112
 
113
-            } else {
113
+            }else {
114 114
                 $result .= $this->result_before_comma.' '.$this->config['currencies'][$currency]['main2'];
115 115
 
116 116
             }
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
                 ])) {
121 121
                     $result .= $this->config['connection_tool'].$this->result_after_comma.' '.
122 122
                         $this->config['currencies'][$currency]['multi'];
123
-                } else {
123
+                }else {
124 124
                     $result .= $this->config['connection_tool'].$this->result_after_comma.' '.
125 125
                         $this->config['currencies'][$currency]['single'];
126 126
                 }
Please login to merge, or discard this patch.