First Commit
This commit is contained in:
Vendored
Executable
+18
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Class containing no style errors according to the end-to-end tests phpcs.xml.dist.
|
||||
*
|
||||
* @copyright 2025 PHPCSStandards and contributors
|
||||
* @license https://github.com/PHPCSStandards/PHP_CodeSniffer/blob/HEAD/licence.txt BSD Licence
|
||||
*/
|
||||
|
||||
namespace PHP_CodeSniffer\Tests\EndToEnd\Fixtures;
|
||||
|
||||
class ClassOneWithoutStyleError
|
||||
{
|
||||
private function foo()
|
||||
{
|
||||
return 'bar';
|
||||
}
|
||||
}
|
||||
Vendored
Executable
+20
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Class containing no style errors.
|
||||
*
|
||||
* @copyright 2025 PHPCSStandards and contributors
|
||||
* @license https://github.com/PHPCSStandards/PHP_CodeSniffer/blob/HEAD/licence.txt BSD Licence
|
||||
*/
|
||||
|
||||
namespace PHP_CodeSniffer\Tests\EndToEnd\Fixtures;
|
||||
|
||||
class ClassTwoWithoutStyleError
|
||||
{
|
||||
/**
|
||||
* A property.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
private $bar = 'baz';
|
||||
}
|
||||
Vendored
Executable
+22
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Class containing a simple style error that phpcbf can fix.
|
||||
*
|
||||
* @copyright 2025 PHPCSStandards and contributors
|
||||
* @license https://github.com/PHPCSStandards/PHP_CodeSniffer/blob/HEAD/licence.txt BSD Licence
|
||||
*/
|
||||
|
||||
namespace PHP_CodeSniffer\Tests\EndToEnd\Fixtures;
|
||||
|
||||
class ClassWithStyleError
|
||||
{
|
||||
/**
|
||||
* The bracket for this function is misaligned and this can be automatically fixed by phpcbf.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
private function foo() {
|
||||
return 'bar';
|
||||
}
|
||||
}
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
<?xml version="1.0"?>
|
||||
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="EndToEndTests" xsi:noNamespaceSchemaLocation="phpcs.xsd">
|
||||
<description>The coding standard for end to end tests.</description>
|
||||
|
||||
<rule ref="PSR12"/>
|
||||
|
||||
<file>.</file>
|
||||
|
||||
<arg name="basepath" value="."/>
|
||||
<arg name="colors"/>
|
||||
<arg name="parallel" value="75"/>
|
||||
<arg value="p"/>
|
||||
</ruleset>
|
||||
Reference in New Issue
Block a user