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 |
|---|---|---|---|---|---|---|---|---|
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/in/3rdparty/php-parser/parser/stmt/class/simple/000.php | tests/fixtures/Formatter/in/3rdparty/php-parser/parser/stmt/class/simple/000.php | <?php
class A extends B implements C, D {
const A = 'B', C = 'D';
public $a = 'b', $c = 'd';
protected $e;
private $f;
public function a() {}
public static function b($a) {}
final public function c() : B {}
protected function d() {}
private function e() {}
} | php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/in/3rdparty/php-parser/parser/stmt/class/name/006.php | tests/fixtures/Formatter/in/3rdparty/php-parser/parser/stmt/class/name/006.php | <?php class A implements self {} | php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/in/3rdparty/php-parser/parser/stmt/class/name/013.php | tests/fixtures/Formatter/in/3rdparty/php-parser/parser/stmt/class/name/013.php | <?php interface A extends PARENT {} | php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/in/3rdparty/php-parser/parser/stmt/class/name/004.php | tests/fixtures/Formatter/in/3rdparty/php-parser/parser/stmt/class/name/004.php | <?php class A extends PARENT {} | php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/in/3rdparty/php-parser/parser/stmt/class/name/001.php | tests/fixtures/Formatter/in/3rdparty/php-parser/parser/stmt/class/name/001.php | <?php class PARENT {} | php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/in/3rdparty/php-parser/parser/stmt/class/name/009.php | tests/fixtures/Formatter/in/3rdparty/php-parser/parser/stmt/class/name/009.php | <?php interface self {} | php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/in/3rdparty/php-parser/parser/stmt/class/name/012.php | tests/fixtures/Formatter/in/3rdparty/php-parser/parser/stmt/class/name/012.php | <?php interface A extends self {} | php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/in/3rdparty/php-parser/parser/stmt/class/name/014.php | tests/fixtures/Formatter/in/3rdparty/php-parser/parser/stmt/class/name/014.php | <?php interface A extends static {} | php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/in/3rdparty/php-parser/parser/stmt/class/name/007.php | tests/fixtures/Formatter/in/3rdparty/php-parser/parser/stmt/class/name/007.php | <?php class A implements PARENT {} | php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/in/3rdparty/php-parser/parser/stmt/class/name/010.php | tests/fixtures/Formatter/in/3rdparty/php-parser/parser/stmt/class/name/010.php | <?php interface PARENT {} | php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/in/3rdparty/php-parser/parser/stmt/class/name/003.php | tests/fixtures/Formatter/in/3rdparty/php-parser/parser/stmt/class/name/003.php | <?php class A extends self {} | php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/in/3rdparty/php-parser/parser/stmt/class/name/008.php | tests/fixtures/Formatter/in/3rdparty/php-parser/parser/stmt/class/name/008.php | <?php class A implements static {} | php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/in/3rdparty/php-parser/parser/stmt/class/name/000.php | tests/fixtures/Formatter/in/3rdparty/php-parser/parser/stmt/class/name/000.php | <?php class self {} | php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/in/3rdparty/php-parser/parser/stmt/class/name/005.php | tests/fixtures/Formatter/in/3rdparty/php-parser/parser/stmt/class/name/005.php | <?php class A extends static {} | php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/in/3rdparty/php-parser/parser/stmt/class/property_hooks/001.php | tests/fixtures/Formatter/in/3rdparty/php-parser/parser/stmt/class/property_hooks/001.php | <?php
class Test {
public $prop {}
public function __construct(public $prop2 {}) {}
} | php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/in/3rdparty/php-parser/parser/stmt/class/property_hooks/002.php | tests/fixtures/Formatter/in/3rdparty/php-parser/parser/stmt/class/property_hooks/002.php | <?php
class Test {
public $prop {
get() => 42;
}
} | php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/in/3rdparty/php-parser/parser/stmt/class/property_hooks/003.php | tests/fixtures/Formatter/in/3rdparty/php-parser/parser/stmt/class/property_hooks/003.php | <?php
class Test {
public $prop { FOO => bar; }
} | php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/in/3rdparty/php-parser/parser/stmt/class/property_hooks/000.php | tests/fixtures/Formatter/in/3rdparty/php-parser/parser/stmt/class/property_hooks/000.php | <?php
class Test {
public $prop {
get { return 42; }
set { echo $value; }
}
private $prop2 {
get => 42;
set => $value;
}
abstract $prop3 {
&get;
set;
}
public $prop4 {
final get { return 42; }
set(string $value) { }
}
} | php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/in/3rdparty/php-parser/parser/stmt/class/readonlyAnonyous/000.php | tests/fixtures/Formatter/in/3rdparty/php-parser/parser/stmt/class/readonlyAnonyous/000.php | <?php
new readonly class {}; | php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/in/3rdparty/php-parser/parser/stmt/class/final/000.php | tests/fixtures/Formatter/in/3rdparty/php-parser/parser/stmt/class/final/000.php | <?php
final class A {} | php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/in/3rdparty/php-parser/parser/stmt/controlFlow/000.php | tests/fixtures/Formatter/in/3rdparty/php-parser/parser/stmt/controlFlow/000.php | <?php
break;
break 2;
continue;
continue 2;
return;
return $a;
throw $e;
label:
goto label; | php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/in/3rdparty/php-parser/parser/stmt/declare/000.php | tests/fixtures/Formatter/in/3rdparty/php-parser/parser/stmt/declare/000.php | <?php
declare (X='Y');
declare (A='B', C='D') {
echo "foo";
}
declare (A='B', C='D'):
enddeclare; | php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/in/3rdparty/php-parser/parser/stmt/function/nullableTypes/000.php | tests/fixtures/Formatter/in/3rdparty/php-parser/parser/stmt/function/nullableTypes/000.php | <?php
function test(?Foo $bar, ?string $foo) : ?Baz {
} | php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/in/3rdparty/php-parser/parser/stmt/function/returnTypes/000.php | tests/fixtures/Formatter/in/3rdparty/php-parser/parser/stmt/function/returnTypes/000.php | <?php
function test1() {}
function test2() : array {}
function test3() : callable {}
function test4() : Foo\Bar {} | php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/in/3rdparty/php-parser/parser/stmt/function/readonlyFunction/000.php | tests/fixtures/Formatter/in/3rdparty/php-parser/parser/stmt/function/readonlyFunction/000.php | <?php
function readonly() {}
readonly(); | php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/in/3rdparty/php-parser/parser/stmt/function/variadicDefaultValue/000.php | tests/fixtures/Formatter/in/3rdparty/php-parser/parser/stmt/function/variadicDefaultValue/000.php | <?php
function foo(...$foo = []) {} | php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/in/3rdparty/php-parser/parser/stmt/function/disjointNormalFormTypes/000.php | tests/fixtures/Formatter/in/3rdparty/php-parser/parser/stmt/function/disjointNormalFormTypes/000.php | <?php
class Test {
public (A&B)|(X&Y) $prop;
public readonly (A&B)|C $prop2;
}
function test((A&B)|(X&Y) $a): (A&B)|(X&Y) {} | php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/in/3rdparty/php-parser/parser/stmt/function/intersectionTypes/000.php | tests/fixtures/Formatter/in/3rdparty/php-parser/parser/stmt/function/intersectionTypes/000.php | <?php
class Test {
public A&B $prop;
}
function test(A&B $a): A&B {} | php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/in/3rdparty/php-parser/parser/stmt/function/variadic/000.php | tests/fixtures/Formatter/in/3rdparty/php-parser/parser/stmt/function/variadic/000.php | <?php
function test($a, ... $b) {}
function test($a, &... $b) {}
function test($a, Type ... $b) {}
function test($a, Type &... $b) {} | php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/in/3rdparty/php-parser/parser/stmt/function/neverType/000.php | tests/fixtures/Formatter/in/3rdparty/php-parser/parser/stmt/function/neverType/000.php | <?php
function test(): never {} | php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/in/3rdparty/php-parser/parser/stmt/function/byRef/000.php | tests/fixtures/Formatter/in/3rdparty/php-parser/parser/stmt/function/byRef/000.php | <?php
function a(&$b) {}
function &a($b) {} | php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/in/3rdparty/php-parser/parser/stmt/function/parameters_trailing_comma/001.php | tests/fixtures/Formatter/in/3rdparty/php-parser/parser/stmt/function/parameters_trailing_comma/001.php | <?php
class Foo
{
function __construct($name, $value, )
{
}
} | php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/in/3rdparty/php-parser/parser/stmt/function/parameters_trailing_comma/002.php | tests/fixtures/Formatter/in/3rdparty/php-parser/parser/stmt/function/parameters_trailing_comma/002.php | <?php
fn($foo, ) => $bar; | php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/in/3rdparty/php-parser/parser/stmt/function/parameters_trailing_comma/000.php | tests/fixtures/Formatter/in/3rdparty/php-parser/parser/stmt/function/parameters_trailing_comma/000.php | <?php
function foo($bar, ) {
} | php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/in/3rdparty/php-parser/parser/stmt/function/conditional/000.php | tests/fixtures/Formatter/in/3rdparty/php-parser/parser/stmt/function/conditional/000.php | <?php
if (true) {
function A() {}
} | php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/in/3rdparty/php-parser/parser/stmt/function/typeVersions/004.php | tests/fixtures/Formatter/in/3rdparty/php-parser/parser/stmt/function/typeVersions/004.php | <?php
function test(
bool $a1, int $a2, float $a3, string $a4, // PHP 7.0
iterable $a5, // PHP 7.1
object $a6, // PHP 7.2
mixed $a7, // PHP 8.0
null $a8, // PHP 8.0
false $a9, // PHP 8.0
): void {} // PHP 7.1
function test2(): never {} // PHP 8.1 | php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/in/3rdparty/php-parser/parser/stmt/function/typeVersions/001.php | tests/fixtures/Formatter/in/3rdparty/php-parser/parser/stmt/function/typeVersions/001.php | <?php
function test(
bool $a1, int $a2, float $a3, string $a4, // PHP 7.0
iterable $a5, // PHP 7.1
object $a6, // PHP 7.2
mixed $a7, // PHP 8.0
null $a8, // PHP 8.0
false $a9, // PHP 8.0
): void {} // PHP 7.1
function test2(): never {} // PHP 8.1 | php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/in/3rdparty/php-parser/parser/stmt/function/typeVersions/002.php | tests/fixtures/Formatter/in/3rdparty/php-parser/parser/stmt/function/typeVersions/002.php | <?php
function test(
bool $a1, int $a2, float $a3, string $a4, // PHP 7.0
iterable $a5, // PHP 7.1
object $a6, // PHP 7.2
mixed $a7, // PHP 8.0
null $a8, // PHP 8.0
false $a9, // PHP 8.0
): void {} // PHP 7.1
function test2(): never {} // PHP 8.1 | php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/in/3rdparty/php-parser/parser/stmt/function/typeVersions/003.php | tests/fixtures/Formatter/in/3rdparty/php-parser/parser/stmt/function/typeVersions/003.php | <?php
function test(
bool $a1, int $a2, float $a3, string $a4, // PHP 7.0
iterable $a5, // PHP 7.1
object $a6, // PHP 7.2
mixed $a7, // PHP 8.0
null $a8, // PHP 8.0
false $a9, // PHP 8.0
): void {} // PHP 7.1
function test2(): never {} // PHP 8.1 | php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/in/3rdparty/php-parser/parser/stmt/function/typeVersions/000.php | tests/fixtures/Formatter/in/3rdparty/php-parser/parser/stmt/function/typeVersions/000.php | <?php
function test(
bool $a1, int $a2, float $a3, string $a4, // PHP 7.0
iterable $a5, // PHP 7.1
object $a6, // PHP 7.2
mixed $a7, // PHP 8.0
null $a8, // PHP 8.0
false $a9, // PHP 8.0
): void {} // PHP 7.1
function test2(): never {} // PHP 8.1 | php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/in/3rdparty/php-parser/parser/stmt/function/typeVersions/005.php | tests/fixtures/Formatter/in/3rdparty/php-parser/parser/stmt/function/typeVersions/005.php | <?php
function test(
bool $a1, int $a2, float $a3, string $a4, // PHP 7.0
iterable $a5, // PHP 7.1
object $a6, // PHP 7.2
mixed $a7, // PHP 8.0
null $a8, // PHP 8.0
false $a9, // PHP 8.0
): void {} // PHP 7.1
function test2(): never {} // PHP 8.1 | php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/in/3rdparty/php-parser/parser/stmt/function/specialVars/000.php | tests/fixtures/Formatter/in/3rdparty/php-parser/parser/stmt/function/specialVars/000.php | <?php
function a() {
global $a, ${'b'}, $$c;
static $c, $d = 'e';
} | php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/in/3rdparty/php-parser/parser/stmt/function/defaultValues/000.php | tests/fixtures/Formatter/in/3rdparty/php-parser/parser/stmt/function/defaultValues/000.php | <?php
function a(
$b = null,
$c = 'foo',
$d = A::B,
$f = +1,
$g = -1.0,
$h = array(),
$i = [],
$j = ['foo'],
$k = ['foo', 'bar' => 'baz']
) {} | php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/in/3rdparty/php-parser/parser/stmt/function/nullFalseTrueTypes/001.php | tests/fixtures/Formatter/in/3rdparty/php-parser/parser/stmt/function/nullFalseTrueTypes/001.php | <?php
function test(): null {}
function test(): false {}
function test(): true {} | php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/in/3rdparty/php-parser/parser/stmt/function/nullFalseTrueTypes/000.php | tests/fixtures/Formatter/in/3rdparty/php-parser/parser/stmt/function/nullFalseTrueTypes/000.php | <?php
function test(): null {}
function test(): false {}
function test(): true {} | php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/in/3rdparty/php-parser/parser/stmt/function/typeDeclarations/000.php | tests/fixtures/Formatter/in/3rdparty/php-parser/parser/stmt/function/typeDeclarations/000.php | <?php
function a($b, array $c, callable $d, E $f) {} | php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/in/3rdparty/php-parser/parser/stmt/function/unionTypes/000.php | tests/fixtures/Formatter/in/3rdparty/php-parser/parser/stmt/function/unionTypes/000.php | <?php
class Test {
public A|iterable|null $prop;
}
function test(A|B $a): int|false {} | php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/in/3rdparty/php-parser/parser/stmt/function/builtinTypeDeclarations/000.php | tests/fixtures/Formatter/in/3rdparty/php-parser/parser/stmt/function/builtinTypeDeclarations/000.php | <?php
function test(bool $a, Int $b, FLOAT $c, StRiNg $d, iterable $e, object $f, mixed $g) : void {} | php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Formatter/in/3rdparty/php-parser/parser/stmt/const/000.php | tests/fixtures/Formatter/in/3rdparty/php-parser/parser/stmt/const/000.php | <?php
const A = 0, B = 1.0, C = 'A', D = E;
#[Example]
const WithOneAttribute = 1;
#[First]
#[Second]
const WithUngroupedAttriutes = 2;
#[First, Second]
const WithGroupAttributes = 3;
#[Example]
const ThisIsInvalid = 4,
AttributesOnMultipleConstants = 5; | php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/Internal/Problem/valid.php | tests/fixtures/Internal/Problem/valid.php | <?php
class Foo
{
public function bar(): void {}
}
| php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/App/PrettyPHPCommand/operators-last/formatted.php | tests/fixtures/App/PrettyPHPCommand/operators-last/formatted.php | <?php
$baz =
$foo ||
$bar;
$a = ($b /
$c) *
100;
| php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/App/PrettyPHPCommand/empty-config/Foo.php | tests/fixtures/App/PrettyPHPCommand/empty-config/Foo.php | <?php declare(strict_types=1);
namespace Foo\Bar;
/**
* Summary
*/
class Foo
{
public int $Bar;
public function __construct()
{
$a = 0; // Short
$foo = 1; // Long
$quuux = 2; // Longer
$this->Bar = 3; // Longest
}
}
| php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/App/PrettyPHPCommand/unformatted/Foo.php | tests/fixtures/App/PrettyPHPCommand/unformatted/Foo.php | <?php declare(strict_types=1);
namespace Foo\Bar;
/**
* Summary
*/
class Foo
{
public int $Bar;
public function __construct()
{
$a = 0; // Short
$foo = 1; // Long
$quuux = 2; // Longer
$this->Bar = 3; // Longest
}
}
| php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/App/PrettyPHPCommand/unformatted/Bar.php | tests/fixtures/App/PrettyPHPCommand/unformatted/Bar.php | <?php declare(strict_types=1);
namespace Foo\Bar;
/**
* Summary
*/
class Bar
{
public int $Foo;
public function __construct()
{
$a = 0; // Short
$foo = 1; // Long
$quuux = 2; // Longer
$this->Foo = 3; // Longest
}
}
| php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/App/PrettyPHPCommand/operators-mixed/formatted.php | tests/fixtures/App/PrettyPHPCommand/operators-mixed/formatted.php | <?php
$baz =
$foo ||
$bar;
$a = ($b
/ $c)
* 100;
| php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/App/PrettyPHPCommand/sort-imports-by-depth/formatted.php | tests/fixtures/App/PrettyPHPCommand/sort-imports-by-depth/formatted.php | <?php
use B\C\F\{H, I};
use B\C\F\G;
use B\C\F\J;
use B\C\E;
use B\D;
use A;
| php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/App/PrettyPHPCommand/sort-imports-by-name/formatted.php | tests/fixtures/App/PrettyPHPCommand/sort-imports-by-name/formatted.php | <?php
use A;
use B\C\E;
use B\C\F\G;
use B\C\F\{H, I};
use B\C\F\J;
use B\D;
| php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/App/PrettyPHPCommand/invalid-syntax/invalid.php | tests/fixtures/App/PrettyPHPCommand/invalid-syntax/invalid.php | <?php
if ($a > $b):
echo $a . ' is greater than ' . $b;
else if ($a == $b):
echo 'The above line causes a parse error.';
endif;
| php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/App/PrettyPHPCommand/invalid-syntax/valid.php | tests/fixtures/App/PrettyPHPCommand/invalid-syntax/valid.php | <?php
print "Hello {$arr['fruit']}";
| php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/App/PrettyPHPCommand/operators-first/formatted.php | tests/fixtures/App/PrettyPHPCommand/operators-first/formatted.php | <?php
$baz =
$foo
|| $bar;
$a = ($b
/ $c)
* 100;
| php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/App/PrettyPHPCommand/invalid-enable-value/formatted.php | tests/fixtures/App/PrettyPHPCommand/invalid-enable-value/formatted.php | <?php
$baz =
$foo ||
$bar;
$a = ($b
/ $c)
* 100;
| php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/App/PrettyPHPCommand/no-sort-imports/Foo.php | tests/fixtures/App/PrettyPHPCommand/no-sort-imports/Foo.php | <?php declare(strict_types=1);
namespace Foo\Bar;
use function substr;
use function in_array;
use Qux\Factory;
use Foo\Exception\InvalidValueException;
/**
* Summary
*/
class Foo
{
public int $Bar;
public function __construct()
{
$a = 0; // Short
$foo = 1; // Long
$quuux = 2;... | php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/fixtures/App/PrettyPHPCommand/tight/Foo.php | tests/fixtures/App/PrettyPHPCommand/tight/Foo.php | <?php declare(strict_types=1);
namespace Foo\Bar;
/**
* Summary
*/
class Foo
{
public int $Bar;
public string $Baz;
private array $Qux;
public function __construct()
{
$a = 0; // Short
$foo = 1; // Long
$quuux = 2; // Longer
$this->Bar = 3; // Longest
}... | php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/unit/TokenIndexTest.php | tests/unit/TokenIndexTest.php | <?php declare(strict_types=1);
namespace Lkrms\PrettyPHP\Tests;
use Lkrms\PrettyPHP\AbstractTokenIndex as TokenIndex;
use Lkrms\PrettyPHP\TokenIndex as StandardTokenIndex;
use Salient\PHPDoc\PHPDoc;
use Salient\Utility\Exception\ShouldNotHappenException;
use Salient\Utility\Arr;
use Salient\Utility\File;
use Salient\... | php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/unit/TestCase.php | tests/unit/TestCase.php | <?php declare(strict_types=1);
namespace Lkrms\PrettyPHP\Tests;
use Lkrms\PrettyPHP\Catalog\FormatterFlag;
use Lkrms\PrettyPHP\Contract\Extension;
use Lkrms\PrettyPHP\Contract\HasTokenNames;
use Lkrms\PrettyPHP\Formatter;
use Lkrms\PrettyPHP\FormatterBuilder as FormatterB;
use PHPUnit\Framework\TestCase as PHPUnitTes... | php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/unit/FormatterTest.php | tests/unit/FormatterTest.php | <?php declare(strict_types=1);
namespace Lkrms\PrettyPHP\Tests;
use Lkrms\PrettyPHP\Catalog\ImportSortOrder;
use Lkrms\PrettyPHP\Rule\AlignArrowFunctions;
use Lkrms\PrettyPHP\Rule\AlignChains;
use Lkrms\PrettyPHP\Rule\AlignComments;
use Lkrms\PrettyPHP\Rule\AlignData;
use Lkrms\PrettyPHP\Rule\AlignLists;
use Lkrms\Pr... | php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/unit/ParserTest.php | tests/unit/ParserTest.php | <?php declare(strict_types=1);
namespace Lkrms\PrettyPHP\Tests;
use Lkrms\PrettyPHP\Catalog\DeclarationType as Type;
use Lkrms\PrettyPHP\Catalog\TokenData as Data;
use Lkrms\PrettyPHP\Filter\RemoveWhitespace;
use Lkrms\PrettyPHP\Formatter;
use Lkrms\PrettyPHP\Parser;
use Lkrms\PrettyPHP\TokenIndex;
use Lkrms\PrettyPH... | php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | true |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/unit/PhpParserTestParser.php | tests/unit/PhpParserTestParser.php | <?php declare(strict_types=1);
namespace Lkrms\PrettyPHP\Tests;
use Salient\Utility\Regex;
/**
* Adapted from PhpParser\CodeTestParser in nikic/php-parser
*/
final class PhpParserTestParser
{
/**
* @param int<1,max> $chunksPerTest
* @return array{string,string[]}
*/
public function parseTest... | php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/unit/TokenTest.php | tests/unit/TokenTest.php | <?php declare(strict_types=1);
namespace Lkrms\PrettyPHP\Tests;
use Lkrms\PrettyPHP\Catalog\TokenSubId as SubId;
use Lkrms\PrettyPHP\Formatter;
use Salient\Utility\Reflect;
final class TokenTest extends TestCase
{
/**
* @requires PHP >= 8.1
*/
public function testGetColonSubId(): void
{
... | php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/unit/Contract/HasOperatorPrecedenceTest.php | tests/unit/Contract/HasOperatorPrecedenceTest.php | <?php declare(strict_types=1);
namespace Lkrms\PrettyPHP\Tests\Contract;
use Lkrms\PrettyPHP\Contract\HasOperatorPrecedence;
use Lkrms\PrettyPHP\Contract\HasTokenIndex;
use Lkrms\PrettyPHP\Tests\TestCase;
use Salient\Utility\Arr;
use Salient\Utility\Get;
use Salient\Utility\Reflect;
final class HasOperatorPrecedence... | php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/unit/Filter/MoveCommentsTest.php | tests/unit/Filter/MoveCommentsTest.php | <?php declare(strict_types=1);
namespace Lkrms\PrettyPHP\Tests\Filter;
use Lkrms\PrettyPHP\Tests\TestCase;
use Lkrms\PrettyPHP\Formatter;
use Lkrms\PrettyPHP\FormatterBuilder as FormatterB;
use Lkrms\PrettyPHP\TokenIndex;
final class MoveCommentsTest extends TestCase
{
/**
* @dataProvider outputProvider
... | php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/unit/Filter/NormaliseKeywordsTest.php | tests/unit/Filter/NormaliseKeywordsTest.php | <?php declare(strict_types=1);
namespace Lkrms\PrettyPHP\Tests\Filter;
use Lkrms\PrettyPHP\Tests\TestCase;
final class NormaliseKeywordsTest extends TestCase
{
/**
* @dataProvider outputProvider
*/
public function testOutput(string $expected, string $code): void
{
$this->assertCodeForma... | php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/unit/Filter/SortImportsTest.php | tests/unit/Filter/SortImportsTest.php | <?php declare(strict_types=1);
namespace Lkrms\PrettyPHP\Tests\Filter;
use Lkrms\PrettyPHP\Catalog\ImportSortOrder;
use Lkrms\PrettyPHP\Filter\SortImports;
use Lkrms\PrettyPHP\Rule\AlignComments;
use Lkrms\PrettyPHP\Tests\TestCase;
use Lkrms\PrettyPHP\Formatter;
use Lkrms\PrettyPHP\FormatterBuilder as FormatterB;
fi... | php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/unit/Rule/ProtectStringsTest.php | tests/unit/Rule/ProtectStringsTest.php | <?php declare(strict_types=1);
namespace Lkrms\PrettyPHP\Tests\Rule;
use Lkrms\PrettyPHP\Tests\TestCase;
final class ProtectStringsTest extends TestCase
{
/**
* @dataProvider outputProvider
*/
public function testOutput(string $expected, string $code): void
{
$this->assertCodeFormatIs($... | php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/unit/Rule/FormatHeredocsTest.php | tests/unit/Rule/FormatHeredocsTest.php | <?php declare(strict_types=1);
namespace Lkrms\PrettyPHP\Tests\Rule;
use Lkrms\PrettyPHP\Catalog\HeredocIndent;
use Lkrms\PrettyPHP\Tests\TestCase;
use Lkrms\PrettyPHP\Formatter;
use Lkrms\PrettyPHP\FormatterBuilder as FormatterB;
final class FormatHeredocsTest extends TestCase
{
/**
* @dataProvider outputP... | php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/unit/Rule/AlignDataTest.php | tests/unit/Rule/AlignDataTest.php | <?php declare(strict_types=1);
namespace Lkrms\PrettyPHP\Tests\Rule;
use Lkrms\PrettyPHP\Rule\AlignData;
use Lkrms\PrettyPHP\Rule\AlignLists;
use Lkrms\PrettyPHP\Rule\StrictLists;
use Lkrms\PrettyPHP\Tests\TestCase;
use Lkrms\PrettyPHP\Formatter;
use Lkrms\PrettyPHP\FormatterBuilder as FormatterB;
final class AlignD... | php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/unit/Rule/PlaceBracesTest.php | tests/unit/Rule/PlaceBracesTest.php | <?php declare(strict_types=1);
namespace Lkrms\PrettyPHP\Tests\Rule;
use Lkrms\PrettyPHP\Tests\TestCase;
final class PlaceBracesTest extends TestCase
{
/**
* @dataProvider outputProvider
*/
public function testOutput(string $expected, string $code): void
{
$this->assertCodeFormatIs($exp... | php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/unit/Rule/PreserveOneLineStatementsTest.php | tests/unit/Rule/PreserveOneLineStatementsTest.php | <?php declare(strict_types=1);
namespace Lkrms\PrettyPHP\Tests\Rule;
use Lkrms\PrettyPHP\Rule\PreserveOneLineStatements;
use Lkrms\PrettyPHP\Tests\TestCase;
use Lkrms\PrettyPHP\Formatter;
use Lkrms\PrettyPHP\FormatterBuilder as FormatterB;
final class PreserveOneLineStatementsTest extends TestCase
{
/**
* @... | php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/unit/Rule/PlaceCommentsTest.php | tests/unit/Rule/PlaceCommentsTest.php | <?php declare(strict_types=1);
namespace Lkrms\PrettyPHP\Tests\Rule;
use Lkrms\PrettyPHP\Tests\TestCase;
final class PlaceCommentsTest extends TestCase
{
/**
* @dataProvider outputProvider
*/
public function testOutput(string $expected, string $code): void
{
$this->assertCodeFormatIs($e... | php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/unit/Rule/SemiStrictExpressionsTest.php | tests/unit/Rule/SemiStrictExpressionsTest.php | <?php declare(strict_types=1);
namespace Lkrms\PrettyPHP\Tests\Rule;
use Lkrms\PrettyPHP\Rule\SemiStrictExpressions;
use Lkrms\PrettyPHP\Tests\TestCase;
use Lkrms\PrettyPHP\Formatter;
use Lkrms\PrettyPHP\FormatterBuilder as FormatterB;
use Lkrms\PrettyPHP\TokenIndex;
final class SemiStrictExpressionsTest extends Tes... | php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/unit/Rule/AlignTernaryOperatorsTest.php | tests/unit/Rule/AlignTernaryOperatorsTest.php | <?php declare(strict_types=1);
namespace Lkrms\PrettyPHP\Tests\Rule;
use Lkrms\PrettyPHP\Rule\AlignChains;
use Lkrms\PrettyPHP\Rule\AlignTernaryOperators;
use Lkrms\PrettyPHP\Tests\TestCase;
final class AlignTernaryOperatorsTest extends TestCase
{
/**
* @dataProvider outputProvider
*/
public functi... | php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/unit/Rule/StandardSpacingTest.php | tests/unit/Rule/StandardSpacingTest.php | <?php declare(strict_types=1);
namespace Lkrms\PrettyPHP\Tests\Rule;
use Lkrms\PrettyPHP\Rule\AlignData;
use Lkrms\PrettyPHP\Tests\TestCase;
use Lkrms\PrettyPHP\Formatter;
use Lkrms\PrettyPHP\FormatterBuilder as FormatterB;
final class StandardSpacingTest extends TestCase
{
/**
* @dataProvider outputProvide... | php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/unit/Rule/VerticalSpacingTest.php | tests/unit/Rule/VerticalSpacingTest.php | <?php declare(strict_types=1);
namespace Lkrms\PrettyPHP\Tests\Rule;
use Lkrms\PrettyPHP\Filter\MoveComments;
use Lkrms\PrettyPHP\Rule\PreserveOneLineStatements;
use Lkrms\PrettyPHP\Tests\TestCase;
use Lkrms\PrettyPHP\Formatter;
use Lkrms\PrettyPHP\FormatterBuilder as FormatterB;
use Lkrms\PrettyPHP\TokenIndex;
fina... | php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/unit/Rule/AlignChainsTest.php | tests/unit/Rule/AlignChainsTest.php | <?php declare(strict_types=1);
namespace Lkrms\PrettyPHP\Tests\Rule;
use Lkrms\PrettyPHP\Rule\AlignChains;
use Lkrms\PrettyPHP\Rule\AlignTernaryOperators;
use Lkrms\PrettyPHP\Tests\TestCase;
final class AlignChainsTest extends TestCase
{
/**
* @dataProvider outputProvider
*/
public function testOut... | php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/unit/Rule/StrictListsTest.php | tests/unit/Rule/StrictListsTest.php | <?php declare(strict_types=1);
namespace Lkrms\PrettyPHP\Tests\Rule;
use Lkrms\PrettyPHP\Rule\StrictLists;
use Lkrms\PrettyPHP\Tests\TestCase;
final class StrictListsTest extends TestCase
{
/**
* @dataProvider outputProvider
*/
public function testOutput(string $expected, string $code): void
{
... | php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/unit/Rule/PreserveNewlinesTest.php | tests/unit/Rule/PreserveNewlinesTest.php | <?php declare(strict_types=1);
namespace Lkrms\PrettyPHP\Tests\Rule;
use Lkrms\PrettyPHP\Rule\PreserveNewlines;
use Lkrms\PrettyPHP\Tests\TestCase;
use Lkrms\PrettyPHP\Formatter;
use Lkrms\PrettyPHP\FormatterBuilder as FormatterB;
final class PreserveNewlinesTest extends TestCase
{
/**
* @dataProvider outpu... | php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/unit/Rule/OperatorSpacingTest.php | tests/unit/Rule/OperatorSpacingTest.php | <?php declare(strict_types=1);
namespace Lkrms\PrettyPHP\Tests\Rule;
use Lkrms\PrettyPHP\Tests\TestCase;
final class OperatorSpacingTest extends TestCase
{
/**
* @dataProvider outputProvider
*/
public function testOutput(string $expected, string $code): void
{
$this->assertCodeFormatIs(... | php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/unit/Rule/HangingIndentationTest.php | tests/unit/Rule/HangingIndentationTest.php | <?php declare(strict_types=1);
namespace Lkrms\PrettyPHP\Tests\Rule;
use Lkrms\PrettyPHP\Catalog\FormatterFlag;
use Lkrms\PrettyPHP\Rule\AlignChains;
use Lkrms\PrettyPHP\Tests\TestCase;
use Lkrms\PrettyPHP\Formatter;
use Lkrms\PrettyPHP\FormatterBuilder as FormatterB;
use Lkrms\PrettyPHP\TokenIndex;
final class Hang... | php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/unit/Rule/AlignCommentsTest.php | tests/unit/Rule/AlignCommentsTest.php | <?php declare(strict_types=1);
namespace Lkrms\PrettyPHP\Tests\Rule;
use Lkrms\PrettyPHP\Rule\AlignComments;
use Lkrms\PrettyPHP\Tests\TestCase;
final class AlignCommentsTest extends TestCase
{
/**
* @dataProvider outputProvider
*/
public function testOutput(string $expected, string $code): void
... | php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/unit/Rule/DeclarationSpacingTest.php | tests/unit/Rule/DeclarationSpacingTest.php | <?php declare(strict_types=1);
namespace Lkrms\PrettyPHP\Tests\Rule;
use Lkrms\PrettyPHP\Filter\SortImports;
use Lkrms\PrettyPHP\Rule\PreserveOneLineStatements;
use Lkrms\PrettyPHP\Tests\TestCase;
use Lkrms\PrettyPHP\Formatter;
use Lkrms\PrettyPHP\FormatterBuilder as FormatterB;
final class DeclarationSpacingTest ex... | php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/unit/Rule/AlignListsTest.php | tests/unit/Rule/AlignListsTest.php | <?php declare(strict_types=1);
namespace Lkrms\PrettyPHP\Tests\Rule;
use Lkrms\PrettyPHP\Rule\AlignChains;
use Lkrms\PrettyPHP\Rule\AlignLists;
use Lkrms\PrettyPHP\Tests\TestCase;
final class AlignListsTest extends TestCase
{
/**
* @dataProvider outputProvider
*/
public function testOutput(string $... | php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/unit/Rule/AlignArrowFunctionsTest.php | tests/unit/Rule/AlignArrowFunctionsTest.php | <?php declare(strict_types=1);
namespace Lkrms\PrettyPHP\Tests\Rule;
use Lkrms\PrettyPHP\Rule\AlignArrowFunctions;
use Lkrms\PrettyPHP\Rule\PreserveNewlines;
use Lkrms\PrettyPHP\Tests\TestCase;
use Lkrms\PrettyPHP\Formatter;
use Lkrms\PrettyPHP\FormatterBuilder as FormatterB;
final class AlignArrowFunctionsTest exte... | php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/unit/Rule/ControlStructureSpacingTest.php | tests/unit/Rule/ControlStructureSpacingTest.php | <?php declare(strict_types=1);
namespace Lkrms\PrettyPHP\Tests\Rule;
use Lkrms\PrettyPHP\Tests\TestCase;
final class ControlStructureSpacingTest extends TestCase
{
/**
* @dataProvider outputProvider
*/
public function testOutput(string $expected, string $code): void
{
$this->assertCodeF... | php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/unit/Rule/StrictExpressionsTest.php | tests/unit/Rule/StrictExpressionsTest.php | <?php declare(strict_types=1);
namespace Lkrms\PrettyPHP\Tests\Rule;
use Lkrms\PrettyPHP\Rule\StrictExpressions;
use Lkrms\PrettyPHP\Tests\TestCase;
use Lkrms\PrettyPHP\Formatter;
use Lkrms\PrettyPHP\FormatterBuilder as FormatterB;
use Lkrms\PrettyPHP\TokenIndex;
final class StrictExpressionsTest extends TestCase
{
... | php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/unit/Rule/NormaliseStringsTest.php | tests/unit/Rule/NormaliseStringsTest.php | <?php declare(strict_types=1);
namespace Lkrms\PrettyPHP\Tests\Rule;
use Lkrms\PrettyPHP\Tests\TestCase;
use Lkrms\PrettyPHP\Formatter;
use Lkrms\PrettyPHP\FormatterBuilder as FormatterB;
final class NormaliseStringsTest extends TestCase
{
/**
* @dataProvider outputProvider
*
* @param Formatter|Fo... | php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/unit/Rule/NormaliseCommentsTest.php | tests/unit/Rule/NormaliseCommentsTest.php | <?php declare(strict_types=1);
namespace Lkrms\PrettyPHP\Tests\Rule;
use Lkrms\PrettyPHP\Tests\TestCase;
final class NormaliseCommentsTest extends TestCase
{
/**
* @dataProvider outputProvider
*/
public function testOutput(string $expected, string $code): void
{
$this->assertCodeFormatI... | php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/unit/Rule/Preset/Internal/WordPressTokenIndexTest.php | tests/unit/Rule/Preset/Internal/WordPressTokenIndexTest.php | <?php declare(strict_types=1);
namespace Lkrms\PrettyPHP\Tests\Rule\Preset\Internal;
use Lkrms\PrettyPHP\Rule\Preset\Internal\WordPressTokenIndex;
use Lkrms\PrettyPHP\Tests\TokenIndexTest;
use Lkrms\PrettyPHP\AbstractTokenIndex as TokenIndex;
final class WordPressTokenIndexTest extends TokenIndexTest
{
protected... | php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/unit/Internal/ProblemTest.php | tests/unit/Internal/ProblemTest.php | <?php declare(strict_types=1);
namespace Lkrms\PrettyPHP\Tests\Internal;
use Lkrms\PrettyPHP\Filter\CollectColumn;
use Lkrms\PrettyPHP\Filter\RemoveWhitespace;
use Lkrms\PrettyPHP\Internal\Problem;
use Lkrms\PrettyPHP\Tests\TestCase;
use Lkrms\PrettyPHP\Formatter;
use Lkrms\PrettyPHP\Parser;
use Salient\Utility\Arr;
... | php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
lkrms/pretty-php | https://github.com/lkrms/pretty-php/blob/5d244a4b7a9b484581edbb5df596a4e76ba17fa6/tests/unit/App/PrettyPHPCommandTest.php | tests/unit/App/PrettyPHPCommandTest.php | <?php declare(strict_types=1);
namespace Lkrms\PrettyPHP\Tests\App;
use Lkrms\PrettyPHP\App\PrettyPHPCommand;
use Lkrms\PrettyPHP\Tests\TestCase;
use Salient\Cli\CliApplication;
use Salient\Console\Format\Formatter;
use Salient\Contract\Core\Exception\Exception;
use Salient\Core\Facade\Console;
use Salient\Core\Proce... | php | MIT | 5d244a4b7a9b484581edbb5df596a4e76ba17fa6 | 2026-01-05T04:31:39.990954Z | false |
protonemedia/laravel-eloquent-scope-as-select | https://github.com/protonemedia/laravel-eloquent-scope-as-select/blob/30a1bbac1f6f6e0a28571160996804ddc1c7d12a/src/NegativeNullableBooleanCaster.php | src/NegativeNullableBooleanCaster.php | <?php declare(strict_types=1);
namespace ProtoneMedia\LaravelEloquentScopeAsSelect;
use Illuminate\Contracts\Database\Eloquent\CastsAttributes;
class NegativeNullableBooleanCaster implements CastsAttributes
{
/**
* Transform the attribute from the underlying model values.
*
* @param \Illuminate\D... | php | MIT | 30a1bbac1f6f6e0a28571160996804ddc1c7d12a | 2026-01-05T04:32:04.080601Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.