Passed
Push — main ( 2cb152...6ff26f )
by TARIQ
23:50
created
brighty/tests/_support/Commands/Foobar.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -4,8 +4,8 @@
 block discarded – undo
4 4
 use CodeIgniter\CLI\CLI;
5 5
 
6 6
 return [
7
-   'foo' => 'The command will use this as foo.',
8
-   'bar' => 'The command will use this as bar.',
9
-   'baz' => 'The baz is here.',
10
-   'bas' => CLI::color('bas', 'green') . (new App())->baseURL,
7
+    'foo' => 'The command will use this as foo.',
8
+    'bar' => 'The command will use this as bar.',
9
+    'baz' => 'The baz is here.',
10
+    'bas' => CLI::color('bas', 'green') . (new App())->baseURL,
11 11
 ];
Please login to merge, or discard this patch.
brighty/system/ThirdParty/Kint/Zval/Representation/ColorRepresentation.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -221,7 +221,7 @@
 block discarded – undo
221 221
                 $hex_alpha = \sprintf('%02x%02x%02x%02x', $this->r, $this->g, $this->b, \round($this->a * 0xFF));
222 222
 
223 223
                 return \array_search($hex, self::$color_map, true) ?: \array_search($hex_alpha, self::$color_map, true);
224
-           case self::COLOR_HEX_3:
224
+            case self::COLOR_HEX_3:
225 225
                 if (0 === $this->r % 0x11 && 0 === $this->g % 0x11 && 0 === $this->b % 0x11) {
226 226
                     return \sprintf(
227 227
                         '#%1X%1X%1X',
Please login to merge, or discard this patch.
brighty/system/Database/SQLite3/Connection.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -146,8 +146,8 @@
 block discarded – undo
146 146
     protected function _listTables(bool $prefixLimit = false): string
147 147
     {
148 148
         return 'SELECT "NAME" FROM "SQLITE_MASTER" WHERE "TYPE" = \'table\''
149
-               . ' AND "NAME" NOT LIKE \'sqlite!_%\' ESCAPE \'!\''
150
-               . (($prefixLimit !== false && $this->DBPrefix !== '')
149
+                . ' AND "NAME" NOT LIKE \'sqlite!_%\' ESCAPE \'!\''
150
+                . (($prefixLimit !== false && $this->DBPrefix !== '')
151 151
                     ? ' AND "NAME" LIKE \'' . $this->escapeLikeString($this->DBPrefix) . '%\' ' . sprintf($this->likeEscapeStr, $this->likeEscapeChar)
152 152
                     : '');
153 153
     }
Please login to merge, or discard this patch.
brighty/vendor/phpunit/phpunit/src/Framework/MockObject/Matcher.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -116,8 +116,8 @@  discard block
 block discarded – undo
116 116
 
117 117
         if ($this->afterMatchBuilderId !== null) {
118 118
             $matcher = $invocation->getObject()
119
-                                  ->__phpunit_getInvocationHandler()
120
-                                  ->lookupMatcher($this->afterMatchBuilderId);
119
+                                    ->__phpunit_getInvocationHandler()
120
+                                    ->lookupMatcher($this->afterMatchBuilderId);
121 121
 
122 122
             if (!$matcher) {
123 123
                 throw new MatchBuilderNotFoundException($this->afterMatchBuilderId);
@@ -166,8 +166,8 @@  discard block
 block discarded – undo
166 166
     {
167 167
         if ($this->afterMatchBuilderId !== null) {
168 168
             $matcher = $invocation->getObject()
169
-                                  ->__phpunit_getInvocationHandler()
170
-                                  ->lookupMatcher($this->afterMatchBuilderId);
169
+                                    ->__phpunit_getInvocationHandler()
170
+                                    ->lookupMatcher($this->afterMatchBuilderId);
171 171
 
172 172
             if (!$matcher) {
173 173
                 throw new MatchBuilderNotFoundException($this->afterMatchBuilderId);
Please login to merge, or discard this patch.
brighty/vendor/phpunit/phpunit/src/Framework/MockObject/Generator.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1015,7 +1015,7 @@
 block discarded – undo
1015 1015
         if ($className === '') {
1016 1016
             do {
1017 1017
                 $className = $prefix . $type . '_' .
1018
-                             substr(md5((string) mt_rand()), 0, 8);
1018
+                                substr(md5((string) mt_rand()), 0, 8);
1019 1019
             } while (class_exists($className, false));
1020 1020
         }
1021 1021
 
Please login to merge, or discard this patch.
vendor/phpunit/phpunit/src/Framework/MockObject/Stub/ReturnCallback.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,6 +54,6 @@
 block discarded – undo
54 54
         }
55 55
 
56 56
         return 'return result of user defined callback ' . $this->callback .
57
-               ' with the passed arguments';
57
+                ' with the passed arguments';
58 58
     }
59 59
 }
Please login to merge, or discard this patch.
brighty/vendor/phpstan/phpstan/bootstrap.php 1 patch
Indentation   +49 added lines, -49 removed lines patch added patch discarded remove patch
@@ -6,55 +6,55 @@
 block discarded – undo
6 6
 
7 7
 final class PharAutoloader
8 8
 {
9
-	/** @var ClassLoader */
10
-	private static $composerAutoloader;
11
-
12
-	final public static function loadClass(string $class): void {
13
-		if (!extension_loaded('phar') || defined('__PHPSTAN_RUNNING__')) {
14
-			return;
15
-		}
16
-
17
-		if (strpos($class, '_PHPStan_') === 0) {
18
-			if (!in_array('phar', stream_get_wrappers(), true)) {
19
-				throw new \Exception('Phar wrapper is not registered. Please review your php.ini settings.');
20
-			}
21
-
22
-			if (self::$composerAutoloader === null) {
23
-				self::$composerAutoloader = require 'phar://' . __DIR__ . '/phpstan.phar/vendor/autoload.php';
24
-				require_once 'phar://' . __DIR__ . '/phpstan.phar/vendor/clue/block-react/src/functions_include.php';
25
-				require_once 'phar://' . __DIR__ . '/phpstan.phar/vendor/jetbrains/phpstorm-stubs/PhpStormStubsMap.php';
26
-				require_once 'phar://' . __DIR__ . '/phpstan.phar/vendor/react/promise-stream/src/functions_include.php';
27
-				require_once 'phar://' . __DIR__ . '/phpstan.phar/vendor/react/promise-timer/src/functions_include.php';
28
-				require_once 'phar://' . __DIR__ . '/phpstan.phar/vendor/react/promise/src/functions_include.php';
29
-				require_once 'phar://' . __DIR__ . '/phpstan.phar/vendor/ringcentral/psr7/src/functions_include.php';
30
-			}
31
-			self::$composerAutoloader->loadClass($class);
32
-
33
-			return;
34
-		}
35
-		if (strpos($class, 'PHPStan\\') !== 0 || strpos($class, 'PHPStan\\PhpDocParser\\') === 0) {
36
-			return;
37
-		}
38
-
39
-		if (!in_array('phar', stream_get_wrappers(), true)) {
40
-			throw new \Exception('Phar wrapper is not registered. Please review your php.ini settings.');
41
-		}
42
-
43
-		$filename = str_replace('\\', DIRECTORY_SEPARATOR, $class);
44
-		if (strpos($class, 'PHPStan\\BetterReflection\\') === 0) {
45
-			$filename = substr($filename, strlen('PHPStan\\BetterReflection\\'));
46
-			$filepath = 'phar://' . __DIR__ . '/phpstan.phar/vendor/ondrejmirtes/better-reflection/src/' . $filename . '.php';
47
-		} else {
48
-			$filename = substr($filename, strlen('PHPStan\\'));
49
-			$filepath = 'phar://' . __DIR__ . '/phpstan.phar/src/' . $filename . '.php';
50
-		}
51
-
52
-		if (!file_exists($filepath)) {
53
-			return;
54
-		}
55
-
56
-		require $filepath;
57
-	}
9
+    /** @var ClassLoader */
10
+    private static $composerAutoloader;
11
+
12
+    final public static function loadClass(string $class): void {
13
+        if (!extension_loaded('phar') || defined('__PHPSTAN_RUNNING__')) {
14
+            return;
15
+        }
16
+
17
+        if (strpos($class, '_PHPStan_') === 0) {
18
+            if (!in_array('phar', stream_get_wrappers(), true)) {
19
+                throw new \Exception('Phar wrapper is not registered. Please review your php.ini settings.');
20
+            }
21
+
22
+            if (self::$composerAutoloader === null) {
23
+                self::$composerAutoloader = require 'phar://' . __DIR__ . '/phpstan.phar/vendor/autoload.php';
24
+                require_once 'phar://' . __DIR__ . '/phpstan.phar/vendor/clue/block-react/src/functions_include.php';
25
+                require_once 'phar://' . __DIR__ . '/phpstan.phar/vendor/jetbrains/phpstorm-stubs/PhpStormStubsMap.php';
26
+                require_once 'phar://' . __DIR__ . '/phpstan.phar/vendor/react/promise-stream/src/functions_include.php';
27
+                require_once 'phar://' . __DIR__ . '/phpstan.phar/vendor/react/promise-timer/src/functions_include.php';
28
+                require_once 'phar://' . __DIR__ . '/phpstan.phar/vendor/react/promise/src/functions_include.php';
29
+                require_once 'phar://' . __DIR__ . '/phpstan.phar/vendor/ringcentral/psr7/src/functions_include.php';
30
+            }
31
+            self::$composerAutoloader->loadClass($class);
32
+
33
+            return;
34
+        }
35
+        if (strpos($class, 'PHPStan\\') !== 0 || strpos($class, 'PHPStan\\PhpDocParser\\') === 0) {
36
+            return;
37
+        }
38
+
39
+        if (!in_array('phar', stream_get_wrappers(), true)) {
40
+            throw new \Exception('Phar wrapper is not registered. Please review your php.ini settings.');
41
+        }
42
+
43
+        $filename = str_replace('\\', DIRECTORY_SEPARATOR, $class);
44
+        if (strpos($class, 'PHPStan\\BetterReflection\\') === 0) {
45
+            $filename = substr($filename, strlen('PHPStan\\BetterReflection\\'));
46
+            $filepath = 'phar://' . __DIR__ . '/phpstan.phar/vendor/ondrejmirtes/better-reflection/src/' . $filename . '.php';
47
+        } else {
48
+            $filename = substr($filename, strlen('PHPStan\\'));
49
+            $filepath = 'phar://' . __DIR__ . '/phpstan.phar/src/' . $filename . '.php';
50
+        }
51
+
52
+        if (!file_exists($filepath)) {
53
+            return;
54
+        }
55
+
56
+        require $filepath;
57
+    }
58 58
 }
59 59
 
60 60
 spl_autoload_register([PharAutoloader::class, 'loadClass']);
Please login to merge, or discard this patch.
friendsofphp/php-cs-fixer/src/Fixer/Operator/TernaryOperatorSpacesFixer.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -170,7 +170,7 @@
 block discarded – undo
170 170
     {
171 171
         if ($tokens[$index]->isWhitespace()) {
172 172
             if (
173
-                  !str_contains($tokens[$index]->getContent(), "\n")
173
+                    !str_contains($tokens[$index]->getContent(), "\n")
174 174
                 && !$tokens[$index - 1]->isComment()
175 175
             ) {
176 176
                 $tokens[$index] = new Token([T_WHITESPACE, ' ']);
Please login to merge, or discard this patch.
friendsofphp/php-cs-fixer/src/Fixer/FunctionNotation/VoidReturnFixer.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -187,7 +187,7 @@
 block discarded – undo
187 187
             if (
188 188
                 // skip anonymous classes
189 189
                 ($tokens[$i]->isGivenKind(T_CLASS) && $tokensAnalyzer->isAnonymousClass($i))
190
-                 // skip lambda functions
190
+                    // skip lambda functions
191 191
                 || ($tokens[$i]->isGivenKind(T_FUNCTION) && $tokensAnalyzer->isLambda($i))
192 192
             ) {
193 193
                 $i = $tokens->getNextTokenOfKind($i, ['{']);
Please login to merge, or discard this patch.