Passed
Push — master ( 3f4730...04686a )
by Eric
12:34
created
src/Counter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -330,7 +330,7 @@
 block discarded – undo
330 330
         ];
331 331
 
332 332
         if ($options !== null) {
333
-            array_walk($options, static fn (string|bool $value, string $key): bool|string => match($key) {
333
+            array_walk($options, static fn (string | bool $value, string $key): bool | string => match($key) {
334 334
                 'useFileLocking', 'countOnlyUnique', 'useImages' => (bool) $value,
335 335
                 default => $value
336 336
             });
Please login to merge, or discard this patch.
counter/logs/index.php 1 patch
Upper-Lower-Casing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -57,13 +57,13 @@  discard block
 block discarded – undo
57 57
 {
58 58
     $loginInfo = \parse_ini_file(__DIR__ . '/credentials.env');
59 59
 
60
-    if (empty($loginInfo) OR !isset($loginInfo['login_user'], $loginInfo['login_pass'], $loginInfo['login_algo'])) {
60
+    if (empty($loginInfo) or !isset($loginInfo['login_user'], $loginInfo['login_pass'], $loginInfo['login_algo'])) {
61 61
         throw new \Exception('Invalid or missing credentials in environment file.');
62 62
     }
63 63
 
64 64
     $isHash = \password_get_info($loginInfo['login_pass']);
65 65
 
66
-    if ($isHash['algo'] == 0 OR $isHash['algoName'] == 'unknown') {
66
+    if ($isHash['algo'] == 0 or $isHash['algoName'] == 'unknown') {
67 67
         throw new \Exception('Please update your password within the environment file. No plaintext password please.');
68 68
     }
69 69
 
@@ -84,8 +84,8 @@  discard block
 block discarded – undo
84 84
 $loginInfo = loginInfo();
85 85
 
86 86
 if (
87
-    !isset($_SESSION['loggedin'], $_SESSION['loggedinHash']) OR 
88
-    $_SESSION['loggedIn'] != true OR 
87
+    !isset($_SESSION['loggedin'], $_SESSION['loggedinHash']) or 
88
+    $_SESSION['loggedIn'] != true or 
89 89
     $_SESSION['loggedinHash'] != \md5($_SERVER['REMOTE_ADDR'] . $_SERVER['HTTP_USER_AGENT'])
90 90
 ) {
91 91
     $_SESSION = [];
Please login to merge, or discard this patch.
rector.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@
 block discarded – undo
10 10
 use Rector\Core\ValueObject\PhpVersion;
11 11
 use Rector\CodeQuality\Rector\Concat\JoinStringConcatRector;
12 12
 
13
-return static function (RectorConfig $rectorConfig): void {
13
+return static function(RectorConfig $rectorConfig): void {
14 14
     $rectorConfig->paths([
15 15
         __DIR__ . '/src',
16 16
         __DIR__ . '/tests/src',
Please login to merge, or discard this patch.