Skip to content

Commit

Permalink
fixing imports phpcs
Browse files Browse the repository at this point in the history
  • Loading branch information
niden committed Nov 27, 2023
1 parent c6c89d0 commit 8cddbbd
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 20 deletions.
12 changes: 6 additions & 6 deletions src/Class/Definition/Definition.php
Original file line number Diff line number Diff line change
Expand Up @@ -903,12 +903,12 @@ public function getExternalHeader(): string
$parts = explode('\\', $this->namespace);

return 'ext/' . strtolower(
$parts[0] . DIRECTORY_SEPARATOR . str_replace(
'\\',
DIRECTORY_SEPARATOR,
$this->namespace
) . DIRECTORY_SEPARATOR . $this->name
) . '.zep';
$parts[0] . DIRECTORY_SEPARATOR . str_replace(
'\\',
DIRECTORY_SEPARATOR,
$this->namespace
) . DIRECTORY_SEPARATOR . $this->name
) . '.zep';
}

/**
Expand Down
6 changes: 3 additions & 3 deletions src/Class/Entry.php
Original file line number Diff line number Diff line change
Expand Up @@ -148,9 +148,9 @@ public function isInternal(): bool
private function isInternalClass(string $className): bool
{
$this->isInternal = preg_match(
'/^' . $className . '/',
$this->compilationContext->classDefinition->getNamespace()
) === 1;
'/^' . $className . '/',
$this->compilationContext->classDefinition->getNamespace()
) === 1;

return $this->isInternal;
}
Expand Down
10 changes: 5 additions & 5 deletions src/Class/Method/Method.php
Original file line number Diff line number Diff line change
Expand Up @@ -1167,11 +1167,11 @@ public function compile(CompilationContext $compilationContext): void
*/
$targetVar = $compilationContext->symbolTable->getVariableForWrite($name, $compilationContext);
$initCode .= "\t" . $compilationContext->backend->ifVariableValueUndefined(
$targetVar,
$compilationContext,
false,
false
) . PHP_EOL;
$targetVar,
$compilationContext,
false,
false
) . PHP_EOL;

if ($targetVar->isDoublePointer() && isset($substituteVars[$parameter['name']])) {
$substituteVar = $substituteVars[$parameter['name']];
Expand Down
1 change: 0 additions & 1 deletion src/CompilerFile.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
use function filemtime;
use function implode;
use function is_array;

use function is_dir;
use function json_decode;
use function json_encode;
Expand Down
1 change: 0 additions & 1 deletion src/CompilerFileAnonymous.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@

use function count;
use function dirname;

use function explode;
use function file_exists;
use function file_put_contents;
Expand Down
1 change: 0 additions & 1 deletion src/Console/Command/InitCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
use function is_readable;
use function mkdir;
use function preg_match;

use function preg_replace;
use function sprintf;
use function strtolower;
Expand Down
1 change: 0 additions & 1 deletion src/Documentation.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
use function file_get_contents;
use function getcwd;
use function is_array;

use function is_dir;
use function is_writable;
use function json_decode;
Expand Down
1 change: 0 additions & 1 deletion src/FunctionCall.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
use function implode;
use function is_array;
use function is_object;

use function preg_match;
use function sprintf;
use function str_replace;
Expand Down
1 change: 0 additions & 1 deletion src/Stubs/Generator.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
use function file_put_contents;
use function implode;
use function in_array;

use function is_dir;
use function key;
use function mkdir;
Expand Down

0 comments on commit 8cddbbd

Please sign in to comment.