PHP Classes

File: vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/LanguageConstructSpacingUnitTest.1.inc.fixed

Recommend this page to a friend!
  Classes of Adeleye Ayodeji   Download Installed Plugin   vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/LanguageConstructSpacingUnitTest.1.inc.fixed   Download  
File: vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/LanguageConstructSpacingUnitTest.1.inc.fixed
Role: Example script
Content type: text/plain
Description: Example script
Class: Download Installed Plugin
Download a WordPress plugin as a ZIP archive
Author: By
Last change:
Date: 2 days ago
Size: 1,388 bytes
 

Contents

Class file image Download
<?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;