Skip to content

Commit 4440690

Browse files
committed
Fix codes
1 parent 22938ed commit 4440690

File tree

18 files changed

+16
-22
lines changed

18 files changed

+16
-22
lines changed

src/Compiler/Lang/Assembler/ClassAssembler.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
use PHPJava\Compiler\Lang\Assembler\Store\Store;
1717
use PHPJava\Compiler\Lang\Assembler\Traits\Bindable;
1818
use PHPJava\Compiler\Lang\Assembler\Traits\Enhancer\ConstantPoolEnhanceable;
19-
use PHPJava\Compiler\Lang\Assembler\Traits\ImportManageable;
2019
use PHPJava\Compiler\Lang\Assembler\Traits\OperationManageable;
2120
use PHPJava\Compiler\Lang\Assembler\Traits\ParameterParseable;
2221
use PHPJava\Compiler\Lang\Assembler\Traits\StaticInitializerAssignable;

src/Compiler/Lang/Assembler/MethodAssembler.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
use PHPJava\Compiler\Lang\Assembler\Traits\Enhancer\ConstantPoolEnhanceable;
1515
use PHPJava\Compiler\Lang\Assembler\Traits\Enhancer\Operation\LocalVariableAssignable;
1616
use PHPJava\Compiler\Lang\Assembler\Traits\Enhancer\Operation\LocalVariableLoadable;
17-
use PHPJava\Compiler\Lang\Assembler\Traits\ImportManageable;
1817
use PHPJava\Compiler\Lang\Assembler\Traits\OperationManageable;
1918
use PHPJava\Compiler\Lang\Assembler\Traits\ParameterParseable;
2019
use PHPJava\Kernel\Maps\OpCode;

src/Compiler/Lang/Assembler/Processors/StatementProcessor.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
use PHPJava\Compiler\Lang\Assembler\Statements\IfStatementAssembler;
1515
use PHPJava\Compiler\Lang\Assembler\Structure\Accessor\Imports;
1616
use PHPJava\Compiler\Lang\Assembler\Traits\Bindable;
17-
use PHPJava\Compiler\Lang\Assembler\Traits\ImportManageable;
1817
use PHPJava\Compiler\Lang\Assembler\Traits\NodeExtractable;
1918
use PHPJava\Compiler\Lang\Assembler\Traits\OperationManageable;
2019
use PHPJava\Exceptions\AssembleStructureException;

src/Compiler/Lang/Assembler/Structure/Accessor/Imports.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,11 @@ public function resolvePath(string $path): string
4040

4141
protected function compareAtFirst(string $path, string $target): bool
4242
{
43-
return !!preg_match('/\A' . preg_quote($path, '/') . '/', $target);
43+
return (bool) preg_match('/\A' . preg_quote($path, '/') . '/', $target);
4444
}
4545

4646
protected function compareAtLast(string $path, string $target): bool
4747
{
48-
return !!preg_match('/' . preg_quote($path, '/') . '\z/', $target);
48+
return (bool) preg_match('/' . preg_quote($path, '/') . '\z/', $target);
4949
}
5050
}

src/Compiler/Lang/Assembler/Traits/ImportManageable.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
use PHPJava\Compiler\Builder\Attributes\Architects\Operation;
66
use PHPJava\Compiler\Builder\Finder\ConstantPoolFinder;
77
use PHPJava\Compiler\Lang\Assembler\Enhancer\ConstantPoolEnhancer;
8-
use PHPJava\Compiler\Lang\Assembler\EntryPointClassAssembler;
98
use PHPJava\Compiler\Lang\Assembler\Structure\Accessor\Imports;
109
use PHPJava\Exceptions\NotFoundImportException;
1110

src/Compiler/Lang/Assembler/Traits/ParameterParseable.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public function parseParameterFromNode(Node $node): array
5252
foreach ($documentBlock->getTagsByName('param') as $documentParameter) {
5353
/**
5454
* @var \phpDocumentor\Reflection\DocBlock\Tags\Param $documentParameter
55-
* @var \phpDocumentor\Reflection\Types\Object_|null $typeObject
55+
* @var null|\phpDocumentor\Reflection\Types\Object_ $typeObject
5656
*/
5757
$typeObject = $documentParameter
5858
->getType();

src/Kernel/Mnemonics/_if_acmpne.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
use PHPJava\Core\JavaClass;
66
use PHPJava\Kernel\Structures\Utf8Info;
7-
use PHPJava\Packages\java\lang\String_;
87

98
final class _if_acmpne extends AbstractOperationCode implements OperationCodeInterface
109
{

src/Kernel/Mnemonics/_ireturn.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
declare(strict_types=1);
33
namespace PHPJava\Kernel\Mnemonics;
44

5-
use PHPJava\Kernel\Types\Boolean_;
65
use PHPJava\Kernel\Types\Byte_;
76
use PHPJava\Kernel\Types\Char_;
87
use PHPJava\Kernel\Types\Int_;

src/Kernel/Resolvers/TypeResolver.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@
1616
use PHPJava\Kernel\Types\Float_;
1717
use PHPJava\Kernel\Types\Int_;
1818
use PHPJava\Kernel\Types\Long_;
19-
use PHPJava\Kernel\Types\Short_;
20-
use PHPJava\Kernel\Types\Void_;
2119
use PHPJava\Kernel\Types\PrimitiveValueInterface;
20+
use PHPJava\Kernel\Types\Short_;
2221
use PHPJava\Kernel\Types\Type;
22+
use PHPJava\Kernel\Types\Void_;
2323
use PHPJava\Packages\java\lang\String_;
2424
use PHPJava\Utilities\Formatter;
2525

@@ -324,7 +324,7 @@ public static function getExtendedClasses(JavaClassInterface $javaClass, string
324324

325325
/**
326326
* @throws TypeException
327-
* @return Type|Collection
327+
* @return Collection|Type
328328
*/
329329
public static function convertPHPTypeToJavaType($value)
330330
{

src/Packages/java/io/PrintStream.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
use PHPJava\Kernel\Structures\Utf8Info;
1010
use PHPJava\Kernel\Types\Array_\Collection;
1111
use PHPJava\Kernel\Types\PrimitiveValueInterface;
12-
use PHPJava\Packages\java\lang\String_;
1312
use PHPJava\Packages\java\lang\NullPointerException;
13+
use PHPJava\Packages\java\lang\String_;
1414

1515
// use PHPJava\Packages\java\io\Closeable;
1616
// use PHPJava\Packages\java\lang\Appendable;

0 commit comments

Comments
 (0)