OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
reader
/
API
/
vendor
/
zircote
/
swagger-php
/
tools
/
src
/
CSFixer
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
08/07/2024 04:34:56 AM
rwxr-xr-x
📄
AbstractFixer.php
501 bytes
08/07/2024 04:34:56 AM
rw-r--r--
📄
ScopedDeclareStrictTypesFixer.php
956 bytes
08/07/2024 04:34:56 AM
rw-r--r--
📄
ScopedLicenseFixer.php
1.33 KB
08/07/2024 04:34:56 AM
rw-r--r--
📄
ScopedTrait.php
656 bytes
08/07/2024 04:34:56 AM
rw-r--r--
Editing: ScopedTrait.php
Close
<?php declare(strict_types=1); /** * @license Apache 2.0 */ namespace OpenApi\Tools\CSFixer; trait ScopedTrait { protected array $scopes = []; public function supports(\SplFileInfo $file): bool { return parent::supports($file) && $this->isScoped($file); } public function scope(array $scopes): static { $this->scopes = $scopes; return $this; } public function isScoped(\SplFileInfo $file): bool { foreach ($this->scopes as $scope) { if (false !== strpos($file->getPath(), $scope)) { return true; } } return false; } }