1 | <?php |
||||
2 | |||||
3 | /** |
||||
4 | * Copyright © 2017-present Spryker Systems GmbH. All rights reserved. |
||||
5 | * Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file. |
||||
6 | */ |
||||
7 | |||||
8 | use PHP_CodeSniffer\Config; |
||||
9 | |||||
10 | define('APPLICATION_ROOT_DIR', __DIR__); |
||||
11 | define('APPLICATION_VENDOR_DIR', APPLICATION_ROOT_DIR . '/vendor'); |
||||
12 | define('APPLICATION_SOURCE_DIR', APPLICATION_ROOT_DIR . '/src'); |
||||
13 | define('APPLICATION', ''); |
||||
14 | define('APPLICATION_ENV', ''); |
||||
15 | define('APPLICATION_STORE', ''); |
||||
16 | define('APPLICATION_CODE_BUCKET', ''); |
||||
17 | |||||
18 | require_once(__DIR__ . '/src/Generated/Client/Ide/AutoCompletion.php'); |
||||
19 | require_once(__DIR__ . '/src/Generated/Service/Ide/AutoCompletion.php'); |
||||
20 | require_once(__DIR__ . '/src/Generated/Yves/Ide/AutoCompletion.php'); |
||||
21 | require_once(__DIR__ . '/src/Generated/Zed/Ide/AutoCompletion.php'); |
||||
22 | |||||
23 | $codeceptionShimFilePath = __DIR__ . '/vendor/codeception/codeception/shim.php'; |
||||
24 | if (file_exists($codeceptionShimFilePath)) { |
||||
25 | require_once($codeceptionShimFilePath); |
||||
26 | } |
||||
27 | |||||
28 | $manualAutoload = APPLICATION_VENDOR_DIR . '/squizlabs/php_codesniffer/autoload.php'; |
||||
29 | if (!class_exists(Config::class) && file_exists($manualAutoload)) { |
||||
30 | require $manualAutoload; |
||||
31 | } |
||||
32 | |||||
33 | // Shim to not throw "Function opcache_invalidate not found" error when opcache is not enabled |
||||
34 | if (!function_exists('opcache_invalidate')) { |
||||
35 | /** |
||||
36 | * @param string $script |
||||
37 | * @param bool $force |
||||
38 | * |
||||
39 | * @return void |
||||
40 | */ |
||||
41 | function opcache_invalidate($script, $force = false): void |
||||
0 ignored issues
–
show
The parameter
$force is not used and could be removed.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
This check looks for parameters that have been defined for a function or method, but which are not used in the method body. ![]() |
|||||
42 | { |
||||
43 | } |
||||
44 | } |
||||
45 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.