Passed
Push — master ( d048db...e350b2 )
by Shahrad
01:41
created
src/Utils/Toolkit.php 2 patches
Indentation   +34 added lines, -34 removed lines patch added patch discarded remove patch
@@ -96,42 +96,42 @@
 block discarded – undo
96 96
         return (bool)preg_match_all('/' . $value . '/i', $string);
97 97
     }
98 98
 
99
-	/**
100
-	 * Millisecond sleep
101
-	 *
102
-	 * @param int $milliseconds The milliseconds
103
-	 * @return void
104
-	 */
105
-	public static function sleep(int $milliseconds): void
106
-	{
107
-		usleep($milliseconds * 1000);
108
-	}
99
+    /**
100
+     * Millisecond sleep
101
+     *
102
+     * @param int $milliseconds The milliseconds
103
+     * @return void
104
+     */
105
+    public static function sleep(int $milliseconds): void
106
+    {
107
+        usleep($milliseconds * 1000);
108
+    }
109 109
 
110
-	/**
111
-	 * Get current time in milliseconds
112
-	 *
113
-	 * @return int
114
-	 */
115
-	public static function time(): int
116
-	{
117
-		return (int)(microtime(true) * 1000);
118
-	}
110
+    /**
111
+     * Get current time in milliseconds
112
+     *
113
+     * @return int
114
+     */
115
+    public static function time(): int
116
+    {
117
+        return (int)(microtime(true) * 1000);
118
+    }
119 119
 
120
-	/**
121
-	 * Helper to convert a binary to a string of '0' and '1'.
122
-	 *
123
-	 * @param string $string
124
-	 * @return string
125
-	 */
126
-	public static function sprintB(string $string): string
127
-	{
128
-		$return = '';
129
-		$strLen = strlen($string);
130
-		for ($i = 0; $i < $strLen; $i++) {
131
-			$return .= sprintf('%08b', ord($string[$i]));
132
-		}
120
+    /**
121
+     * Helper to convert a binary to a string of '0' and '1'.
122
+     *
123
+     * @param string $string
124
+     * @return string
125
+     */
126
+    public static function sprintB(string $string): string
127
+    {
128
+        $return = '';
129
+        $strLen = strlen($string);
130
+        for ($i = 0; $i < $strLen; $i++) {
131
+            $return .= sprintf('%08b', ord($string[$i]));
132
+        }
133 133
 
134
-		return $return;
135
-	}
134
+        return $return;
135
+    }
136 136
 
137 137
 }
138 138
\ No newline at end of file
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
      */
94 94
     public static function insensitiveString(string $string, string $value): bool
95 95
     {
96
-        return (bool)preg_match_all('/' . $value . '/i', $string);
96
+        return (bool) preg_match_all('/' . $value . '/i', $string);
97 97
     }
98 98
 
99 99
 	/**
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
 	 */
115 115
 	public static function time(): int
116 116
 	{
117
-		return (int)(microtime(true) * 1000);
117
+		return (int) (microtime(true) * 1000);
118 118
 	}
119 119
 
120 120
 	/**
Please login to merge, or discard this patch.