diff options
| author | nsfisis <nsfisis@gmail.com> | 2025-07-30 07:32:58 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2025-07-30 07:32:58 +0900 |
| commit | 7f3246e4582a488327f2a9da01111db1a4a32b91 (patch) | |
| tree | c37f919e41949d1b482aaae4bedbdd2f65b5baef /src/WebAssembly/Structure/Instructions/Instrs/Control | |
| parent | 6f18d4c860f16f094e9b3dececeb47be2a94d585 (diff) | |
| download | php-waddiwasi-7f3246e4582a488327f2a9da01111db1a4a32b91.tar.gz php-waddiwasi-7f3246e4582a488327f2a9da01111db1a4a32b91.tar.zst php-waddiwasi-7f3246e4582a488327f2a9da01111db1a4a32b91.zip | |
chore: enable common ruleset of ecs
Diffstat (limited to 'src/WebAssembly/Structure/Instructions/Instrs/Control')
16 files changed, 21 insertions, 19 deletions
diff --git a/src/WebAssembly/Structure/Instructions/Instrs/Control/Block.php b/src/WebAssembly/Structure/Instructions/Instrs/Control/Block.php index af2c97f..dad17d1 100644 --- a/src/WebAssembly/Structure/Instructions/Instrs/Control/Block.php +++ b/src/WebAssembly/Structure/Instructions/Instrs/Control/Block.php @@ -19,6 +19,6 @@ final readonly class Block extends Instr public static function opName(): string { - return "block"; + return 'block'; } } diff --git a/src/WebAssembly/Structure/Instructions/Instrs/Control/BlockType.php b/src/WebAssembly/Structure/Instructions/Instrs/Control/BlockType.php index 1188625..d52a74d 100644 --- a/src/WebAssembly/Structure/Instructions/Instrs/Control/BlockType.php +++ b/src/WebAssembly/Structure/Instructions/Instrs/Control/BlockType.php @@ -20,6 +20,6 @@ abstract readonly class BlockType public static function opName(): string { - return "hoge"; + return 'hoge'; } } diff --git a/src/WebAssembly/Structure/Instructions/Instrs/Control/BlockTypes/TypeIdx.php b/src/WebAssembly/Structure/Instructions/Instrs/Control/BlockTypes/TypeIdx.php index 2ed694b..4ce2781 100644 --- a/src/WebAssembly/Structure/Instructions/Instrs/Control/BlockTypes/TypeIdx.php +++ b/src/WebAssembly/Structure/Instructions/Instrs/Control/BlockTypes/TypeIdx.php @@ -8,7 +8,8 @@ use Nsfisis\Waddiwasi\WebAssembly\Structure\Instructions\Instrs\Control\BlockTyp final readonly class TypeIdx extends BlockType { - protected function __construct(public int $inner) - { + protected function __construct( + public int $inner + ) { } } diff --git a/src/WebAssembly/Structure/Instructions/Instrs/Control/BlockTypes/ValType.php b/src/WebAssembly/Structure/Instructions/Instrs/Control/BlockTypes/ValType.php index e7caa3f..2142ca3 100644 --- a/src/WebAssembly/Structure/Instructions/Instrs/Control/BlockTypes/ValType.php +++ b/src/WebAssembly/Structure/Instructions/Instrs/Control/BlockTypes/ValType.php @@ -9,12 +9,13 @@ use Nsfisis\Waddiwasi\WebAssembly\Structure\Types\ValType as OrigValType; final readonly class ValType extends BlockType { - protected function __construct(public ?OrigValType $inner) - { + protected function __construct( + public ?OrigValType $inner + ) { } public static function opName(): string { - return "hoge"; + return 'hoge'; } } diff --git a/src/WebAssembly/Structure/Instructions/Instrs/Control/Br.php b/src/WebAssembly/Structure/Instructions/Instrs/Control/Br.php index 6235a36..e0a34ca 100644 --- a/src/WebAssembly/Structure/Instructions/Instrs/Control/Br.php +++ b/src/WebAssembly/Structure/Instructions/Instrs/Control/Br.php @@ -15,6 +15,6 @@ final readonly class Br extends Instr public static function opName(): string { - return "br"; + return 'br'; } } diff --git a/src/WebAssembly/Structure/Instructions/Instrs/Control/BrIf.php b/src/WebAssembly/Structure/Instructions/Instrs/Control/BrIf.php index 7c8a896..2078f60 100644 --- a/src/WebAssembly/Structure/Instructions/Instrs/Control/BrIf.php +++ b/src/WebAssembly/Structure/Instructions/Instrs/Control/BrIf.php @@ -15,6 +15,6 @@ final readonly class BrIf extends Instr public static function opName(): string { - return "br_if"; + return 'br_if'; } } diff --git a/src/WebAssembly/Structure/Instructions/Instrs/Control/BrTable.php b/src/WebAssembly/Structure/Instructions/Instrs/Control/BrTable.php index 2841814..d4c6ab5 100644 --- a/src/WebAssembly/Structure/Instructions/Instrs/Control/BrTable.php +++ b/src/WebAssembly/Structure/Instructions/Instrs/Control/BrTable.php @@ -19,6 +19,6 @@ final readonly class BrTable extends Instr public static function opName(): string { - return "br_table"; + return 'br_table'; } } diff --git a/src/WebAssembly/Structure/Instructions/Instrs/Control/Call.php b/src/WebAssembly/Structure/Instructions/Instrs/Control/Call.php index 461f561..1cbfa11 100644 --- a/src/WebAssembly/Structure/Instructions/Instrs/Control/Call.php +++ b/src/WebAssembly/Structure/Instructions/Instrs/Control/Call.php @@ -15,6 +15,6 @@ final readonly class Call extends Instr public static function opName(): string { - return "call"; + return 'call'; } } diff --git a/src/WebAssembly/Structure/Instructions/Instrs/Control/CallIndirect.php b/src/WebAssembly/Structure/Instructions/Instrs/Control/CallIndirect.php index 7017723..c187e9c 100644 --- a/src/WebAssembly/Structure/Instructions/Instrs/Control/CallIndirect.php +++ b/src/WebAssembly/Structure/Instructions/Instrs/Control/CallIndirect.php @@ -16,6 +16,6 @@ final readonly class CallIndirect extends Instr public static function opName(): string { - return "call_indirect"; + return 'call_indirect'; } } diff --git a/src/WebAssembly/Structure/Instructions/Instrs/Control/Else_.php b/src/WebAssembly/Structure/Instructions/Instrs/Control/Else_.php index 1407543..eeded56 100644 --- a/src/WebAssembly/Structure/Instructions/Instrs/Control/Else_.php +++ b/src/WebAssembly/Structure/Instructions/Instrs/Control/Else_.php @@ -10,6 +10,6 @@ final readonly class Else_ extends Instr { public static function opName(): string { - return "else"; + return 'else'; } } diff --git a/src/WebAssembly/Structure/Instructions/Instrs/Control/End.php b/src/WebAssembly/Structure/Instructions/Instrs/Control/End.php index 5bdb8b9..f474677 100644 --- a/src/WebAssembly/Structure/Instructions/Instrs/Control/End.php +++ b/src/WebAssembly/Structure/Instructions/Instrs/Control/End.php @@ -10,6 +10,6 @@ final readonly class End extends Instr { public static function opName(): string { - return "end"; + return 'end'; } } diff --git a/src/WebAssembly/Structure/Instructions/Instrs/Control/If_.php b/src/WebAssembly/Structure/Instructions/Instrs/Control/If_.php index 8afdc8b..0cfb4aa 100644 --- a/src/WebAssembly/Structure/Instructions/Instrs/Control/If_.php +++ b/src/WebAssembly/Structure/Instructions/Instrs/Control/If_.php @@ -21,6 +21,6 @@ final readonly class If_ extends Instr public static function opName(): string { - return "if"; + return 'if'; } } diff --git a/src/WebAssembly/Structure/Instructions/Instrs/Control/Loop.php b/src/WebAssembly/Structure/Instructions/Instrs/Control/Loop.php index ca48ca1..43b8f3a 100644 --- a/src/WebAssembly/Structure/Instructions/Instrs/Control/Loop.php +++ b/src/WebAssembly/Structure/Instructions/Instrs/Control/Loop.php @@ -19,6 +19,6 @@ final readonly class Loop extends Instr public static function opName(): string { - return "loop"; + return 'loop'; } } diff --git a/src/WebAssembly/Structure/Instructions/Instrs/Control/Nop.php b/src/WebAssembly/Structure/Instructions/Instrs/Control/Nop.php index 50a3773..f3668f9 100644 --- a/src/WebAssembly/Structure/Instructions/Instrs/Control/Nop.php +++ b/src/WebAssembly/Structure/Instructions/Instrs/Control/Nop.php @@ -10,6 +10,6 @@ final readonly class Nop extends Instr { public static function opName(): string { - return "nop"; + return 'nop'; } } diff --git a/src/WebAssembly/Structure/Instructions/Instrs/Control/Return_.php b/src/WebAssembly/Structure/Instructions/Instrs/Control/Return_.php index b80fdfe..ef16421 100644 --- a/src/WebAssembly/Structure/Instructions/Instrs/Control/Return_.php +++ b/src/WebAssembly/Structure/Instructions/Instrs/Control/Return_.php @@ -10,6 +10,6 @@ final readonly class Return_ extends Instr { public static function opName(): string { - return "return"; + return 'return'; } } diff --git a/src/WebAssembly/Structure/Instructions/Instrs/Control/Unreachable.php b/src/WebAssembly/Structure/Instructions/Instrs/Control/Unreachable.php index e43ade8..cf3e31b 100644 --- a/src/WebAssembly/Structure/Instructions/Instrs/Control/Unreachable.php +++ b/src/WebAssembly/Structure/Instructions/Instrs/Control/Unreachable.php @@ -10,6 +10,6 @@ final readonly class Unreachable extends Instr { public static function opName(): string { - return "unreachable"; + return 'unreachable'; } } |
