/
2.2.Files.php
35 lines (28 loc) · 993 Bytes
/
2.2.Files.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?php
/**
* @see https://github.com/laminas/laminas-coding-standard for the canonical source repository
* @copyright https://github.com/laminas/laminas-coding-standard/blob/master/COPYRIGHT.md
* @license https://github.com/laminas/laminas-coding-standard/blob/master/LICENSE.md New BSD License
*/
declare(strict_types=1);
namespace LaminasCodingStandardTest\fixed;
class Files
{
public function testStrictTypesDirective(): void
{
// The `declare(strict_types=1);` directive MUST be declared and be the
// first statement in a file.
}
public function testLineEndings(): void
{
// All PHP files MUST use the Unix LF (linefeed) line ending only.
}
public function testEndFileNewline(): void
{
// All PHP files MUST end with a non-blank line, terminated with a single LF.
}
public function testClosingTag(): void
{
// The php closing tag MUST be omitted from files containing only PHP.
}
}