repo stringlengths 7 63 | file_url stringlengths 81 284 | file_path stringlengths 5 200 | content stringlengths 0 32.8k | language stringclasses 1
value | license stringclasses 7
values | commit_sha stringlengths 40 40 | retrieved_at stringdate 2026-01-04 15:02:33 2026-01-05 05:24:06 | truncated bool 2
classes |
|---|---|---|---|---|---|---|---|---|
PHP-CS-Fixer/PHP-CS-Fixer | https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/63b024eaaf8a48445494964bd21a6c38c788f40f/tests/Fixtures/Integration/set/@PER-CS3x0_php8x0.test-in.php | tests/Fixtures/Integration/set/@PER-CS3x0_php8x0.test-in.php | <?php
function parametersMultilineWithoutComma(
string | null | float $x,
int|null $y
) {}
$matchMultilineWithoutComma = match ($a) {
1 => 0,
2 => 1
};
| php | MIT | 63b024eaaf8a48445494964bd21a6c38c788f40f | 2026-01-04T15:02:54.911792Z | false |
PHP-CS-Fixer/PHP-CS-Fixer | https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/63b024eaaf8a48445494964bd21a6c38c788f40f/tests/Fixtures/Integration/set/@PER-CS2x0_php8x0.test-out.php | tests/Fixtures/Integration/set/@PER-CS2x0_php8x0.test-out.php | <?php
function parametersMultilineWithoutComma(
$x,
$y,
) {}
$matchMultilineWithoutComma = match ($a) {
1 => 0,
2 => 1,
};
| php | MIT | 63b024eaaf8a48445494964bd21a6c38c788f40f | 2026-01-04T15:02:54.911792Z | false |
PHP-CS-Fixer/PHP-CS-Fixer | https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/63b024eaaf8a48445494964bd21a6c38c788f40f/tests/Fixtures/Integration/set/@Symfony_whitespaces.test-in.php | tests/Fixtures/Integration/set/@Symfony_whitespaces.test-in.php | <?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Acme;
declare(ticks=1);
/**
* Coding standards demonstration.
*/
class FooBar
{
const SOME_CONST = 42;
private $fooBar;
/**
* @param string $dummy Some argument description
*/
public function __construct($dummy)
{{
$this->fooBar = $this->transformText($dummy);
}}
/**
* Foo
* @param string $dummy Some argument description
* @param array $options
* @param string|null $data Foo
*
* @return string|null Transformed input
*
* @throws \RuntimeException
*/
private function transformText($dummy, array $options = array(),$data=null)
{
$fnc = function () { return true; };
$mergedOptions = array_merge(
array(
'some_default' => 'values',
'another_default' => 'more values',
),
$options
);
if (true === $dummy) {
return;
}
if ('string' === $dummy) {
if ('values' === $mergedOptions['some_default']) {
return substr($dummy, 0, 5);
}
return ucwords($dummy);
}
throw new \RuntimeException(sprintf('Unrecognized dummy option "%s"', $dummy));
}
private function reverseBoolean($value = null, $theSwitch = false)
{
if (!$theSwitch) {
return;
}
return !$value;
}
/**
* @param string $text
* @return string
*/
private function printText($text)
{
echo $text;
}
}
interface Test1Interface
{
}
interface Test2Interface
{
}
class FooBarTest extends
\PHPUnit_Framework_TestCase
implements
Test1Interface,
Test2Interface
{
/**
* @expectedException Exception
*/
public function testFooBar($a)
{
$b = $a === 1 ? 'a' : 'b';
echo $b;;
}
}
final class FinalClass
{
final function finalMethod(){}
}
echo 1 ?> | php | MIT | 63b024eaaf8a48445494964bd21a6c38c788f40f | 2026-01-04T15:02:54.911792Z | false |
PHP-CS-Fixer/PHP-CS-Fixer | https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/63b024eaaf8a48445494964bd21a6c38c788f40f/tests/Fixtures/Integration/set/@PER-CS2x0.test-in.php | tests/Fixtures/Integration/set/@PER-CS2x0.test-in.php | <?
namespace Vendor\Package;
use const BAR;
use function foo;
use \FooInterfaceA, FooInterfaceB;
use \BarClass as Bar;
use OtherVendor\OtherPackage\BazClass;
class Foo extends Bar implements FooInterfaceA{
var $aaa = 1, $bbb = 2;
public function sampleFunction($a, $arg1, $arg2, $arg3, $foo, $b = null)
{
if ($a === $b) {
bar();
} else if ($a > $b) {
$foo->bar($arg1);
} else {
BazClass::bar($arg2, $arg3);
}
$combined = $a.$b;
STATIC::baz();
}
use FooTrait, BarTrait;
static public final function bar() {
// method body
}
}
class Aaa implements
Bbb, Ccc,
Ddd
{
}
$a = new Foo;
$b = ( boolean ) 1;
$c = true ? (INT) '1' : 2;
$anonymousClass = new class () {
public function test() {
// method body
}
};
$fn = fn ($a) => $a;
$arrayNotMultiline = ['foo' => 'bar', 'foo2' => 'bar'];
$arrayMultiline = [
'foo' => 'bar',
'foo2' => 'bar',
];
$arrayMultilineWithoutComma = [
'foo' => 'bar',
'foo2' => 'bar'
];
$heredocMultilineWithoutComma = [
'foo',
<<<EOD
bar
EOD
];
argumentsMultilineWithoutComma(
1,
2
);
?>
| php | MIT | 63b024eaaf8a48445494964bd21a6c38c788f40f | 2026-01-04T15:02:54.911792Z | false |
PHP-CS-Fixer/PHP-CS-Fixer | https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/63b024eaaf8a48445494964bd21a6c38c788f40f/tests/Fixtures/Integration/set/@PHPUnit4x8Migration-risky.test-out.php | tests/Fixtures/Integration/set/@PHPUnit4x8Migration-risky.test-out.php | <?php
use PHPUnit_Framework_Assert;
use PHPUnit_Framework_BaseTestListener;
use PHPUnit_Framework_TestListener;
use PHPUnit_Aaa;
use PHPUnit_Aaa_Bbb;
use PHPUnit_Aaa_Bbb_Ccc;
use PHPUnit_Aaa_Bbb_Ccc_Ddd;
use PHPUnit_Aaa_Bbb_Ccc_Ddd_Eee;
class FooTest extends \PHPUnit\Framework\TestCase {
public function test_dedicate_assert($foo) {
$this->assertNull($foo);
$this->assertInternalType('array', $foo);
$this->assertTrue(is_nan($foo));
$this->assertTrue(is_readable($foo));
}
/**
* Foo.
*/
function test_php_unit_no_expectation_annotation_32()
{
$this->setExpectedException(\FooException::class, null, 123);
bbb();
}
/**
* Foo.
*/
function test_php_unit_no_expectation_annotation_43()
{
$this->setExpectedExceptionRegExp(\FooException::class, '/foo.*$/', 123);
ccc();
}
}
| php | MIT | 63b024eaaf8a48445494964bd21a6c38c788f40f | 2026-01-04T15:02:54.911792Z | false |
PHP-CS-Fixer/PHP-CS-Fixer | https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/63b024eaaf8a48445494964bd21a6c38c788f40f/tests/Fixtures/Integration/set/@PHPUnit3x0Migration-risky.test-out.php | tests/Fixtures/Integration/set/@PHPUnit3x0Migration-risky.test-out.php | <?php
class FooTest extends \PHPUnit_Framework_TestCase {
public function test_dedicate_assert($foo) {
$this->assertNull($foo);
$this->assertTrue(is_array($foo));
$this->assertTrue(is_nan($foo));
$this->assertTrue(is_readable($foo));
}
}
| php | MIT | 63b024eaaf8a48445494964bd21a6c38c788f40f | 2026-01-04T15:02:54.911792Z | false |
PHP-CS-Fixer/PHP-CS-Fixer | https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/63b024eaaf8a48445494964bd21a6c38c788f40f/tests/Fixtures/Integration/set/@PHPUnit5x2Migration-risky.test-out.php | tests/Fixtures/Integration/set/@PHPUnit5x2Migration-risky.test-out.php | <?php
use PHPUnit_Framework_Assert;
use PHPUnit_Framework_BaseTestListener;
use PHPUnit_Framework_TestListener;
use PHPUnit_Aaa;
use PHPUnit_Aaa_Bbb;
use PHPUnit_Aaa_Bbb_Ccc;
use PHPUnit_Aaa_Bbb_Ccc_Ddd;
use PHPUnit_Aaa_Bbb_Ccc_Ddd_Eee;
class FooTest extends \PHPUnit\Framework\TestCase {
public function test_dedicate_assert($foo) {
$this->assertNull($foo);
$this->assertInternalType('array', $foo);
$this->assertNan($foo);
$this->assertTrue(is_readable($foo));
}
/**
* Foo.
*/
function test_php_unit_no_expectation_annotation_32()
{
$this->expectException(\FooException::class);
$this->expectExceptionCode(123);
bbb();
}
/**
* Foo.
*/
function test_php_unit_no_expectation_annotation_43()
{
$this->setExpectedExceptionRegExp(\FooException::class, '/foo.*$/', 123);
ccc();
}
public function test_mock_54()
{
$mock = $this->getMockWithoutInvokingTheOriginalConstructor("Foo");
}
public function test_php_unit_expectation_52() {
$this->expectException("RuntimeException");
$this->expectExceptionMessage("Msg");
$this->expectExceptionCode(123);
}
public function test_php_unit_expectation_56() {
$this->setExpectedExceptionRegExp("RuntimeException", "/Msg.*/", 123);
}
}
| php | MIT | 63b024eaaf8a48445494964bd21a6c38c788f40f | 2026-01-04T15:02:54.911792Z | false |
PHP-CS-Fixer/PHP-CS-Fixer | https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/63b024eaaf8a48445494964bd21a6c38c788f40f/tests/Fixtures/Integration/set/@Symfony-risky.test-in.php | tests/Fixtures/Integration/set/@Symfony-risky.test-in.php | <?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Acme;
declare(ticks=1);
final class FinalClass
{
final function finalMethod(){}
}
| php | MIT | 63b024eaaf8a48445494964bd21a6c38c788f40f | 2026-01-04T15:02:54.911792Z | false |
PHP-CS-Fixer/PHP-CS-Fixer | https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/63b024eaaf8a48445494964bd21a6c38c788f40f/tests/Fixtures/Integration/set/@PSR12.test-out.php | tests/Fixtures/Integration/set/@PSR12.test-out.php | <?php
namespace Vendor\Package;
use FooInterfaceA;
use FooInterfaceB;
use BarClass as Bar;
use OtherVendor\OtherPackage\BazClass;
use function foo;
use const BAR;
class Foo extends Bar implements FooInterfaceA
{
use FooTrait;
use BarTrait;
public $aaa = 1;
public $bbb = 2;
public function sampleFunction($a, $arg1, $arg2, $arg3, $foo, $b = null)
{
if ($a === $b) {
bar();
} elseif ($a > $b) {
$foo->bar($arg1);
} else {
BazClass::bar($arg2, $arg3);
}
static::baz();
}
final public static function bar()
{
// method body
}
}
class Aaa implements
Bbb,
Ccc,
Ddd
{
}
$a = new Foo();
$b = (bool) 1;
$c = true ? (int) '1' : 2;
function callback($a, ... $b)
{
return (--$a) * ($b++);
}
| php | MIT | 63b024eaaf8a48445494964bd21a6c38c788f40f | 2026-01-04T15:02:54.911792Z | false |
PHP-CS-Fixer/PHP-CS-Fixer | https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/63b024eaaf8a48445494964bd21a6c38c788f40f/tests/Fixtures/Integration/set/@PHP7x4Migration.test-out.php | tests/Fixtures/Integration/set/@PHP7x4Migration.test-out.php | <?php
declare(strict_types=1);
// https://www.php.net/manual/en/migration74.deprecated.php#migration74.deprecated.core.array-string-access-curly-brace
// 'normalize_index_brace'
$y = $f[1];
// https://www.php.net/manual/en/migration74.deprecated.php#migration74.deprecated.core.real
$a = (float) $a;
| php | MIT | 63b024eaaf8a48445494964bd21a6c38c788f40f | 2026-01-04T15:02:54.911792Z | false |
PHP-CS-Fixer/PHP-CS-Fixer | https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/63b024eaaf8a48445494964bd21a6c38c788f40f/tests/Fixtures/Integration/set/@Symfony_whitespaces.test-out.php | tests/Fixtures/Integration/set/@Symfony_whitespaces.test-out.php | <?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Acme;
declare(ticks=1);
/**
* Coding standards demonstration.
*/
class FooBar
{
public const SOME_CONST = 42;
private $fooBar;
/**
* @param string $dummy Some argument description
*/
public function __construct($dummy)
{
$this->fooBar = $this->transformText($dummy);
}
/**
* Foo.
*
* @param string $dummy Some argument description
* @param string|null $data Foo
*
* @return string|null Transformed input
*
* @throws \RuntimeException
*/
private function transformText($dummy, array $options = [], $data = null)
{
$fnc = function () { return true; };
$mergedOptions = array_merge(
[
'some_default' => 'values',
'another_default' => 'more values',
],
$options
);
if (true === $dummy) {
return;
}
if ('string' === $dummy) {
if ('values' === $mergedOptions['some_default']) {
return substr($dummy, 0, 5);
}
return ucwords($dummy);
}
throw new \RuntimeException(sprintf('Unrecognized dummy option "%s"', $dummy));
}
private function reverseBoolean($value = null, $theSwitch = false)
{
if (!$theSwitch) {
return;
}
return !$value;
}
/**
* @param string $text
*
* @return string
*/
private function printText($text)
{
echo $text;
}
}
interface Test1Interface
{
}
interface Test2Interface
{
}
class FooBarTest extends \PHPUnit_Framework_TestCase implements Test1Interface, Test2Interface
{
/**
* @expectedException \Exception
*/
public function testFooBar($a)
{
$b = 1 === $a ? 'a' : 'b';
echo $b;
}
}
final class FinalClass
{
final public function finalMethod()
{
}
}
echo 1;
| php | MIT | 63b024eaaf8a48445494964bd21a6c38c788f40f | 2026-01-04T15:02:54.911792Z | false |
PHP-CS-Fixer/PHP-CS-Fixer | https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/63b024eaaf8a48445494964bd21a6c38c788f40f/tests/Fixtures/Integration/set/@PHPUnit6x0Migration-risky.test-out.php | tests/Fixtures/Integration/set/@PHPUnit6x0Migration-risky.test-out.php | <?php
use PHPUnit\Framework\Assert;
use PHPUnit\Framework\BaseTestListener;
use PHPUnit\Framework\TestListener;
use PHPUnit\Aaa;
use PHPUnit\Aaa\Bbb;
use PHPUnit\Aaa\Bbb\Ccc;
use PHPUnit\Aaa\Bbb\Ccc\Ddd;
use PHPUnit\Aaa\Bbb\Ccc\Ddd\Eee;
class FooTest extends \PHPUnit\Framework\TestCase {
public function test_dedicate_assert($foo) {
$this->assertNull($foo);
$this->assertInternalType('array', $foo);
$this->assertNan($foo);
$this->assertIsReadable($foo);
}
/**
* Foo.
*/
function test_php_unit_no_expectation_annotation_32()
{
$this->expectException(\FooException::class);
$this->expectExceptionCode(123);
bbb();
}
/**
* Foo.
*/
function test_php_unit_no_expectation_annotation_43()
{
$this->expectException(\FooException::class);
$this->expectExceptionMessageRegExp('/foo.*$/');
$this->expectExceptionCode(123);
ccc();
}
public function test_mock_54()
{
$mock = $this->createMock("Foo");
}
public function test_php_unit_expectation_52() {
$this->expectException("RuntimeException");
$this->expectExceptionMessage("Msg");
$this->expectExceptionCode(123);
}
public function test_php_unit_expectation_56() {
$this->expectException("RuntimeException");
$this->expectExceptionMessageRegExp("/Msg.*/");
$this->expectExceptionCode(123);
}
}
| php | MIT | 63b024eaaf8a48445494964bd21a6c38c788f40f | 2026-01-04T15:02:54.911792Z | false |
PHP-CS-Fixer/PHP-CS-Fixer | https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/63b024eaaf8a48445494964bd21a6c38c788f40f/tests/Fixtures/Integration/set/@PSR12_php70.test-out.php | tests/Fixtures/Integration/set/@PSR12_php70.test-out.php | <?php
declare(strict_types=1);
function foo(): void
{
}
$class = new class () {};
| php | MIT | 63b024eaaf8a48445494964bd21a6c38c788f40f | 2026-01-04T15:02:54.911792Z | false |
PHP-CS-Fixer/PHP-CS-Fixer | https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/63b024eaaf8a48445494964bd21a6c38c788f40f/tests/Fixtures/Integration/set/@PHPUnit6x0Migration-risky_whitespaces.test-in.php | tests/Fixtures/Integration/set/@PHPUnit6x0Migration-risky_whitespaces.test-in.php | <?php
use PHPUnit_Framework_Assert;
use PHPUnit_Framework_BaseTestListener;
use PHPUnit_Framework_TestListener;
use PHPUnit_Aaa;
use PHPUnit_Aaa_Bbb;
use PHPUnit_Aaa_Bbb_Ccc;
use PHPUnit_Aaa_Bbb_Ccc_Ddd;
use PHPUnit_Aaa_Bbb_Ccc_Ddd_Eee;
class FooTest extends \PHPUnit_Framework_TestCase {
public function test_dedicate_assert($foo) {
$this->assertTrue(is_null($foo));
$this->assertTrue(is_array($foo));
$this->assertTrue(is_nan($foo));
$this->assertTrue(is_readable($foo));
}
/**
* Foo.
* @expectedException FooException
* @expectedExceptionCode 123
*/
function test_php_unit_no_expectation_annotation_32()
{
bbb();
}
/**
* Foo.
* @expectedException FooException
* @expectedExceptionMessageRegExp /foo.*$/
* @expectedExceptionCode 123
*/
function test_php_unit_no_expectation_annotation_43()
{
ccc();
}
public function test_mock_54()
{
$mock = $this->getMockWithoutInvokingTheOriginalConstructor("Foo");
}
public function test_php_unit_expectation_52() {
$this->setExpectedException("RuntimeException", "Msg", 123);
}
public function test_php_unit_expectation_56() {
$this->setExpectedExceptionRegExp("RuntimeException", "/Msg.*/", 123);
}
}
| php | MIT | 63b024eaaf8a48445494964bd21a6c38c788f40f | 2026-01-04T15:02:54.911792Z | false |
PHP-CS-Fixer/PHP-CS-Fixer | https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/63b024eaaf8a48445494964bd21a6c38c788f40f/tests/Fixtures/Integration/set/@PHPUnit5x6Migration-risky.test-in.php | tests/Fixtures/Integration/set/@PHPUnit5x6Migration-risky.test-in.php | <?php
use PHPUnit_Framework_Assert;
use PHPUnit_Framework_BaseTestListener;
use PHPUnit_Framework_TestListener;
use PHPUnit_Aaa;
use PHPUnit_Aaa_Bbb;
use PHPUnit_Aaa_Bbb_Ccc;
use PHPUnit_Aaa_Bbb_Ccc_Ddd;
use PHPUnit_Aaa_Bbb_Ccc_Ddd_Eee;
class FooTest extends \PHPUnit_Framework_TestCase {
public function test_dedicate_assert($foo) {
$this->assertTrue(is_null($foo));
$this->assertTrue(is_array($foo));
$this->assertTrue(is_nan($foo));
$this->assertTrue(is_readable($foo));
}
/**
* Foo.
* @expectedException FooException
* @expectedExceptionCode 123
*/
function test_php_unit_no_expectation_annotation_32()
{
bbb();
}
/**
* Foo.
* @expectedException FooException
* @expectedExceptionMessageRegExp /foo.*$/
* @expectedExceptionCode 123
*/
function test_php_unit_no_expectation_annotation_43()
{
ccc();
}
public function test_mock_54()
{
$mock = $this->getMockWithoutInvokingTheOriginalConstructor("Foo");
}
public function test_php_unit_expectation_52() {
$this->setExpectedException("RuntimeException", "Msg", 123);
}
public function test_php_unit_expectation_56() {
$this->setExpectedExceptionRegExp("RuntimeException", "/Msg.*/", 123);
}
}
| php | MIT | 63b024eaaf8a48445494964bd21a6c38c788f40f | 2026-01-04T15:02:54.911792Z | false |
PHP-CS-Fixer/PHP-CS-Fixer | https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/63b024eaaf8a48445494964bd21a6c38c788f40f/tests/Fixtures/Integration/set/@PHPUnit4x3Migration-risky.test-in.php | tests/Fixtures/Integration/set/@PHPUnit4x3Migration-risky.test-in.php | <?php
class FooTest extends \PHPUnit_Framework_TestCase {
public function test_dedicate_assert($foo) {
$this->assertTrue(is_null($foo));
$this->assertTrue(is_array($foo));
$this->assertTrue(is_nan($foo));
$this->assertTrue(is_readable($foo));
}
/**
* Foo.
* @expectedException FooException
* @expectedExceptionCode 123
*/
function test_php_unit_no_expectation_annotation_32()
{
bbb();
}
/**
* Foo.
* @expectedException FooException
* @expectedExceptionMessageRegExp /foo.*$/
* @expectedExceptionCode 123
*/
function test_php_unit_no_expectation_annotation_43()
{
ccc();
}
}
| php | MIT | 63b024eaaf8a48445494964bd21a6c38c788f40f | 2026-01-04T15:02:54.911792Z | false |
PHP-CS-Fixer/PHP-CS-Fixer | https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/63b024eaaf8a48445494964bd21a6c38c788f40f/tests/Fixtures/Integration/set/@PHP8x2Migration-risky.test-out.php | tests/Fixtures/Integration/set/@PHP8x2Migration-risky.test-out.php | <?php declare(strict_types=1);
// https://wiki.php.net/rfc/readonly_classes
readonly class C {}
| php | MIT | 63b024eaaf8a48445494964bd21a6c38c788f40f | 2026-01-04T15:02:54.911792Z | false |
PHP-CS-Fixer/PHP-CS-Fixer | https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/63b024eaaf8a48445494964bd21a6c38c788f40f/tests/Fixtures/Integration/set/@PER-CS3x0.test-out.php | tests/Fixtures/Integration/set/@PER-CS3x0.test-out.php | <?php
namespace Vendor\Package;
use FooInterfaceA;
use FooInterfaceB;
use BarClass as Bar;
use OtherVendor\OtherPackage\BazClass;
use function foo;
use const BAR;
class Foo extends Bar implements FooInterfaceA
{
use FooTrait;
use BarTrait;
public const X = 1;
public const Y = 2;
public $aaa = 1;
public $bbb = 2;
public function sampleFunction($a, $arg1, $arg2, $arg3, $foo, $b = null)
{
if ($a === $b) {
bar();
} elseif ($a > $b) {
$foo->bar($arg1);
} elseif ($a < $b
&& null === $arg1) {
foo();
} else {
BazClass::bar($arg2, $arg3);
}
$combined = $a . $b;
try {
static::baz();
} catch (\InvalidArgumentException|\ValueError $e) {
foo();
}
}
final public static function bar()
{
// method body
}
}
class Aaa implements
Bbb,
Ccc,
Ddd {}
$a = new Foo();
$b = (bool) 1;
$c = true ? (int) '1' : 2;
$anonymousClass = new class {
public function test()
{
// method body
}
};
$fn = fn($a) => $a;
$arrayNotMultiline = ['foo' => 'bar', 'foo2' => 'bar'];
$arrayMultiline = [
'foo' => 'bar',
'foo2' => 'bar',
];
$arrayMultilineWithoutComma = [
'foo' => 'bar',
'foo2' => 'bar',
];
$heredocMultilineWithoutComma = [
'foo',
<<<EOD
bar
EOD,
];
argumentsMultilineWithoutComma(
1,
2,
);
| php | MIT | 63b024eaaf8a48445494964bd21a6c38c788f40f | 2026-01-04T15:02:54.911792Z | false |
PHP-CS-Fixer/PHP-CS-Fixer | https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/63b024eaaf8a48445494964bd21a6c38c788f40f/tests/Fixtures/Integration/set/@PHP8x3Migration.test-in.php | tests/Fixtures/Integration/set/@PHP8x3Migration.test-in.php | <?php
class Foo {
public const string BAR = 'bar';
}
$ar = 'AR';
echo Foo::{"B${ar}"};
| php | MIT | 63b024eaaf8a48445494964bd21a6c38c788f40f | 2026-01-04T15:02:54.911792Z | false |
PHP-CS-Fixer/PHP-CS-Fixer | https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/63b024eaaf8a48445494964bd21a6c38c788f40f/tests/Fixtures/Integration/set/@PER-CS3x0.test-in.php | tests/Fixtures/Integration/set/@PER-CS3x0.test-in.php | <?
namespace Vendor\Package;
use const BAR;
use function foo;
use \FooInterfaceA, FooInterfaceB;
use \BarClass as Bar;
use OtherVendor\OtherPackage\BazClass;
class Foo extends Bar implements FooInterfaceA{
const X = 1, Y = 2;
var $aaa = 1, $bbb = 2;
public function sampleFunction($a, $arg1, $arg2, $arg3, $foo, $b = null)
{
if ($a === $b) {
bar();
} else if ($a > $b) {
$foo->bar($arg1);
} elseif ($a < $b &&
null === $arg1) {
foo();
} else {
BazClass::bar($arg2, $arg3);
}
$combined = $a.$b;
try {
STATIC::baz();
} catch ( \InvalidArgumentException | \ValueError $e) {
foo();
}
}
use FooTrait, BarTrait;
static public final function bar() {
// method body
}
}
class Aaa implements
Bbb, Ccc,
Ddd
{
}
$a = new Foo;
$b = ( boolean ) 1;
$c = true ? (INT) '1' : 2;
$anonymousClass = new class () {
public function test() {
// method body
}
};
$fn = fn ($a) => $a;
$arrayNotMultiline = ['foo' => 'bar', 'foo2' => 'bar'];
$arrayMultiline = [
'foo' => 'bar',
'foo2' => 'bar',
];
$arrayMultilineWithoutComma = [
'foo' => 'bar',
'foo2' => 'bar'
];
$heredocMultilineWithoutComma = [
'foo',
<<<EOD
bar
EOD
];
argumentsMultilineWithoutComma(
1,
2
);
?>
| php | MIT | 63b024eaaf8a48445494964bd21a6c38c788f40f | 2026-01-04T15:02:54.911792Z | false |
PHP-CS-Fixer/PHP-CS-Fixer | https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/63b024eaaf8a48445494964bd21a6c38c788f40f/tests/Fixtures/Integration/set/@PSR12_whitespaces.test-out.php | tests/Fixtures/Integration/set/@PSR12_whitespaces.test-out.php | <?php
namespace Vendor\Package;
use FooInterfaceA;
use FooInterfaceB;
use BarClass as Bar;
use OtherVendor\OtherPackage\BazClass;
class Foo extends Bar implements FooInterfaceA
{
use FooTrait;
use BarTrait;
public $aaa = 1;
public $bbb = 2;
public function sampleFunction($a, $arg1, $arg2, $arg3, $foo, $b = null)
{
if ($a === $b) {
bar();
} elseif ($a > $b) {
$foo->bar($arg1);
} else {
BazClass::bar($arg2, $arg3);
}
static::baz();
}
final public static function bar()
{
// method body
}
}
class Aaa implements
Bbb,
Ccc,
Ddd
{
}
$a = new Foo();
$b = (bool) 1;
$c = true ? 1 : 2;
| php | MIT | 63b024eaaf8a48445494964bd21a6c38c788f40f | 2026-01-04T15:02:54.911792Z | false |
PHP-CS-Fixer/PHP-CS-Fixer | https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/63b024eaaf8a48445494964bd21a6c38c788f40f/tests/Fixtures/Integration/set/@PER-CS2x0_php8x0.test-in.php | tests/Fixtures/Integration/set/@PER-CS2x0_php8x0.test-in.php | <?php
function parametersMultilineWithoutComma(
$x,
$y
) {}
$matchMultilineWithoutComma = match ($a) {
1 => 0,
2 => 1
};
| php | MIT | 63b024eaaf8a48445494964bd21a6c38c788f40f | 2026-01-04T15:02:54.911792Z | false |
PHP-CS-Fixer/PHP-CS-Fixer | https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/63b024eaaf8a48445494964bd21a6c38c788f40f/tests/Fixtures/Integration/set/@PER-CS2x0.test-out.php | tests/Fixtures/Integration/set/@PER-CS2x0.test-out.php | <?php
namespace Vendor\Package;
use FooInterfaceA;
use FooInterfaceB;
use BarClass as Bar;
use OtherVendor\OtherPackage\BazClass;
use function foo;
use const BAR;
class Foo extends Bar implements FooInterfaceA
{
use FooTrait;
use BarTrait;
public $aaa = 1;
public $bbb = 2;
public function sampleFunction($a, $arg1, $arg2, $arg3, $foo, $b = null)
{
if ($a === $b) {
bar();
} elseif ($a > $b) {
$foo->bar($arg1);
} else {
BazClass::bar($arg2, $arg3);
}
$combined = $a . $b;
static::baz();
}
final public static function bar()
{
// method body
}
}
class Aaa implements
Bbb,
Ccc,
Ddd {}
$a = new Foo();
$b = (bool) 1;
$c = true ? (int) '1' : 2;
$anonymousClass = new class {
public function test()
{
// method body
}
};
$fn = fn($a) => $a;
$arrayNotMultiline = ['foo' => 'bar', 'foo2' => 'bar'];
$arrayMultiline = [
'foo' => 'bar',
'foo2' => 'bar',
];
$arrayMultilineWithoutComma = [
'foo' => 'bar',
'foo2' => 'bar',
];
$heredocMultilineWithoutComma = [
'foo',
<<<EOD
bar
EOD,
];
argumentsMultilineWithoutComma(
1,
2,
);
| php | MIT | 63b024eaaf8a48445494964bd21a6c38c788f40f | 2026-01-04T15:02:54.911792Z | false |
PHP-CS-Fixer/PHP-CS-Fixer | https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/63b024eaaf8a48445494964bd21a6c38c788f40f/tests/Fixtures/Integration/set/@PHP7x4Migration.test-in.php | tests/Fixtures/Integration/set/@PHP7x4Migration.test-in.php | <?php
declare(strict_types=1);
// https://www.php.net/manual/en/migration74.deprecated.php#migration74.deprecated.core.array-string-access-curly-brace
// 'normalize_index_brace'
$y = $f{1};
// https://www.php.net/manual/en/migration74.deprecated.php#migration74.deprecated.core.real
$a = (real) $a;
| php | MIT | 63b024eaaf8a48445494964bd21a6c38c788f40f | 2026-01-04T15:02:54.911792Z | false |
PHP-CS-Fixer/PHP-CS-Fixer | https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/63b024eaaf8a48445494964bd21a6c38c788f40f/tests/Fixtures/Integration/set/@PHP8x1Migration.test-in.php | tests/Fixtures/Integration/set/@PHP8x1Migration.test-in.php | <?php
// https://wiki.php.net/rfc/explicit_octal_notation
$a = 016 === 14;
| php | MIT | 63b024eaaf8a48445494964bd21a6c38c788f40f | 2026-01-04T15:02:54.911792Z | false |
PHP-CS-Fixer/PHP-CS-Fixer | https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/63b024eaaf8a48445494964bd21a6c38c788f40f/tests/Fixtures/Integration/set/@PHPUnit5x4Migration-risky.test-out.php | tests/Fixtures/Integration/set/@PHPUnit5x4Migration-risky.test-out.php | <?php
use PHPUnit_Framework_Assert;
use PHPUnit_Framework_BaseTestListener;
use PHPUnit_Framework_TestListener;
use PHPUnit_Aaa;
use PHPUnit_Aaa_Bbb;
use PHPUnit_Aaa_Bbb_Ccc;
use PHPUnit_Aaa_Bbb_Ccc_Ddd;
use PHPUnit_Aaa_Bbb_Ccc_Ddd_Eee;
class FooTest extends \PHPUnit\Framework\TestCase {
public function test_dedicate_assert($foo) {
$this->assertNull($foo);
$this->assertInternalType('array', $foo);
$this->assertNan($foo);
$this->assertTrue(is_readable($foo));
}
/**
* Foo.
*/
function test_php_unit_no_expectation_annotation_32()
{
$this->expectException(\FooException::class);
$this->expectExceptionCode(123);
bbb();
}
/**
* Foo.
*/
function test_php_unit_no_expectation_annotation_43()
{
$this->setExpectedExceptionRegExp(\FooException::class, '/foo.*$/', 123);
ccc();
}
public function test_mock_54()
{
$mock = $this->createMock("Foo");
}
public function test_php_unit_expectation_52() {
$this->expectException("RuntimeException");
$this->expectExceptionMessage("Msg");
$this->expectExceptionCode(123);
}
public function test_php_unit_expectation_56() {
$this->setExpectedExceptionRegExp("RuntimeException", "/Msg.*/", 123);
}
}
| php | MIT | 63b024eaaf8a48445494964bd21a6c38c788f40f | 2026-01-04T15:02:54.911792Z | false |
PHP-CS-Fixer/PHP-CS-Fixer | https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/63b024eaaf8a48445494964bd21a6c38c788f40f/tests/Fixtures/Integration/set/@PHP5x4Migration.test-in.php | tests/Fixtures/Integration/set/@PHP5x4Migration.test-in.php | <?php
$arr = array(1, 2, 3);
| php | MIT | 63b024eaaf8a48445494964bd21a6c38c788f40f | 2026-01-04T15:02:54.911792Z | false |
PHP-CS-Fixer/PHP-CS-Fixer | https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/63b024eaaf8a48445494964bd21a6c38c788f40f/tests/Fixtures/Integration/set/@PHPUnit4x8Migration-risky.test-in.php | tests/Fixtures/Integration/set/@PHPUnit4x8Migration-risky.test-in.php | <?php
use PHPUnit_Framework_Assert;
use PHPUnit_Framework_BaseTestListener;
use PHPUnit_Framework_TestListener;
use PHPUnit_Aaa;
use PHPUnit_Aaa_Bbb;
use PHPUnit_Aaa_Bbb_Ccc;
use PHPUnit_Aaa_Bbb_Ccc_Ddd;
use PHPUnit_Aaa_Bbb_Ccc_Ddd_Eee;
class FooTest extends \PHPUnit_Framework_TestCase {
public function test_dedicate_assert($foo) {
$this->assertTrue(is_null($foo));
$this->assertTrue(is_array($foo));
$this->assertTrue(is_nan($foo));
$this->assertTrue(is_readable($foo));
}
/**
* Foo.
* @expectedException FooException
* @expectedExceptionCode 123
*/
function test_php_unit_no_expectation_annotation_32()
{
bbb();
}
/**
* Foo.
* @expectedException FooException
* @expectedExceptionMessageRegExp /foo.*$/
* @expectedExceptionCode 123
*/
function test_php_unit_no_expectation_annotation_43()
{
ccc();
}
}
| php | MIT | 63b024eaaf8a48445494964bd21a6c38c788f40f | 2026-01-04T15:02:54.911792Z | false |
PHP-CS-Fixer/PHP-CS-Fixer | https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/63b024eaaf8a48445494964bd21a6c38c788f40f/tests/Fixtures/Integration/set/@PHPUnit3x2Migration-risky.test-out.php | tests/Fixtures/Integration/set/@PHPUnit3x2Migration-risky.test-out.php | <?php
class FooTest extends \PHPUnit_Framework_TestCase {
public function test_dedicate_assert($foo) {
$this->assertNull($foo);
$this->assertTrue(is_array($foo));
$this->assertTrue(is_nan($foo));
$this->assertTrue(is_readable($foo));
}
/**
* Foo.
*/
function test_php_unit_no_expectation_annotation_32()
{
$this->setExpectedException(\FooException::class, null, 123);
bbb();
}
}
| php | MIT | 63b024eaaf8a48445494964bd21a6c38c788f40f | 2026-01-04T15:02:54.911792Z | false |
PHP-CS-Fixer/PHP-CS-Fixer | https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/63b024eaaf8a48445494964bd21a6c38c788f40f/tests/Fixtures/Integration/set/@PSR12-risky.test-in.php | tests/Fixtures/Integration/set/@PSR12-risky.test-in.php | <?php
class Foo
{
public function bar($foo = 1, $bar)
{
}
}
| php | MIT | 63b024eaaf8a48445494964bd21a6c38c788f40f | 2026-01-04T15:02:54.911792Z | false |
PHP-CS-Fixer/PHP-CS-Fixer | https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/63b024eaaf8a48445494964bd21a6c38c788f40f/tests/Fixtures/Integration/set/@PHPUnit5x0Migration-risky.test-out.php | tests/Fixtures/Integration/set/@PHPUnit5x0Migration-risky.test-out.php | <?php
use PHPUnit_Framework_Assert;
use PHPUnit_Framework_BaseTestListener;
use PHPUnit_Framework_TestListener;
use PHPUnit_Aaa;
use PHPUnit_Aaa_Bbb;
use PHPUnit_Aaa_Bbb_Ccc;
use PHPUnit_Aaa_Bbb_Ccc_Ddd;
use PHPUnit_Aaa_Bbb_Ccc_Ddd_Eee;
class FooTest extends \PHPUnit\Framework\TestCase {
public function test_dedicate_assert($foo) {
$this->assertNull($foo);
$this->assertInternalType('array', $foo);
$this->assertNan($foo);
$this->assertTrue(is_readable($foo));
}
/**
* Foo.
*/
function test_php_unit_no_expectation_annotation_32()
{
$this->setExpectedException(\FooException::class, null, 123);
bbb();
}
/**
* Foo.
*/
function test_php_unit_no_expectation_annotation_43()
{
$this->setExpectedExceptionRegExp(\FooException::class, '/foo.*$/', 123);
ccc();
}
}
| php | MIT | 63b024eaaf8a48445494964bd21a6c38c788f40f | 2026-01-04T15:02:54.911792Z | false |
PHP-CS-Fixer/PHP-CS-Fixer | https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/63b024eaaf8a48445494964bd21a6c38c788f40f/tests/Fixtures/Integration/set/@PSR2.test-in.php | tests/Fixtures/Integration/set/@PSR2.test-in.php | <?
namespace Vendor\Package;
use FooInterfaceA, FooInterfaceB;
use BarClass as Bar;
use OtherVendor\OtherPackage\BazClass;
class Foo extends Bar implements FooInterfaceA{
const SOME_CONST = 42;
var $aaa = 1, $bbb = 2;
public function sampleFunction($a, $arg1, $arg2, $arg3, $foo, $b = null)
{
if ($a === $b) {
bar();
} else if ($a > $b) {
$foo->bar($arg1);
} else {
BazClass::bar($arg2, $arg3);
}
}
static public final function bar() {
// method body
}
}
class Aaa implements
Bbb, Ccc,
Ddd
{
}
?>
| php | MIT | 63b024eaaf8a48445494964bd21a6c38c788f40f | 2026-01-04T15:02:54.911792Z | false |
PHP-CS-Fixer/PHP-CS-Fixer | https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/63b024eaaf8a48445494964bd21a6c38c788f40f/tests/Fixtures/Integration/set/@PER-CS3x0-risky.test-in.php | tests/Fixtures/Integration/set/@PER-CS3x0-risky.test-in.php | <?php
class Foo
{
public function bar($foo = 1, $bar)
{
}
}
| php | MIT | 63b024eaaf8a48445494964bd21a6c38c788f40f | 2026-01-04T15:02:54.911792Z | false |
PHP-CS-Fixer/PHP-CS-Fixer | https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/63b024eaaf8a48445494964bd21a6c38c788f40f/tests/Fixtures/Integration/set/@PHPUnit6x0Migration-risky.test-in.php | tests/Fixtures/Integration/set/@PHPUnit6x0Migration-risky.test-in.php | <?php
use PHPUnit_Framework_Assert;
use PHPUnit_Framework_BaseTestListener;
use PHPUnit_Framework_TestListener;
use PHPUnit_Aaa;
use PHPUnit_Aaa_Bbb;
use PHPUnit_Aaa_Bbb_Ccc;
use PHPUnit_Aaa_Bbb_Ccc_Ddd;
use PHPUnit_Aaa_Bbb_Ccc_Ddd_Eee;
class FooTest extends \PHPUnit_Framework_TestCase {
public function test_dedicate_assert($foo) {
$this->assertTrue(is_null($foo));
$this->assertTrue(is_array($foo));
$this->assertTrue(is_nan($foo));
$this->assertTrue(is_readable($foo));
}
/**
* Foo.
* @expectedException FooException
* @expectedExceptionCode 123
*/
function test_php_unit_no_expectation_annotation_32()
{
bbb();
}
/**
* Foo.
* @expectedException FooException
* @expectedExceptionMessageRegExp /foo.*$/
* @expectedExceptionCode 123
*/
function test_php_unit_no_expectation_annotation_43()
{
ccc();
}
public function test_mock_54()
{
$mock = $this->getMockWithoutInvokingTheOriginalConstructor("Foo");
}
public function test_php_unit_expectation_52() {
$this->setExpectedException("RuntimeException", "Msg", 123);
}
public function test_php_unit_expectation_56() {
$this->setExpectedExceptionRegExp("RuntimeException", "/Msg.*/", 123);
}
}
| php | MIT | 63b024eaaf8a48445494964bd21a6c38c788f40f | 2026-01-04T15:02:54.911792Z | false |
PHP-CS-Fixer/PHP-CS-Fixer | https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/63b024eaaf8a48445494964bd21a6c38c788f40f/tests/Fixtures/Integration/set/@PhpCsFixer.test-out.php | tests/Fixtures/Integration/set/@PhpCsFixer.test-out.php | <?php
namespace Vendor\Package;
class Foo
{
public function testStringImplicitBackslashes($a = 'a\b'): string
{
return 'a\b'
.$a
."\n\\a\\b";
}
}
| php | MIT | 63b024eaaf8a48445494964bd21a6c38c788f40f | 2026-01-04T15:02:54.911792Z | false |
PHP-CS-Fixer/PHP-CS-Fixer | https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/63b024eaaf8a48445494964bd21a6c38c788f40f/tests/Fixtures/Integration/set/@PER-CS1x0-risky.test-in.php | tests/Fixtures/Integration/set/@PER-CS1x0-risky.test-in.php | <?php
class Foo
{
public function bar($foo = 1, $bar)
{
}
}
| php | MIT | 63b024eaaf8a48445494964bd21a6c38c788f40f | 2026-01-04T15:02:54.911792Z | false |
PHP-CS-Fixer/PHP-CS-Fixer | https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/63b024eaaf8a48445494964bd21a6c38c788f40f/tests/Fixtures/Integration/set/@PHP7x4Migration-risky.test-in.php | tests/Fixtures/Integration/set/@PHP7x4Migration-risky.test-in.php | <?php
declare(strict_types=1);
// https://www.php.net/manual/en/migration74.deprecated.php#migration74.deprecated.core.implode-reverse-parameters
// 'implode_call'
$x = implode($foo, '');
// https://www.php.net/manual/en/migration74.deprecated.php#migration74.deprecated.core.real
// 'no_alias_functions'
$z2 = is_real($v);
// 'use_arrow_functions'
$ids = array_map(function ($item) {
return $item->id;
}, $items);
| php | MIT | 63b024eaaf8a48445494964bd21a6c38c788f40f | 2026-01-04T15:02:54.911792Z | false |
PHP-CS-Fixer/PHP-CS-Fixer | https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/63b024eaaf8a48445494964bd21a6c38c788f40f/tests/Fixtures/Integration/set/@PHP8x5Migration.test-in.php | tests/Fixtures/Integration/set/@PHP8x5Migration.test-in.php | <?php
// https://wiki.php.net/rfc/deprecations_php_8_5#deprecate_semicolon_after_case_in_switch_statement
switch ($value) {
case 'foo';
case 'bar':
case 'baz';
echo 'foo, bar, or baz';
break;
default;
echo 'Other';
}
| php | MIT | 63b024eaaf8a48445494964bd21a6c38c788f40f | 2026-01-04T15:02:54.911792Z | false |
PHP-CS-Fixer/PHP-CS-Fixer | https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/63b024eaaf8a48445494964bd21a6c38c788f40f/tests/Fixtures/Integration/set/@PER-CS3x0_php8x0.test-out.php | tests/Fixtures/Integration/set/@PER-CS3x0_php8x0.test-out.php | <?php
function parametersMultilineWithoutComma(
string|float|null $x,
?int $y,
) {}
$matchMultilineWithoutComma = match ($a) {
1 => 0,
2 => 1,
};
| php | MIT | 63b024eaaf8a48445494964bd21a6c38c788f40f | 2026-01-04T15:02:54.911792Z | false |
PHP-CS-Fixer/PHP-CS-Fixer | https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/63b024eaaf8a48445494964bd21a6c38c788f40f/tests/Fixtures/Integration/set/@PHPUnit3x5Migration-risky.test-out.php | tests/Fixtures/Integration/set/@PHPUnit3x5Migration-risky.test-out.php | <?php
class FooTest extends \PHPUnit_Framework_TestCase {
public function test_dedicate_assert($foo) {
$this->assertNull($foo);
$this->assertInternalType('array', $foo);
$this->assertTrue(is_nan($foo));
$this->assertTrue(is_readable($foo));
}
/**
* Foo.
*/
function test_php_unit_no_expectation_annotation_32()
{
$this->setExpectedException(\FooException::class, null, 123);
bbb();
}
}
| php | MIT | 63b024eaaf8a48445494964bd21a6c38c788f40f | 2026-01-04T15:02:54.911792Z | false |
PHP-CS-Fixer/PHP-CS-Fixer | https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/63b024eaaf8a48445494964bd21a6c38c788f40f/tests/Fixtures/Integration/set/@PSR2_whitespaces.test-in.php | tests/Fixtures/Integration/set/@PSR2_whitespaces.test-in.php | <?
namespace Vendor\Package;
use FooInterfaceA, FooInterfaceB;
use BarClass as Bar;
use OtherVendor\OtherPackage\BazClass;
class Foo extends Bar implements FooInterface{
var $aaa = 1, $bbb = 2;
public function sampleFunction($a, $arg1, $arg2, $arg3, $foo, $b = null)
{
if ($a === $b) {
bar();
} else if ($a > $b) {
$foo->bar($arg1);
} else {
BazClass::bar($arg2, $arg3);
}
}
static public final function bar() {
// method body
}
}
class Aaa implements
Bbb, Ccc,
Ddd
{
}
?>
| php | MIT | 63b024eaaf8a48445494964bd21a6c38c788f40f | 2026-01-04T15:02:54.911792Z | false |
PHP-CS-Fixer/PHP-CS-Fixer | https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/63b024eaaf8a48445494964bd21a6c38c788f40f/tests/Fixtures/Integration/set/@PHP8x2Migration-risky.test-in.php | tests/Fixtures/Integration/set/@PHP8x2Migration-risky.test-in.php | <?php declare(strict_types=1);
// https://wiki.php.net/rfc/readonly_classes
/** @readonly */
class C {}
| php | MIT | 63b024eaaf8a48445494964bd21a6c38c788f40f | 2026-01-04T15:02:54.911792Z | false |
PHP-CS-Fixer/PHP-CS-Fixer | https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/63b024eaaf8a48445494964bd21a6c38c788f40f/tests/Fixtures/Integration/set/@PHPUnit5x0Migration-risky.test-in.php | tests/Fixtures/Integration/set/@PHPUnit5x0Migration-risky.test-in.php | <?php
use PHPUnit_Framework_Assert;
use PHPUnit_Framework_BaseTestListener;
use PHPUnit_Framework_TestListener;
use PHPUnit_Aaa;
use PHPUnit_Aaa_Bbb;
use PHPUnit_Aaa_Bbb_Ccc;
use PHPUnit_Aaa_Bbb_Ccc_Ddd;
use PHPUnit_Aaa_Bbb_Ccc_Ddd_Eee;
class FooTest extends \PHPUnit_Framework_TestCase {
public function test_dedicate_assert($foo) {
$this->assertTrue(is_null($foo));
$this->assertTrue(is_array($foo));
$this->assertTrue(is_nan($foo));
$this->assertTrue(is_readable($foo));
}
/**
* Foo.
* @expectedException FooException
* @expectedExceptionCode 123
*/
function test_php_unit_no_expectation_annotation_32()
{
bbb();
}
/**
* Foo.
* @expectedException FooException
* @expectedExceptionMessageRegExp /foo.*$/
* @expectedExceptionCode 123
*/
function test_php_unit_no_expectation_annotation_43()
{
ccc();
}
}
| php | MIT | 63b024eaaf8a48445494964bd21a6c38c788f40f | 2026-01-04T15:02:54.911792Z | false |
PHP-CS-Fixer/PHP-CS-Fixer | https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/63b024eaaf8a48445494964bd21a6c38c788f40f/tests/Fixtures/Integration/set/@PhpCsFixer.test-in.php | tests/Fixtures/Integration/set/@PhpCsFixer.test-in.php | <?
namespace Vendor\Package;
class Foo{
public function testStringImplicitBackslashes($a = 'a\\b'): string
{
return 'a\\b'
. $a
. "\n\\a\b";
}
}
| php | MIT | 63b024eaaf8a48445494964bd21a6c38c788f40f | 2026-01-04T15:02:54.911792Z | false |
PHP-CS-Fixer/PHP-CS-Fixer | https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/63b024eaaf8a48445494964bd21a6c38c788f40f/tests/Fixtures/Integration/set/@PHP8x0Migration-risky.test-out.php | tests/Fixtures/Integration/set/@PHP8x0Migration-risky.test-out.php | <?php
declare(strict_types=1);
$pieces = [1, 2];
$f = implode('', $pieces);
echo time();
$exif = exif_read_data('tests/test1.jpg', 'IFD0');
| php | MIT | 63b024eaaf8a48445494964bd21a6c38c788f40f | 2026-01-04T15:02:54.911792Z | false |
PHP-CS-Fixer/PHP-CS-Fixer | https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/63b024eaaf8a48445494964bd21a6c38c788f40f/tests/Fixtures/Integration/set/@PHPUnit4x3Migration-risky.test-out.php | tests/Fixtures/Integration/set/@PHPUnit4x3Migration-risky.test-out.php | <?php
class FooTest extends \PHPUnit_Framework_TestCase {
public function test_dedicate_assert($foo) {
$this->assertNull($foo);
$this->assertInternalType('array', $foo);
$this->assertTrue(is_nan($foo));
$this->assertTrue(is_readable($foo));
}
/**
* Foo.
*/
function test_php_unit_no_expectation_annotation_32()
{
$this->setExpectedException(\FooException::class, null, 123);
bbb();
}
/**
* Foo.
*/
function test_php_unit_no_expectation_annotation_43()
{
$this->setExpectedExceptionRegExp(\FooException::class, '/foo.*$/', 123);
ccc();
}
}
| php | MIT | 63b024eaaf8a48445494964bd21a6c38c788f40f | 2026-01-04T15:02:54.911792Z | false |
PHP-CS-Fixer/PHP-CS-Fixer | https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/63b024eaaf8a48445494964bd21a6c38c788f40f/tests/Fixtures/Integration/set/@PER-CS1x0.test-in.php | tests/Fixtures/Integration/set/@PER-CS1x0.test-in.php | <?
namespace Vendor\Package;
use const BAR;
use function foo;
use \FooInterfaceA, FooInterfaceB;
use \BarClass as Bar;
use OtherVendor\OtherPackage\BazClass;
class Foo extends Bar implements FooInterfaceA{
var $aaa = 1, $bbb = 2;
public function sampleFunction($a, $arg1, $arg2, $arg3, $foo, $b = null)
{
if ($a === $b) {
bar();
} else if ($a > $b) {
$foo->bar($arg1);
} else {
BazClass::bar($arg2, $arg3);
}
STATIC::baz();
}
use FooTrait, BarTrait;
static public final function bar() {
// method body
}
}
class Aaa implements
Bbb, Ccc,
Ddd
{
}
$a = new Foo;
$b = (boolean) 1;
$c = true ? (INT) '1' : 2;
?>
| php | MIT | 63b024eaaf8a48445494964bd21a6c38c788f40f | 2026-01-04T15:02:54.911792Z | false |
PHP-CS-Fixer/PHP-CS-Fixer | https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/63b024eaaf8a48445494964bd21a6c38c788f40f/tests/Fixtures/Integration/set/@PHPUnit9x1Migration-risky.test-out.php | tests/Fixtures/Integration/set/@PHPUnit9x1Migration-risky.test-out.php | <?php
use PHPUnit\Framework\Assert;
use PHPUnit\Framework\BaseTestListener;
use PHPUnit\Framework\TestListener;
use PHPUnit\Aaa;
use PHPUnit\Aaa\Bbb;
use PHPUnit\Aaa\Bbb\Ccc;
use PHPUnit\Aaa\Bbb\Ccc\Ddd;
use PHPUnit\Aaa\Bbb\Ccc\Ddd\Eee;
class FooTest extends \PHPUnit\Framework\TestCase {
public function test_dedicate_assert($foo) {
$this->assertDirectoryDoesNotExist($foo);
$this->assertIsNotWritable($foo);
$this->assertFileDoesNotExist($foo);
$this->assertIsNotReadable($foo);
}
}
| php | MIT | 63b024eaaf8a48445494964bd21a6c38c788f40f | 2026-01-04T15:02:54.911792Z | false |
PHP-CS-Fixer/PHP-CS-Fixer | https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/63b024eaaf8a48445494964bd21a6c38c788f40f/tests/Fixtures/Integration/set/@PHP8x1Migration.test-out.php | tests/Fixtures/Integration/set/@PHP8x1Migration.test-out.php | <?php
// https://wiki.php.net/rfc/explicit_octal_notation
$a = 0o16 === 14;
| php | MIT | 63b024eaaf8a48445494964bd21a6c38c788f40f | 2026-01-04T15:02:54.911792Z | false |
PHP-CS-Fixer/PHP-CS-Fixer | https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/63b024eaaf8a48445494964bd21a6c38c788f40f/tests/Fixtures/Integration/set/@PHPUnit6x0Migration-risky_whitespaces.test-out.php | tests/Fixtures/Integration/set/@PHPUnit6x0Migration-risky_whitespaces.test-out.php | <?php
use PHPUnit\Framework\Assert;
use PHPUnit\Framework\BaseTestListener;
use PHPUnit\Framework\TestListener;
use PHPUnit\Aaa;
use PHPUnit\Aaa\Bbb;
use PHPUnit\Aaa\Bbb\Ccc;
use PHPUnit\Aaa\Bbb\Ccc\Ddd;
use PHPUnit\Aaa\Bbb\Ccc\Ddd\Eee;
class FooTest extends \PHPUnit\Framework\TestCase {
public function test_dedicate_assert($foo) {
$this->assertNull($foo);
$this->assertInternalType('array', $foo);
$this->assertNan($foo);
$this->assertIsReadable($foo);
}
/**
* Foo.
*/
function test_php_unit_no_expectation_annotation_32()
{
$this->expectException(\FooException::class);
$this->expectExceptionCode(123);
bbb();
}
/**
* Foo.
*/
function test_php_unit_no_expectation_annotation_43()
{
$this->expectException(\FooException::class);
$this->expectExceptionMessageRegExp('/foo.*$/');
$this->expectExceptionCode(123);
ccc();
}
public function test_mock_54()
{
$mock = $this->createMock("Foo");
}
public function test_php_unit_expectation_52() {
$this->expectException("RuntimeException");
$this->expectExceptionMessage("Msg");
$this->expectExceptionCode(123);
}
public function test_php_unit_expectation_56() {
$this->expectException("RuntimeException");
$this->expectExceptionMessageRegExp("/Msg.*/");
$this->expectExceptionCode(123);
}
}
| php | MIT | 63b024eaaf8a48445494964bd21a6c38c788f40f | 2026-01-04T15:02:54.911792Z | false |
PHP-CS-Fixer/PHP-CS-Fixer | https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/63b024eaaf8a48445494964bd21a6c38c788f40f/tests/Fixtures/Integration/set/@PHP8x2Migration.test-out.php | tests/Fixtures/Integration/set/@PHP8x2Migration.test-out.php | <?php
$name = 'World';
echo "Hello {$name}!";
| php | MIT | 63b024eaaf8a48445494964bd21a6c38c788f40f | 2026-01-04T15:02:54.911792Z | false |
PHP-CS-Fixer/PHP-CS-Fixer | https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/63b024eaaf8a48445494964bd21a6c38c788f40f/tests/Fixtures/Integration/set/@PSR12.test-in.php | tests/Fixtures/Integration/set/@PSR12.test-in.php | <?
namespace Vendor\Package;
use const BAR;
use function foo;
use \FooInterfaceA, FooInterfaceB;
use \BarClass as Bar;
use OtherVendor\OtherPackage\BazClass;
class Foo extends Bar implements FooInterfaceA{
var $aaa = 1, $bbb = 2;
public function sampleFunction($a, $arg1, $arg2, $arg3, $foo, $b = null)
{
if ($a === $b) {
bar();
} else if ($a > $b) {
$foo->bar($arg1);
} else {
BazClass::bar($arg2, $arg3);
}
STATIC::baz();
}
use FooTrait, BarTrait;
static public final function bar() {
// method body
}
}
class Aaa implements
Bbb, Ccc,
Ddd
{
}
$a = new Foo;
$b = (boolean) 1;
$c = true ? (INT) '1' : 2;
function callback($a, ... $b) { return (-- $a) * ($b ++);}
?>
| php | MIT | 63b024eaaf8a48445494964bd21a6c38c788f40f | 2026-01-04T15:02:54.911792Z | false |
PHP-CS-Fixer/PHP-CS-Fixer | https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/63b024eaaf8a48445494964bd21a6c38c788f40f/tests/Fixtures/Integration/set/@PHP8x3Migration.test-out.php | tests/Fixtures/Integration/set/@PHP8x3Migration.test-out.php | <?php
class Foo {
public const string BAR = 'bar';
}
$ar = 'AR';
echo Foo::{"B{$ar}"};
| php | MIT | 63b024eaaf8a48445494964bd21a6c38c788f40f | 2026-01-04T15:02:54.911792Z | false |
PHP-CS-Fixer/PHP-CS-Fixer | https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/63b024eaaf8a48445494964bd21a6c38c788f40f/tests/Fixtures/Integration/set/@PHPUnit5x6Migration-risky.test-out.php | tests/Fixtures/Integration/set/@PHPUnit5x6Migration-risky.test-out.php | <?php
use PHPUnit_Framework_Assert;
use PHPUnit_Framework_BaseTestListener;
use PHPUnit_Framework_TestListener;
use PHPUnit_Aaa;
use PHPUnit_Aaa_Bbb;
use PHPUnit_Aaa_Bbb_Ccc;
use PHPUnit_Aaa_Bbb_Ccc_Ddd;
use PHPUnit_Aaa_Bbb_Ccc_Ddd_Eee;
class FooTest extends \PHPUnit\Framework\TestCase {
public function test_dedicate_assert($foo) {
$this->assertNull($foo);
$this->assertInternalType('array', $foo);
$this->assertNan($foo);
$this->assertIsReadable($foo);
}
/**
* Foo.
*/
function test_php_unit_no_expectation_annotation_32()
{
$this->expectException(\FooException::class);
$this->expectExceptionCode(123);
bbb();
}
/**
* Foo.
*/
function test_php_unit_no_expectation_annotation_43()
{
$this->expectException(\FooException::class);
$this->expectExceptionMessageRegExp('/foo.*$/');
$this->expectExceptionCode(123);
ccc();
}
public function test_mock_54()
{
$mock = $this->createMock("Foo");
}
public function test_php_unit_expectation_52() {
$this->expectException("RuntimeException");
$this->expectExceptionMessage("Msg");
$this->expectExceptionCode(123);
}
public function test_php_unit_expectation_56() {
$this->expectException("RuntimeException");
$this->expectExceptionMessageRegExp("/Msg.*/");
$this->expectExceptionCode(123);
}
}
| php | MIT | 63b024eaaf8a48445494964bd21a6c38c788f40f | 2026-01-04T15:02:54.911792Z | false |
PHP-CS-Fixer/PHP-CS-Fixer | https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/63b024eaaf8a48445494964bd21a6c38c788f40f/tests/Fixtures/Integration/set/@PHPUnit5x2Migration-risky.test-in.php | tests/Fixtures/Integration/set/@PHPUnit5x2Migration-risky.test-in.php | <?php
use PHPUnit_Framework_Assert;
use PHPUnit_Framework_BaseTestListener;
use PHPUnit_Framework_TestListener;
use PHPUnit_Aaa;
use PHPUnit_Aaa_Bbb;
use PHPUnit_Aaa_Bbb_Ccc;
use PHPUnit_Aaa_Bbb_Ccc_Ddd;
use PHPUnit_Aaa_Bbb_Ccc_Ddd_Eee;
class FooTest extends \PHPUnit_Framework_TestCase {
public function test_dedicate_assert($foo) {
$this->assertTrue(is_null($foo));
$this->assertTrue(is_array($foo));
$this->assertTrue(is_nan($foo));
$this->assertTrue(is_readable($foo));
}
/**
* Foo.
* @expectedException FooException
* @expectedExceptionCode 123
*/
function test_php_unit_no_expectation_annotation_32()
{
bbb();
}
/**
* Foo.
* @expectedException FooException
* @expectedExceptionMessageRegExp /foo.*$/
* @expectedExceptionCode 123
*/
function test_php_unit_no_expectation_annotation_43()
{
ccc();
}
public function test_mock_54()
{
$mock = $this->getMockWithoutInvokingTheOriginalConstructor("Foo");
}
public function test_php_unit_expectation_52() {
$this->setExpectedException("RuntimeException", "Msg", 123);
}
public function test_php_unit_expectation_56() {
$this->setExpectedExceptionRegExp("RuntimeException", "/Msg.*/", 123);
}
}
| php | MIT | 63b024eaaf8a48445494964bd21a6c38c788f40f | 2026-01-04T15:02:54.911792Z | false |
PHP-CS-Fixer/PHP-CS-Fixer | https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/63b024eaaf8a48445494964bd21a6c38c788f40f/tests/Fixtures/Integration/set/@PSR12-risky.test-out.php | tests/Fixtures/Integration/set/@PSR12-risky.test-out.php | <?php
class Foo
{
public function bar($foo, $bar)
{
}
}
| php | MIT | 63b024eaaf8a48445494964bd21a6c38c788f40f | 2026-01-04T15:02:54.911792Z | false |
PHP-CS-Fixer/PHP-CS-Fixer | https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/63b024eaaf8a48445494964bd21a6c38c788f40f/tests/Fixtures/Integration/set/@PHPUnit3x5Migration-risky.test-in.php | tests/Fixtures/Integration/set/@PHPUnit3x5Migration-risky.test-in.php | <?php
class FooTest extends \PHPUnit_Framework_TestCase {
public function test_dedicate_assert($foo) {
$this->assertTrue(is_null($foo));
$this->assertTrue(is_array($foo));
$this->assertTrue(is_nan($foo));
$this->assertTrue(is_readable($foo));
}
/**
* Foo.
* @expectedException FooException
* @expectedExceptionCode 123
*/
function test_php_unit_no_expectation_annotation_32()
{
bbb();
}
}
| php | MIT | 63b024eaaf8a48445494964bd21a6c38c788f40f | 2026-01-04T15:02:54.911792Z | false |
PHP-CS-Fixer/PHP-CS-Fixer | https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/63b024eaaf8a48445494964bd21a6c38c788f40f/tests/Fixtures/Integration/set/@PSR2.test-out.php | tests/Fixtures/Integration/set/@PSR2.test-out.php | <?php
namespace Vendor\Package;
use FooInterfaceA;
use FooInterfaceB;
use BarClass as Bar;
use OtherVendor\OtherPackage\BazClass;
class Foo extends Bar implements FooInterfaceA
{
const SOME_CONST = 42;
public $aaa = 1;
public $bbb = 2;
public function sampleFunction($a, $arg1, $arg2, $arg3, $foo, $b = null)
{
if ($a === $b) {
bar();
} elseif ($a > $b) {
$foo->bar($arg1);
} else {
BazClass::bar($arg2, $arg3);
}
}
final public static function bar()
{
// method body
}
}
class Aaa implements
Bbb,
Ccc,
Ddd
{
}
| php | MIT | 63b024eaaf8a48445494964bd21a6c38c788f40f | 2026-01-04T15:02:54.911792Z | false |
PHP-CS-Fixer/PHP-CS-Fixer | https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/63b024eaaf8a48445494964bd21a6c38c788f40f/tests/Fixtures/Integration/set/@PHP8x5Migration.test-out.php | tests/Fixtures/Integration/set/@PHP8x5Migration.test-out.php | <?php
// https://wiki.php.net/rfc/deprecations_php_8_5#deprecate_semicolon_after_case_in_switch_statement
switch ($value) {
case 'foo':
case 'bar':
case 'baz':
echo 'foo, bar, or baz';
break;
default:
echo 'Other';
}
| php | MIT | 63b024eaaf8a48445494964bd21a6c38c788f40f | 2026-01-04T15:02:54.911792Z | false |
PHP-CS-Fixer/PHP-CS-Fixer | https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/63b024eaaf8a48445494964bd21a6c38c788f40f/tests/Fixtures/Integration/set/@PHP5x4Migration.test-out.php | tests/Fixtures/Integration/set/@PHP5x4Migration.test-out.php | <?php
$arr = [1, 2, 3];
| php | MIT | 63b024eaaf8a48445494964bd21a6c38c788f40f | 2026-01-04T15:02:54.911792Z | false |
PHP-CS-Fixer/PHP-CS-Fixer | https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/63b024eaaf8a48445494964bd21a6c38c788f40f/tests/Fixtures/Integration/set/@PHPUnit3x0Migration-risky.test-in.php | tests/Fixtures/Integration/set/@PHPUnit3x0Migration-risky.test-in.php | <?php
class FooTest extends \PHPUnit_Framework_TestCase {
public function test_dedicate_assert($foo) {
$this->assertTrue(is_null($foo));
$this->assertTrue(is_array($foo));
$this->assertTrue(is_nan($foo));
$this->assertTrue(is_readable($foo));
}
}
| php | MIT | 63b024eaaf8a48445494964bd21a6c38c788f40f | 2026-01-04T15:02:54.911792Z | false |
PHP-CS-Fixer/PHP-CS-Fixer | https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/63b024eaaf8a48445494964bd21a6c38c788f40f/tests/Fixtures/Integration/set/@PSR12_php71.test-out.php | tests/Fixtures/Integration/set/@PSR12_php71.test-out.php | <?php
class Foo
{
public const FOO = 'foo';
public function bar(): ?int
{
return 0;
}
}
| php | MIT | 63b024eaaf8a48445494964bd21a6c38c788f40f | 2026-01-04T15:02:54.911792Z | false |
PHP-CS-Fixer/PHP-CS-Fixer | https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/63b024eaaf8a48445494964bd21a6c38c788f40f/tests/Fixtures/Integration/set/@PHPUnit5x4Migration-risky.test-in.php | tests/Fixtures/Integration/set/@PHPUnit5x4Migration-risky.test-in.php | <?php
use PHPUnit_Framework_Assert;
use PHPUnit_Framework_BaseTestListener;
use PHPUnit_Framework_TestListener;
use PHPUnit_Aaa;
use PHPUnit_Aaa_Bbb;
use PHPUnit_Aaa_Bbb_Ccc;
use PHPUnit_Aaa_Bbb_Ccc_Ddd;
use PHPUnit_Aaa_Bbb_Ccc_Ddd_Eee;
class FooTest extends \PHPUnit_Framework_TestCase {
public function test_dedicate_assert($foo) {
$this->assertTrue(is_null($foo));
$this->assertTrue(is_array($foo));
$this->assertTrue(is_nan($foo));
$this->assertTrue(is_readable($foo));
}
/**
* Foo.
* @expectedException FooException
* @expectedExceptionCode 123
*/
function test_php_unit_no_expectation_annotation_32()
{
bbb();
}
/**
* Foo.
* @expectedException FooException
* @expectedExceptionMessageRegExp /foo.*$/
* @expectedExceptionCode 123
*/
function test_php_unit_no_expectation_annotation_43()
{
ccc();
}
public function test_mock_54()
{
$mock = $this->getMockWithoutInvokingTheOriginalConstructor("Foo");
}
public function test_php_unit_expectation_52() {
$this->setExpectedException("RuntimeException", "Msg", 123);
}
public function test_php_unit_expectation_56() {
$this->setExpectedExceptionRegExp("RuntimeException", "/Msg.*/", 123);
}
}
| php | MIT | 63b024eaaf8a48445494964bd21a6c38c788f40f | 2026-01-04T15:02:54.911792Z | false |
PHP-CS-Fixer/PHP-CS-Fixer | https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/63b024eaaf8a48445494964bd21a6c38c788f40f/tests/Fixtures/Integration/set/@PHPUnit9x1Migration-risky.test-in.php | tests/Fixtures/Integration/set/@PHPUnit9x1Migration-risky.test-in.php | <?php
use PHPUnit_Framework_Assert;
use PHPUnit_Framework_BaseTestListener;
use PHPUnit_Framework_TestListener;
use PHPUnit_Aaa;
use PHPUnit_Aaa_Bbb;
use PHPUnit_Aaa_Bbb_Ccc;
use PHPUnit_Aaa_Bbb_Ccc_Ddd;
use PHPUnit_Aaa_Bbb_Ccc_Ddd_Eee;
class FooTest extends \PHPUnit_Framework_TestCase {
public function test_dedicate_assert($foo) {
$this->assertFalse(is_dir($foo));
$this->assertFalse(is_writable($foo));
$this->assertFalse(file_exists($foo));
$this->assertFalse(is_readable($foo));
}
}
| php | MIT | 63b024eaaf8a48445494964bd21a6c38c788f40f | 2026-01-04T15:02:54.911792Z | false |
PHP-CS-Fixer/PHP-CS-Fixer | https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/63b024eaaf8a48445494964bd21a6c38c788f40f/tests/Fixtures/Integration/set/@Symfony.test-out.php | tests/Fixtures/Integration/set/@Symfony.test-out.php | <?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Acme;
declare(ticks=1);
/**
* Coding standards demonstration.
*/
class FooBar
{
/**
* @var int
*/
public const SOME_CONST = 42;
private $fooBar;
/**
* @param string $dummy Some argument description
*/
public function __construct($dummy)
{
$this->fooBar = $this->transformText($dummy);
}
/**
* Foo.
*
* @param string $dummy Some argument description
* @param string|null $data Foo
*
* @return string|null Transformed input
*
* @throws \RuntimeException
*/
private function transformText($dummy, array $options = [], $data = null)
{
$fnc = function () { return true; };
$mergedOptions = array_merge(
[
'some_default' => 'values',
'another_default' => 'more values',
],
$options
);
if (true === $dummy) {
return;
}
if ('string' === $dummy) {
if ('values' === $mergedOptions['some_default']) {
return substr($dummy, 0, 5);
}
return ucwords($dummy);
}
throw new \RuntimeException(sprintf('Unrecognized dummy option "%s".', $dummy));
}
private function reverseBoolean($value = null, $theSwitch = false)
{
if (!$theSwitch) {
return;
}
return !$value;
}
/**
* @param string $text
*
* @return string
*/
private function printText($text)
{
echo $text;
}
}
interface Test1Interface
{
}
interface Test2Interface
{
}
class FooBarTest extends \PHPUnit_Framework_TestCase implements Test1Interface, Test2Interface
{
/**
* @expectedException \Exception
*/
public function testFooBar($a)
{
$b = 1 === $a ? 'a' : 'b';
echo $b;
}
}
final class FinalClass
{
final public function finalMethod()
{
}
}
function callback($a, ...$b)
{
return (--$a) * ($b++);
}
/** @var int $a */
$a = &$b;
$c = &$d;
echo 1;
| php | MIT | 63b024eaaf8a48445494964bd21a6c38c788f40f | 2026-01-04T15:02:54.911792Z | false |
PHP-CS-Fixer/PHP-CS-Fixer | https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/63b024eaaf8a48445494964bd21a6c38c788f40f/tests/Fixtures/Integration/set/@PHP8x4Migration.test-out.php | tests/Fixtures/Integration/set/@PHP8x4Migration.test-out.php | <?php
function sample(?string $str = null) {}
new DateTime()->getTimestamp();
| php | MIT | 63b024eaaf8a48445494964bd21a6c38c788f40f | 2026-01-04T15:02:54.911792Z | false |
PHP-CS-Fixer/PHP-CS-Fixer | https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/63b024eaaf8a48445494964bd21a6c38c788f40f/tests/Fixtures/Integration/set/@PER-CS2x0-risky.test-out.php | tests/Fixtures/Integration/set/@PER-CS2x0-risky.test-out.php | <?php
class Foo
{
public function bar($foo, $bar)
{
}
}
| php | MIT | 63b024eaaf8a48445494964bd21a6c38c788f40f | 2026-01-04T15:02:54.911792Z | false |
PHP-CS-Fixer/PHP-CS-Fixer | https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/63b024eaaf8a48445494964bd21a6c38c788f40f/tests/Fixtures/Integration/set/@Symfony.test-in.php | tests/Fixtures/Integration/set/@Symfony.test-in.php | <?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Acme;
declare(ticks=1);
/**
* Coding standards demonstration.
*/
class FooBar
{
/**
* @const int
*/
const SOME_CONST = 42;
private $fooBar;
/**
* @param string $dummy Some argument description
*/
public function __construct($dummy)
{{
$this->fooBar = $this->transformText($dummy);
}}
/**
* Foo
*
* @param string $dummy Some argument description
* @param array $options
* @param string|null $data Foo
* @throws \RuntimeException
* @return string|null Transformed input
*/
private function transformText($dummy, array $options = array(),$data=null)
{
$fnc = function () { return true; };
$mergedOptions = array_merge(
array(
'some_default' => 'values',
'another_default' => 'more values',
),
$options
);
if (true === $dummy) {
return;
}
if ('string' === $dummy) {
if ('values' === $mergedOptions['some_default']) {
return substr($dummy, 0, 5);
}
return ucwords($dummy);
}
throw new \RuntimeException(sprintf('Unrecognized dummy option "%s".', $dummy));
}
private function reverseBoolean($value = null, $theSwitch = false)
{
if (!$theSwitch) {
return;
}
return !$value;
}
/**
* @param string $text
* @return string
*/
private function printText($text)
{
echo $text;
}
}
interface Test1Interface
{
}
interface Test2Interface
{
}
class FooBarTest extends
\PHPUnit_Framework_TestCase
implements
Test1Interface,
Test2Interface
{
/**
* @expectedException Exception
*/
public function testFooBar($a)
{
$b = $a === 1 ? 'a' : 'b';
echo $b;;
}
}
final class FinalClass
{
final function finalMethod(){}
}
function callback($a, ... $b) { return (-- $a) * ($b ++);}
/** @var $a int */
$a =& $b;
$c = & $d;
echo 1 ?> | php | MIT | 63b024eaaf8a48445494964bd21a6c38c788f40f | 2026-01-04T15:02:54.911792Z | false |
PHP-CS-Fixer/PHP-CS-Fixer | https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/63b024eaaf8a48445494964bd21a6c38c788f40f/tests/Fixtures/Integration/set/@PSR12_php70.test-in.php | tests/Fixtures/Integration/set/@PSR12_php70.test-in.php | <?php
declare(strict_types = 1 );
function foo() : void
{
}
$class = new class() {};
| php | MIT | 63b024eaaf8a48445494964bd21a6c38c788f40f | 2026-01-04T15:02:54.911792Z | false |
PHP-CS-Fixer/PHP-CS-Fixer | https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/63b024eaaf8a48445494964bd21a6c38c788f40f/tests/Fixtures/Integration/set/@DoctrineAnnotation.test-in.php | tests/Fixtures/Integration/set/@DoctrineAnnotation.test-in.php | <?php
/**
* @Bar()
* @Baz(
* arg1 = "baz" ,
* arg2 ={
* "baz" =true
* }
* )
*/
class Foo
{
}
| php | MIT | 63b024eaaf8a48445494964bd21a6c38c788f40f | 2026-01-04T15:02:54.911792Z | false |
PHP-CS-Fixer/PHP-CS-Fixer | https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/63b024eaaf8a48445494964bd21a6c38c788f40f/tests/Fixtures/Integration/set/@PER-CS2x0-risky.test-in.php | tests/Fixtures/Integration/set/@PER-CS2x0-risky.test-in.php | <?php
class Foo
{
public function bar($foo = 1, $bar)
{
}
}
| php | MIT | 63b024eaaf8a48445494964bd21a6c38c788f40f | 2026-01-04T15:02:54.911792Z | false |
PHP-CS-Fixer/PHP-CS-Fixer | https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/63b024eaaf8a48445494964bd21a6c38c788f40f/tests/Fixtures/Integration/set/@PHP8x4Migration.test-in.php | tests/Fixtures/Integration/set/@PHP8x4Migration.test-in.php | <?php
function sample(string $str = null) {}
(new DateTime())->getTimestamp();
| php | MIT | 63b024eaaf8a48445494964bd21a6c38c788f40f | 2026-01-04T15:02:54.911792Z | false |
PHP-CS-Fixer/PHP-CS-Fixer | https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/63b024eaaf8a48445494964bd21a6c38c788f40f/tests/Fixtures/Integration/set/@PHP7x4Migration-risky.test-out.php | tests/Fixtures/Integration/set/@PHP7x4Migration-risky.test-out.php | <?php
declare(strict_types=1);
// https://www.php.net/manual/en/migration74.deprecated.php#migration74.deprecated.core.implode-reverse-parameters
// 'implode_call'
$x = implode('', $foo);
// https://www.php.net/manual/en/migration74.deprecated.php#migration74.deprecated.core.real
// 'no_alias_functions'
$z2 = is_float($v);
// 'use_arrow_functions'
$ids = array_map(fn ($item) => $item->id, $items);
| php | MIT | 63b024eaaf8a48445494964bd21a6c38c788f40f | 2026-01-04T15:02:54.911792Z | false |
PHP-CS-Fixer/PHP-CS-Fixer | https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/63b024eaaf8a48445494964bd21a6c38c788f40f/tests/Fixtures/Integration/set/@PHP8x2Migration.test-in.php | tests/Fixtures/Integration/set/@PHP8x2Migration.test-in.php | <?php
$name = 'World';
echo "Hello ${name}!";
| php | MIT | 63b024eaaf8a48445494964bd21a6c38c788f40f | 2026-01-04T15:02:54.911792Z | false |
PHP-CS-Fixer/PHP-CS-Fixer | https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/63b024eaaf8a48445494964bd21a6c38c788f40f/tests/Fixtures/Integration/set/@PSR12_php71.test-in.php | tests/Fixtures/Integration/set/@PSR12_php71.test-in.php | <?php
class Foo
{
const FOO = 'foo';
public function bar(): ? int
{
return 0;
}
}
| php | MIT | 63b024eaaf8a48445494964bd21a6c38c788f40f | 2026-01-04T15:02:54.911792Z | false |
PHP-CS-Fixer/PHP-CS-Fixer | https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/63b024eaaf8a48445494964bd21a6c38c788f40f/tests/Fixtures/Integration/set/@PHP8x0Migration-risky.test-in.php | tests/Fixtures/Integration/set/@PHP8x0Migration-risky.test-in.php | <?php
declare(strict_types=1);
$pieces = [1, 2];
$f = implode($pieces, '');
echo mktime();
$exif = read_exif_data('tests/test1.jpg', 'IFD0');
| php | MIT | 63b024eaaf8a48445494964bd21a6c38c788f40f | 2026-01-04T15:02:54.911792Z | false |
PHP-CS-Fixer/PHP-CS-Fixer | https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/63b024eaaf8a48445494964bd21a6c38c788f40f/tests/Fixtures/Integration/set/@PHPUnit5x7Migration-risky.test-in.php | tests/Fixtures/Integration/set/@PHPUnit5x7Migration-risky.test-in.php | <?php
use PHPUnit_Framework_Assert;
use PHPUnit_Framework_BaseTestListener;
use PHPUnit_Framework_TestListener;
use PHPUnit_Aaa;
use PHPUnit_Aaa_Bbb;
use PHPUnit_Aaa_Bbb_Ccc;
use PHPUnit_Aaa_Bbb_Ccc_Ddd;
use PHPUnit_Aaa_Bbb_Ccc_Ddd_Eee;
class FooTest extends \PHPUnit_Framework_TestCase {
public function test_dedicate_assert($foo) {
$this->assertTrue(is_null($foo));
$this->assertTrue(is_array($foo));
$this->assertTrue(is_nan($foo));
$this->assertTrue(is_readable($foo));
}
/**
* Foo.
* @expectedException FooException
* @expectedExceptionCode 123
*/
function test_php_unit_no_expectation_annotation_32()
{
bbb();
}
/**
* Foo.
* @expectedException FooException
* @expectedExceptionMessageRegExp /foo.*$/
* @expectedExceptionCode 123
*/
function test_php_unit_no_expectation_annotation_43()
{
ccc();
}
public function test_mock_54()
{
$mock = $this->getMockWithoutInvokingTheOriginalConstructor("Foo");
}
public function test_php_unit_expectation_52() {
$this->setExpectedException("RuntimeException", "Msg", 123);
}
public function test_php_unit_expectation_56() {
$this->setExpectedExceptionRegExp("RuntimeException", "/Msg.*/", 123);
}
}
| php | MIT | 63b024eaaf8a48445494964bd21a6c38c788f40f | 2026-01-04T15:02:54.911792Z | false |
PHP-CS-Fixer/PHP-CS-Fixer | https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/63b024eaaf8a48445494964bd21a6c38c788f40f/tests/Fixtures/Integration/set/@Symfony-risky.test-out.php | tests/Fixtures/Integration/set/@Symfony-risky.test-out.php | <?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Acme;
declare(ticks=1);
final class MyClass
{
function finalMethod(){}
}
| php | MIT | 63b024eaaf8a48445494964bd21a6c38c788f40f | 2026-01-04T15:02:54.911792Z | false |
PHP-CS-Fixer/PHP-CS-Fixer | https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/63b024eaaf8a48445494964bd21a6c38c788f40f/tests/Fixtures/Integration/set/@PER-CS3x0-risky.test-out.php | tests/Fixtures/Integration/set/@PER-CS3x0-risky.test-out.php | <?php
class Foo
{
public function bar($foo, $bar)
{
}
}
| php | MIT | 63b024eaaf8a48445494964bd21a6c38c788f40f | 2026-01-04T15:02:54.911792Z | false |
PHP-CS-Fixer/PHP-CS-Fixer | https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/63b024eaaf8a48445494964bd21a6c38c788f40f/tests/Fixtures/Integration/set/@PHPUnit3x2Migration-risky.test-in.php | tests/Fixtures/Integration/set/@PHPUnit3x2Migration-risky.test-in.php | <?php
class FooTest extends \PHPUnit_Framework_TestCase {
public function test_dedicate_assert($foo) {
$this->assertTrue(is_null($foo));
$this->assertTrue(is_array($foo));
$this->assertTrue(is_nan($foo));
$this->assertTrue(is_readable($foo));
}
/**
* Foo.
* @expectedException FooException
* @expectedExceptionCode 123
*/
function test_php_unit_no_expectation_annotation_32()
{
bbb();
}
}
| php | MIT | 63b024eaaf8a48445494964bd21a6c38c788f40f | 2026-01-04T15:02:54.911792Z | false |
PHP-CS-Fixer/PHP-CS-Fixer | https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/63b024eaaf8a48445494964bd21a6c38c788f40f/tests/Fixtures/Linter/multiple.php | tests/Fixtures/Linter/multiple.php | <?php
class Foo {
public protected $foo;
}
| php | MIT | 63b024eaaf8a48445494964bd21a6c38c788f40f | 2026-01-04T15:02:54.911792Z | false |
PHP-CS-Fixer/PHP-CS-Fixer | https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/63b024eaaf8a48445494964bd21a6c38c788f40f/tests/Fixtures/Linter/invalid.php | tests/Fixtures/Linter/invalid.php | <?php
print "line 2";
print "line 3";
print "line 4";
echo echo;
| php | MIT | 63b024eaaf8a48445494964bd21a6c38c788f40f | 2026-01-04T15:02:54.911792Z | false |
PHP-CS-Fixer/PHP-CS-Fixer | https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/63b024eaaf8a48445494964bd21a6c38c788f40f/tests/Fixtures/Linter/valid.php | tests/Fixtures/Linter/valid.php | <?php echo 123;
| php | MIT | 63b024eaaf8a48445494964bd21a6c38c788f40f | 2026-01-04T15:02:54.911792Z | false |
PHP-CS-Fixer/PHP-CS-Fixer | https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/63b024eaaf8a48445494964bd21a6c38c788f40f/tests/Fixtures/FixerTest/encoding/test-utf8.case2.php | tests/Fixtures/FixerTest/encoding/test-utf8.case2.php | abc
<?php
echo 'ą';
| php | MIT | 63b024eaaf8a48445494964bd21a6c38c788f40f | 2026-01-04T15:02:54.911792Z | false |
PHP-CS-Fixer/PHP-CS-Fixer | https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/63b024eaaf8a48445494964bd21a6c38c788f40f/tests/Fixtures/FixerTest/encoding/test-utf8.case2-bom.php | tests/Fixtures/FixerTest/encoding/test-utf8.case2-bom.php | abc
<?php
echo 'ą';
| php | MIT | 63b024eaaf8a48445494964bd21a6c38c788f40f | 2026-01-04T15:02:54.911792Z | false |
PHP-CS-Fixer/PHP-CS-Fixer | https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/63b024eaaf8a48445494964bd21a6c38c788f40f/tests/Fixtures/FixerTest/encoding/test-utf8.case1-bom.php | tests/Fixtures/FixerTest/encoding/test-utf8.case1-bom.php | <?php
echo 'ą';
| php | MIT | 63b024eaaf8a48445494964bd21a6c38c788f40f | 2026-01-04T15:02:54.911792Z | false |
PHP-CS-Fixer/PHP-CS-Fixer | https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/63b024eaaf8a48445494964bd21a6c38c788f40f/tests/Fixtures/FixerTest/encoding/test-utf8.case1.php | tests/Fixtures/FixerTest/encoding/test-utf8.case1.php | <?php
echo 'ą';
| php | MIT | 63b024eaaf8a48445494964bd21a6c38c788f40f | 2026-01-04T15:02:54.911792Z | false |
PHP-CS-Fixer/PHP-CS-Fixer | https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/63b024eaaf8a48445494964bd21a6c38c788f40f/tests/Fixtures/FixerTest/rule-ignored-by-tag/B-with-ignore-tag.php | tests/Fixtures/FixerTest/rule-ignored-by-tag/B-with-ignore-tag.php | <?php
assert(2222 > 0);
// @php-cs-fixer-ignore numeric_literal_separator
| php | MIT | 63b024eaaf8a48445494964bd21a6c38c788f40f | 2026-01-04T15:02:54.911792Z | false |
PHP-CS-Fixer/PHP-CS-Fixer | https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/63b024eaaf8a48445494964bd21a6c38c788f40f/tests/Fixtures/FixerTest/rule-ignored-by-tag/A-without-ignore-tag.php | tests/Fixtures/FixerTest/rule-ignored-by-tag/A-without-ignore-tag.php | <?php
assert(1111 > 0);
| php | MIT | 63b024eaaf8a48445494964bd21a6c38c788f40f | 2026-01-04T15:02:54.911792Z | false |
PHP-CS-Fixer/PHP-CS-Fixer | https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/63b024eaaf8a48445494964bd21a6c38c788f40f/tests/Fixtures/FixerTest/rule-customisation/C.php | tests/Fixtures/FixerTest/rule-customisation/C.php | <?php
namespace Test\RC;
class C
{
public const X = array();
}
| php | MIT | 63b024eaaf8a48445494964bd21a6c38c788f40f | 2026-01-04T15:02:54.911792Z | false |
PHP-CS-Fixer/PHP-CS-Fixer | https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/63b024eaaf8a48445494964bd21a6c38c788f40f/tests/Fixtures/FixerTest/rule-customisation/D.php | tests/Fixtures/FixerTest/rule-customisation/D.php | <?php
namespace Test\RC;
class C
{
public const X = [];
}
| php | MIT | 63b024eaaf8a48445494964bd21a6c38c788f40f | 2026-01-04T15:02:54.911792Z | false |
PHP-CS-Fixer/PHP-CS-Fixer | https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/63b024eaaf8a48445494964bd21a6c38c788f40f/tests/Fixtures/FixerTest/rule-customisation/A.php | tests/Fixtures/FixerTest/rule-customisation/A.php | <?php
namespace Test\RC;
class A
{
public const X = array();
}
| php | MIT | 63b024eaaf8a48445494964bd21a6c38c788f40f | 2026-01-04T15:02:54.911792Z | false |
PHP-CS-Fixer/PHP-CS-Fixer | https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/63b024eaaf8a48445494964bd21a6c38c788f40f/tests/Fixtures/FixerTest/rule-customisation/B.php | tests/Fixtures/FixerTest/rule-customisation/B.php | <?php
namespace Test\RC;
class B
{
public const X = array();
}
| php | MIT | 63b024eaaf8a48445494964bd21a6c38c788f40f | 2026-01-04T15:02:54.911792Z | false |
PHP-CS-Fixer/PHP-CS-Fixer | https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/63b024eaaf8a48445494964bd21a6c38c788f40f/tests/Fixtures/FixerTest/fix/somefile2.php | tests/Fixtures/FixerTest/fix/somefile2.php | <?php
namespace Test\AAaa;
class test
{
var $testA;
public $test_B;
public $testC;
}
| php | MIT | 63b024eaaf8a48445494964bd21a6c38c788f40f | 2026-01-04T15:02:54.911792Z | false |
PHP-CS-Fixer/PHP-CS-Fixer | https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/63b024eaaf8a48445494964bd21a6c38c788f40f/tests/Fixtures/FixerTest/fix/somefile.php | tests/Fixtures/FixerTest/fix/somefile.php | <?php
namespace Test\AAaa;
class test
{
var $testA;
public $test_B;
public $testC;
}
| php | MIT | 63b024eaaf8a48445494964bd21a6c38c788f40f | 2026-01-04T15:02:54.911792Z | false |
PHP-CS-Fixer/PHP-CS-Fixer | https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/63b024eaaf8a48445494964bd21a6c38c788f40f/tests/Fixtures/FixerTest/invalid/somefile.php | tests/Fixtures/FixerTest/invalid/somefile.php | <?php
namespace Test\BBbb;
class test
| php | MIT | 63b024eaaf8a48445494964bd21a6c38c788f40f | 2026-01-04T15:02:54.911792Z | false |
PHP-CS-Fixer/PHP-CS-Fixer | https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/63b024eaaf8a48445494964bd21a6c38c788f40f/tests/Fixtures/ci-integration/.php-cs-fixer.dist.php | tests/Fixtures/ci-integration/.php-cs-fixer.dist.php | <?php
return (new PhpCsFixer\Config())
->setRules(array(
'@Symfony' => true,
))
->setFinder(
PhpCsFixer\Finder::create()
->in(__DIR__)
)
;
| php | MIT | 63b024eaaf8a48445494964bd21a6c38c788f40f | 2026-01-04T15:02:54.911792Z | false |
PHP-CS-Fixer/PHP-CS-Fixer | https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/63b024eaaf8a48445494964bd21a6c38c788f40f/tests/Fixtures/ci-integration/dir c/file c.php | tests/Fixtures/ci-integration/dir c/file c.php | <?php
| php | MIT | 63b024eaaf8a48445494964bd21a6c38c788f40f | 2026-01-04T15:02:54.911792Z | false |
PHP-CS-Fixer/PHP-CS-Fixer | https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/63b024eaaf8a48445494964bd21a6c38c788f40f/tests/Fixtures/ci-integration/dir a/file a.php | tests/Fixtures/ci-integration/dir a/file a.php | <?php
| php | MIT | 63b024eaaf8a48445494964bd21a6c38c788f40f | 2026-01-04T15:02:54.911792Z | false |
PHP-CS-Fixer/PHP-CS-Fixer | https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/63b024eaaf8a48445494964bd21a6c38c788f40f/tests/Fixtures/ci-integration/dir b/file b.php | tests/Fixtures/ci-integration/dir b/file b.php | <?php
| php | MIT | 63b024eaaf8a48445494964bd21a6c38c788f40f | 2026-01-04T15:02:54.911792Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.