REDROOM
PHP 8.2.31
Path:
Logout
Edit File
Size: 2.66 KB
Close
//opt/cpanel/ea-wappspector/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/WhiteSpace/ObjectOperatorIndentUnitTest.inc.fixed
Text
Base64
<?php $someObject->someFunction("some", "parameter") ->someOtherFunc(23, 42) ->someOtherFunc2($one, $two) ->someOtherFunc3(23, 42) ->andAThirdFunction(); $someObject->someFunction("some", "parameter") ->someOtherFunc(23, 42); $someObject->someFunction("some", "parameter")->someOtherFunc(23, 42); $someObject->someFunction("some", "parameter") ->someOtherFunc(23, 42); func( $bar->foo() ) ->bar(); func( $bar->foo() ) ->bar( $bar->foo() ->bar() ->func() ); $object ->setBar($foo) ->setFoo($bar); if ($bar) { $object ->setBar($foo) ->setFoo($bar); } $response -> CompletedTrackDetails -> TrackDetails -> Events; $response -> CompletedTrackDetails -> TrackDetails -> Events; $response -> CompletedTrackDetails -> TrackDetails -> Events; $var = get_object( $foo->something() ->query() )->two() ->three(); $foo->one( $foo ->two() ); get_object()->one() ->two() ->three(); someclass::one() ->two() ->three(); (new someclass())->one() ->two() ->three(); // phpcs:set PEAR.WhiteSpace.ObjectOperatorIndent multilevel true $someObject ->startSomething() ->someOtherFunc(23, 42) ->endSomething() ->doSomething(23, 42) ->endEverything(); $rootNode ->one() ->two() ->three() ->four() ->five(); $rootNode ->one() ->two() ->three() ->four() ->five(); $rootNode ->one() ->two() ->three() ->four() ->five(); $rootNode ->one() ->two() ->three() ->four() ->five(); // phpcs:set PEAR.WhiteSpace.ObjectOperatorIndent multilevel false $object ?->setBar($foo) ?->setFoo($bar); $someObject?->someFunction("some", "parameter") ->someOtherFunc(23, 42) ?->someOtherFunc2($one, $two) ->someOtherFunc3(23, 42) ?->andAThirdFunction(); // phpcs:set PEAR.WhiteSpace.ObjectOperatorIndent multilevel true $object ?->setBar($foo) ?->setFoo($bar); $someObject?->someFunction("some", "parameter") ->someOtherFunc(23, 42) ?->someOtherFunc2($one, $two) ->someOtherFunc3(23, 42) ?->andAThirdFunction(); // phpcs:set PEAR.WhiteSpace.ObjectOperatorIndent multilevel false $someObject ->startSomething(paramName: $value) ->someOtherFunc(nameA: 23, nameB: 42) ->endSomething($value, name: $value) ->endEverything(); // Issue https://github.com/PHPCSStandards/PHP_CodeSniffer/issues/1154 $array = [ [ $item->one()->two(), ], $item->one() ->two(), $item->one() ->two(), ];
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 9
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
ObjectOperatorIndentUnitTest.inc
2.64 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
ObjectOperatorIndentUnitTest.inc.fixed
2.66 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
ObjectOperatorIndentUnitTest.php
1.89 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
ScopeClosingBraceUnitTest.inc
2.50 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
ScopeClosingBraceUnitTest.inc.fixed
2.53 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
ScopeClosingBraceUnitTest.php
1.73 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
ScopeIndentUnitTest.inc
5.80 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
ScopeIndentUnitTest.inc.fixed
5.82 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
ScopeIndentUnitTest.php
2.09 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).