File "NonExecutableCodeUnitTest.2.inc"

Full Path: /home/warrior1/public_html/wp-content/themes/storefront/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/NonExecutableCodeUnitTest.2.inc
File size: 777 bytes
MIME-type: text/x-php
Charset: utf-8

<?php

exit();


// Errors are thrown from here down from the exit() above.
foreach ($vars as $var) {
    if ($something === TRUE) {
        break;
        break;
    }
}

exit();

function test() {
    echo 'no error';
}

class myClass {
    function myFunc() {
        echo 'no error';
    }
}

function bar() {
    return function() {
        echo "1";
    };
}

class HttpStatus
{
    const CONTINUE = 100;
    const SWITCHING_PROTOCOLS = 101;
}

interface ABC {
	public function noError($name, $var);
}

trait Something {
	function getReturnType() {
	    echo 'no error';
	}
}

enum Something {
    function getReturnType() {
        echo 'no error';
    }
}

$a = new class {
    public function log($msg)
    {
        echo 'no error';
    }
};

interface MyInterface {