Passed
Push — master ( 4575d6...651ed4 )
by Murat
49s queued 11s
created
src/EasyFunction.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
         while ($continue) {
20 20
             $check = $model->where($field, $rnd)->first();
21 21
 
22
-            if (! $check) {
22
+            if (!$check) {
23 23
                 $continue = false;
24 24
             }
25 25
 
@@ -45,22 +45,22 @@  discard block
 block discarded – undo
45 45
     private static function randomInt($length = 4)
46 46
     {
47 47
         $rand = '';
48
-        while (! (isset($rand[$length - 1]))) {
48
+        while (!(isset($rand[$length - 1]))) {
49 49
             $rand .= mt_rand();
50 50
         }
51 51
 
52
-        return (int) substr($rand, 0, $length);
52
+        return (int)substr($rand, 0, $length);
53 53
     }
54 54
 
55 55
     public static function decimalToTime($decimal)
56 56
     {
57
-        if (! $decimal) {
57
+        if (!$decimal) {
58 58
             return 'Empty data given.';
59 59
         }
60
-        if (strpos((string) $decimal, '.') !== false) {
60
+        if (strpos((string)$decimal, '.') !== false) {
61 61
             $timeArray = explode('.', $decimal);
62 62
             if (isset($timeArray[1])) {
63
-                if (strlen((string) $timeArray[1]) == 1) {
63
+                if (strlen((string)$timeArray[1]) == 1) {
64 64
                     $timeArray[1] = sprintf('%1s0', $timeArray[1]);
65 65
 
66 66
                     return gmdate('H:i:s', $timeArray[0]).'.'.$timeArray[1];
Please login to merge, or discard this patch.