PHP Classes

File: vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/EmbeddedPhpUnitTest.inc

Recommend this page to a friend!
  Classes of milenmk   Simple PHP Password Manager   vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/EmbeddedPhpUnitTest.inc   Download  
File: vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/EmbeddedPhpUnitTest.inc
Role: Example script
Content type: text/plain
Description: Example script
Class: Simple PHP Password Manager
Application to store and retrieve user password
Author: By
Last change:
Date: 1 year ago
Size: 1,926 bytes
 

Contents

Class file image Download
<?php
   
// Not embedded. Do not check here.
   
echo 'hello';
?>
<html>
<head>
<title><?php echo $title ?></title>
<script><?php echo $script; ?></script>
</head>
<body>
    <?php
       
echo $body;
   
?>
hello
    <?php
   
echo $moreBody;
   
?>
<?php echo 'hi'; ?>
<?php echo 'hi'; ?>
<?php echo 'hi;' ?>
<?php echo 'hi'; echo 'hi;'; ?>
<?php echo 'hi'; echo 'hi;'; ?>

    <?php
    ?>
<?php ?>

    <?php

       
echo $moreBody;

   
?>
<?php

   
echo $moreBody;

       
?>

    <?php
   
echo $moreBody; ?>
<?php echo $moreBody;
   
?>

            <?php
       
echo 'hi';
           
?>

    <?php
echo 'hi';
   
?>
</body>
</html>
<?php
function test()
{
    foreach (
$root->section as $section) {
       
?>
<table>
            <?php if ($foo) {
           
?>
<tr>
            </tr>
            <?php }
           
?>
<?php
       
foreach ($bar as $bar) {
            echo
$bar;
        }
    }

    foreach (
$root->section as $section) {
       
?>
<table>
            <?php
           
if ($foo) {
           
?>
<tr>
            </tr>
            <?php
}
           
?>
<?php
       
foreach ($bar as $bar) {
            echo
$bar;
        }
    }
}

echo
'goodbye';

function
foo()
{

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

}

?>

            <strong><?php
           
echo 'foo';
           
?></strong>

?>

</html>

<?php if ($foo) { ?>
<?php
} ?>

<?php echo 'oops'; // Something. ?>
<?php
echo 'oops'; // Something. ?>
<?php
echo 'oops'; // Something.?>

<?php /* translators: My sites label */ ?>
<?php
/* translators: My sites label */?>
<?php
/* translators: My sites label */ ?>

<?php echo 'oops'; // phpcs:ignore Standard.Category.Sniff -- reason. ?>