PHP 8.2.31
Preview: EmbeddedPhpUnitTest.3.inc Size: 2.79 KB
/opt/cpanel/ea-wappspector/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/EmbeddedPhpUnitTest.3.inc

<?php
// This test case file MUST always start with a long open PHP tag set (with this comment) to prevent
// the tests running into the "first PHP open tag excepted" condition breaking the tests.
// Tests related to that "first PHP open tag excepted" condition should go in separate files.

// This test case file only deals with SHORT OPEN ECHO TAGS.
?>
<html>
<head>
<title><?= $title ?></title>
<script><?= $script; ?></script>
</head>
<body>
    <?=
        $body;
    ?>
    hello
    <?=
    $moreBody;
    ?>
    <?=  'one'; ?>
    <?=  'two';   ?>
    <?= 'three;' ?>
    <?= 'fourA'; echo 'fourB;'; ?>
    <?=  'fiveA'; echo 'fiveB;';   ?>

    <?=

        $start - $indent + $end;

    ?>
    <?=

    $blankLines;

        ?>

    <?=
    $closerNeedsOwnLine; ?>
    <?= $openerNeedsOwnLine;
    ?>

            <?=
        'hi';
            ?>

    <?=
'hi';
    ?>

    <a onClick="Javascript: set_hidden_field('<?= $link_offset - $num_per_page; ?>'); set_hidden_field('process_form', '0'); submit_form(); return false;">

            <strong><?=
            'foo';
            ?></strong>

</body>
</html>

<?= 'okay'; // Something. ?>
<?= 'too much space before close'; // Something.      ?>
<?= 'no space before close'; // Something.?>

<?= 'okay'; /* translators: okay */ ?>
<?= 'oops' /* translators: no space before close */?>
<?= 'oops' /* translators: too much space before close */      ?>

<?= 'okay'; // phpcs:ignore Standard.Category.Sniff -- reason. ?>
<?= 'too much space before close'; // phpcs:ignore Standard.Category.Sniff -- reason.    ?>
<?= 'no space before close'; // phpcs:ignore Standard.Category.Sniff -- reason.?>

<!--
Make sure the "content after opener" fixer does not leave trailing space behind.
-->
    <?=   $openerNeedsOwnLine;
    ?>

<!--
Make sure the "content before closer" fixer does not leave trailing space behind.
-->
    <?=
    $closerNeedsOwnLine;   ?>

<!--
Make sure the "content after closer" fixer does not leave trailing space behind.
-->
    <?=
    $closerNeedsOwnLine;
    ?>  </div>

    <?=
    $closerNeedsOwnLine;
    ?>  <?= $i; ?>

<!--
Safeguard fixing when there is no whitespace between the open tag and the contents.
-->
<?=$var ?>
    <?=$var;
    ?>

// Safeguard fixing when there is no whitespace between the close tag and the contents.
<?= $var?>
    <?=
    $var;?>

<!--
Make sure the fixer does not add stray new lines when there are consecutive PHP blocks.
-->
<?=
    'something'
    ?><?=
    'embedded';
    ?>  <?=
        'embedded';
    ?><?=
'embedded';
    ?>

<?php
// This test case file MUST always end with an unclosed long open PHP tag (with this comment) to prevent
// the tests running into the "last PHP closing tag excepted" condition breaking tests.
// Tests related to that "last PHP closing tag excepted" condition should go in separate files.

Directory Contents

Dirs: 0 × Files: 75

Name Size Perms Modified Actions
489 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
2.99 KB lrw-r--r-- 2025-11-04 16:30:35
Edit Download
1.96 KB lrw-r--r-- 2025-11-04 16:30:35
Edit Download
353 B 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
1.56 KB lrw-r--r-- 2025-11-04 16:30:35
Edit Download
1.56 KB lrw-r--r-- 2025-11-04 16:30:35
Edit Download
290 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
46 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
1.66 KB lrw-r--r-- 2025-11-04 16:30:35
Edit Download
2.82 KB lrw-r--r-- 2025-11-04 16:30:35
Edit Download
198 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
1.80 KB lrw-r--r-- 2025-11-04 16:30:35
Edit Download
772 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
1.97 KB lrw-r--r-- 2025-11-04 16:30:35
Edit Download
99 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
1.38 KB lrw-r--r-- 2025-11-04 16:30:35
Edit Download
6.68 KB lrw-r--r-- 2025-11-04 16:30:35
Edit Download
6.60 KB lrw-r--r-- 2025-11-04 16:30:35
Edit Download
298 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
290 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
2.79 KB lrw-r--r-- 2025-11-04 16:30:35
Edit Download
2.83 KB lrw-r--r-- 2025-11-04 16:30:35
Edit Download
308 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
299 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
1.67 KB lrw-r--r-- 2025-11-04 16:30:35
Edit Download
1.56 KB lrw-r--r-- 2025-11-04 16:30:35
Edit Download
392 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
377 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
450 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
448 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
515 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
511 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
478 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
472 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
470 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
464 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
435 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
510 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
504 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
497 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
533 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
520 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
600 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
589 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
587 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
583 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
580 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
576 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
1.38 KB lrw-r--r-- 2025-11-04 16:30:35
Edit Download
1.38 KB lrw-r--r-- 2025-11-04 16:30:35
Edit Download
746 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
1.03 KB lrw-r--r-- 2025-11-04 16:30:35
Edit Download
1.03 KB lrw-r--r-- 2025-11-04 16:30:35
Edit Download
802 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
796 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
6.03 KB lrw-r--r-- 2025-11-04 16:30:35
Edit Download
66 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
1.30 KB lrw-r--r-- 2025-11-04 16:30:35
Edit Download
173 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
1.33 KB lrw-r--r-- 2025-11-04 16:30:35
Edit Download
241 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
353 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
1.54 KB lrw-r--r-- 2025-11-04 16:30:35
Edit Download
1.59 KB lrw-r--r-- 2025-11-04 16:30:35
Edit Download
1.38 KB lrw-r--r-- 2025-11-04 16:30:35
Edit Download
1.09 KB lrw-r--r-- 2025-11-04 16:30:35
Edit Download
1.09 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
8.25 KB lrw-r--r-- 2025-11-04 16:30:35
Edit Download
1.25 KB lrw-r--r-- 2025-11-04 16:30:35
Edit Download
1.50 KB lrw-r--r-- 2025-11-04 16:30:35
Edit Download
195 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
3.14 KB lrw-r--r-- 2025-11-04 16:30:35
Edit Download

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