REDROOM
PHP 8.2.31
Path:
Logout
Edit File
Size: 1.33 KB
Close
//opt/cpanel/ea-wappspector/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Operators/OperatorSpacingUnitTest.1.inc
Text
Base64
<?php if ($a ===$b) { $foo = $bar ??$a?? $b; } elseif ($a> $b) { $variable =$foo ? 'foo' :'bar'; $variable.='text'.'text'; } $foo+= $a&$b; $foo = $a|$b; $foo =$a^$b; $foo = ~$a; $foo *=$a<<$b; $foo = $a>>$b; function foo(&$a,& $b) {} $foo = $a and$b; $foo = $a or $b; $foo = $a xor$b; $foo = !$a; $foo = $a&&$b; $foo = $a||$b; $foo = $a instanceof Foo; $foo = $a instanceof$b; $foo .= 'hi' .= 'there'; $foo .= 'hi' .= 'there'; $foo .= 'hi' // comment .= 'there'; $foo/*comment*/=/*comment*/$a/*comment*/and/*comment*/$b; $foo .=//comment 'string' .=/*comment*/ 'string'; $foo = $foo ?: 'bar'; $foo = $foo?:'bar'; try { } catch (ExceptionType1|ExceptionType2 $e) { } if (strpos($tokenContent, 'b"') === 0 && substr($tokenContent, -1) === '"') {} $oldConstructorPos = +1; return -$content; function name($a = -1) {} $a =& $ref; $a = [ 'a' => &$something ]; $fn = fn(array &$one) => 1; $fn = fn(array & $one) => 1; $fn = static fn(DateTime $a, DateTime $b): int => -($a->getTimestamp() <=> $b->getTimestamp()); function issue3267(string|int ...$values) {} function setDefault(#[ImportValue( constraints: [ [ Assert\Type::class, ['type' => 'bool'], ], ] )] ?bool $value = null): void { // Do something } declare(strict_types=1);
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 5
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
OperatorSpacingUnitTest.1.inc
1.33 KB
lrw-r--r--
2025-11-04 16:30:35
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
OperatorSpacingUnitTest.1.inc.fixed
1.37 KB
lrw-r--r--
2025-11-04 16:30:35
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
OperatorSpacingUnitTest.2.inc
105 B
lrw-r--r--
2025-11-04 16:30:35
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
OperatorSpacingUnitTest.3.inc
322 B
lrw-r--r--
2025-11-04 16:30:35
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
OperatorSpacingUnitTest.php
2.03 KB
lrw-r--r--
2025-11-04 16:30:35
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).