PHP 8.2.31
Preview: LanguageConstructSpacingUnitTest.1.inc Size: 1.81 KB
//opt/cpanel/ea-wappspector/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/LanguageConstructSpacingUnitTest.1.inc

<?php
echo $blah;
echo    $blah;
echo($blah);
echo$blah;

print $blah;
print     $blah;
print($blah);
print$blah;

include $blah;
include     $blah;
include($blah);
include$blah;

include_once $blah;
include_once     $blah;
include_once($blah);
include_once$blah;

require $blah;
require     $blah;
require($blah);
require$blah;

require_once $blah;
require_once     $blah;
require_once($blah);
require_once$blah;

$obj = new MyClass();
$obj = new    MyClass();

$obj = new $className();
$obj = new$className();

yield $blah;
yield   $blah;
yield$blah;

yield from $test();
yield FROM   $test();
YIELD   from   $test();
yield   from $test();
yield
from $test();
yield


From $test();
yield FROM$test();

throw new Exception();
throw  new Exception();
throw new   Exception();
throw   new   Exception();

throw $exception;
throw$exception;

namespace MyClass;
namespace    MyClass;
namespace MyNamespace\MyClass;
namespace    MyNamespace\MyClass;

// Namespace operator, not language construct.
namespace\MyNamespace\MyClass;
namespace \MyNamespace\MyClass;
namespace   /*comment*/  \MyNamespace\MyClass;

use MyClass;
use    MyClass;
use MyNamespace\MyClass;
use    MyNamespace\MyClass;
use \MyNamespace\MyClass;
use    \MyNamespace\MyClass;

return;
return $blah;
return   $blah;
return($blah);
return$blah;

return	$tab;
return
$newLine;

// The following line must have a single space at the end (after return)
return 
$spaceAndNewLine;

// Related to issue #529. These should not be auto-fixed as we don't know what to do with the comment.
yield    /*comment*/    from $test();
yield
    # comment
    from $test();
yield
    // phpcs:ignore Stnd.Category.SniffName
    from $test();

// Closure use should be ignored. These are subject to their own rules.
$cl = function() use ($b) {};
$cl = function() use($b) {};

goto MyName;
goto    MyName;

Directory Contents

Dirs: 0 × Files: 52

Name Size Perms Modified Actions
4.52 KB lrw-r--r-- 2025-11-04 16:30:35
Edit Download
4.44 KB lrw-r--r-- 2025-11-04 16:30:35
Edit Download
122 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
2.74 KB lrw-r--r-- 2025-11-04 16:30:35
Edit Download
2.32 KB lrw-r--r-- 2025-11-04 16:30:35
Edit Download
2.20 KB lrw-r--r-- 2025-11-04 16:30:35
Edit Download
2.32 KB lrw-r--r-- 2025-11-04 16:30:35
Edit Download
2.20 KB lrw-r--r-- 2025-11-04 16:30:35
Edit Download
202 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
175 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
125 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
61 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
58 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
72 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
69 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
3.72 KB lrw-r--r-- 2025-11-04 16:30:35
Edit Download
1.70 KB lrw-r--r-- 2025-11-04 16:30:35
Edit Download
1.86 KB lrw-r--r-- 2025-11-04 16:30:35
Edit Download
202 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
253 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
83 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
62 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
68 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
74 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
79 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
3.84 KB lrw-r--r-- 2025-11-04 16:30:35
Edit Download
233 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
215 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
1.46 KB lrw-r--r-- 2025-11-04 16:30:35
Edit Download
548 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
523 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
141 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
127 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
2.17 KB lrw-r--r-- 2025-11-04 16:30:35
Edit Download
1.81 KB lrw-r--r-- 2025-11-04 16:30:35
Edit Download
1.75 KB lrw-r--r-- 2025-11-04 16:30:35
Edit Download
98 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
2.61 KB lrw-r--r-- 2025-11-04 16:30:35
Edit Download
26.40 KB lrw-r--r-- 2025-11-04 16:30:35
Edit Download
26.52 KB lrw-r--r-- 2025-11-04 16:30:35
Edit Download
3.84 KB lrw-r--r-- 2025-11-04 16:30:35
Edit Download
3.88 KB lrw-r--r-- 2025-11-04 16:30:35
Edit Download
19.64 KB lrw-r--r-- 2025-11-04 16:30:35
Edit Download
19.62 KB lrw-r--r-- 2025-11-04 16:30:35
Edit Download
563 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
556 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
27 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
5.32 KB lrw-r--r-- 2025-11-04 16:30:35
Edit Download
1.45 KB lrw-r--r-- 2025-11-04 16:30:35
Edit Download
1.42 KB lrw-r--r-- 2025-11-04 16:30:35
Edit Download
109 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
1.87 KB lrw-r--r-- 2025-11-04 16:30:35
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).