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
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/tests/fake/structure/migration_directory_3/20150709132012_third.php
tests/fake/structure/migration_directory_3/20150709132012_third.php
<?php declare(strict_types=1); namespace Phoenix\Tests\Fake\Structure; use Phoenix\Migration\AbstractMigration; final class Third extends AbstractMigration { public function up(): void { } public function down(): void { } }
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/tests/fake/structure/migration_directory_2/20150921111111_fourth_add.php
tests/fake/structure/migration_directory_2/20150921111111_fourth_add.php
<?php declare(strict_types=1); use Phoenix\Migration\AbstractMigration; final class FourthAdd extends AbstractMigration { public function up(): void { } public function down(): void { } }
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/tests/fake/structure/migration_directory_1/20150428140909_first_migration.php
tests/fake/structure/migration_directory_1/20150428140909_first_migration.php
<?php declare(strict_types=1); namespace Fake\Migration; use Phoenix\Migration\AbstractMigration; final class First extends AbstractMigration { public function up(): void { } public function down(): void { } }
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/tests/fake/structure/migration_directory_1/20150518091732_second_change_of_something.php
tests/fake/structure/migration_directory_1/20150518091732_second_change_of_something.php
<?php declare(strict_types=1); use Phoenix\Migration\AbstractMigration; final class SecondChangeOfSomething extends AbstractMigration { public function up(): void { } public function down(): void { } }
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/tests/Dumper/DumperTest.php
tests/Dumper/DumperTest.php
<?php declare(strict_types=1); namespace Phoenix\Tests\Dumper; use Phoenix\Database\Element\Column; use Phoenix\Database\Element\ColumnSettings; use Phoenix\Database\Element\ForeignKey; use Phoenix\Database\Element\Index; use Phoenix\Database\Element\IndexColumn; use Phoenix\Database\Element\MigrationTable; use Phoe...
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/tests/Dumper/IndenterTest.php
tests/Dumper/IndenterTest.php
<?php declare(strict_types=1); namespace Phoenix\Tests\Dumper; use Phoenix\Dumper\Indenter; use PHPUnit\Framework\TestCase; final class IndenterTest extends TestCase { public function testDefault(): void { $indenter = new Indenter(); $this->assertEquals(' ', $indenter->indent()); } ...
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/tests/Command/PgsqlCommandBehavior.php
tests/Command/PgsqlCommandBehavior.php
<?php declare(strict_types=1); namespace Phoenix\Tests\Command; use Phoenix\Tests\Helpers\Adapter\PgsqlCleanupAdapter; use Phoenix\Tests\Helpers\Pdo\PgsqlPdo; trait PgsqlCommandBehavior { protected function getEnvironment(): string { return 'pgsql'; } protected function getAdapter(): PgsqlC...
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/tests/Command/MysqlCommandBehavior.php
tests/Command/MysqlCommandBehavior.php
<?php declare(strict_types=1); namespace Phoenix\Tests\Command; use Phoenix\Tests\Helpers\Adapter\MysqlCleanupAdapter; use Phoenix\Tests\Helpers\Pdo\MysqlPdo; trait MysqlCommandBehavior { protected function getEnvironment(): string { return 'mysql'; } protected function getAdapter(): MysqlC...
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/tests/Command/BaseCommandTest.php
tests/Command/BaseCommandTest.php
<?php declare(strict_types=1); namespace Phoenix\Tests\Command; use Phoenix\Config\Parser\PhpConfigParser; use Phoenix\Tests\Helpers\Adapter\CleanupInterface; use Phoenix\Tests\Mock\Command\Input; use Phoenix\Tests\Mock\Command\Output; use PHPUnit\Framework\TestCase; use Symfony\Component\Finder\Finder; abstract cl...
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/tests/Command/DumpCommand/MysqlDumpCommandTest.php
tests/Command/DumpCommand/MysqlDumpCommandTest.php
<?php declare(strict_types=1); namespace Phoenix\Tests\Command\DumpCommand; use Phoenix\Tests\Command\MysqlCommandBehavior; final class MysqlDumpCommandTest extends DumpCommandTest { use MysqlCommandBehavior; }
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/tests/Command/DumpCommand/PgsqlDumpCommandTest.php
tests/Command/DumpCommand/PgsqlDumpCommandTest.php
<?php declare(strict_types=1); namespace Phoenix\Tests\Command\DumpCommand; use Phoenix\Tests\Command\PgsqlCommandBehavior; final class PgsqlDumpCommandTest extends DumpCommandTest { use PgsqlCommandBehavior; }
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/tests/Command/DumpCommand/DumpCommandTest.php
tests/Command/DumpCommand/DumpCommandTest.php
<?php declare(strict_types=1); namespace Phoenix\Tests\Command\DumpCommand; use Phoenix\Command\DumpCommand; use Phoenix\Command\InitCommand; use Phoenix\Command\MigrateCommand; use Phoenix\Exception\ConfigException; use Phoenix\Exception\PhoenixException; use Phoenix\Migration\ClassNameCreator; use Phoenix\Tests\Co...
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/tests/Command/RollbackCommand/MysqlRollbackCommandTest.php
tests/Command/RollbackCommand/MysqlRollbackCommandTest.php
<?php declare(strict_types=1); namespace Phoenix\Tests\Command\RollbackCommand; use Phoenix\Tests\Command\MysqlCommandBehavior; final class MysqlRollbackCommandTest extends RollbackCommandTest { use MysqlCommandBehavior; }
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/tests/Command/RollbackCommand/RollbackCommandTest.php
tests/Command/RollbackCommand/RollbackCommandTest.php
<?php declare(strict_types=1); namespace Phoenix\Tests\Command\RollbackCommand; use Phoenix\Command\InitCommand; use Phoenix\Command\MigrateCommand; use Phoenix\Command\RollbackCommand; use Phoenix\Exception\ConfigException; use Phoenix\Exception\InvalidArgumentValueException; use Phoenix\Tests\Command\BaseCommandTe...
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/tests/Command/RollbackCommand/PgsqlRollbackCommandTest.php
tests/Command/RollbackCommand/PgsqlRollbackCommandTest.php
<?php declare(strict_types=1); namespace Phoenix\Tests\Command\RollbackCommand; use Phoenix\Tests\Command\PgsqlCommandBehavior; final class PgsqlRollbackCommandTest extends RollbackCommandTest { use PgsqlCommandBehavior; }
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/tests/Command/InitCommand/PgsqlInitCommandTest.php
tests/Command/InitCommand/PgsqlInitCommandTest.php
<?php declare(strict_types=1); namespace Phoenix\Tests\Command\InitCommand; use Phoenix\Tests\Command\PgsqlCommandBehavior; final class PgsqlInitCommandTest extends InitCommandTest { use PgsqlCommandBehavior; }
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/tests/Command/InitCommand/MysqlInitCommandTest.php
tests/Command/InitCommand/MysqlInitCommandTest.php
<?php declare(strict_types=1); namespace Phoenix\Tests\Command\InitCommand; use Phoenix\Tests\Command\MysqlCommandBehavior; final class MysqlInitCommandTest extends InitCommandTest { use MysqlCommandBehavior; }
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/tests/Command/InitCommand/InitCommandTest.php
tests/Command/InitCommand/InitCommandTest.php
<?php declare(strict_types=1); namespace Phoenix\Tests\Command\InitCommand; use Phoenix\Command\InitCommand; use Phoenix\Exception\ConfigException; use Phoenix\Exception\WrongCommandException; use Phoenix\Tests\Command\BaseCommandTest; use Symfony\Component\Console\Output\OutputInterface; abstract class InitCommand...
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/tests/Command/CreateCommand/PgsqlCreateCommandTest.php
tests/Command/CreateCommand/PgsqlCreateCommandTest.php
<?php declare(strict_types=1); namespace Phoenix\Tests\Command\CreateCommand; use Phoenix\Tests\Command\PgsqlCommandBehavior; final class PgsqlCreateCommandTest extends CreateCommandTest { use PgsqlCommandBehavior; }
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/tests/Command/CreateCommand/MysqlCreateCommandTest.php
tests/Command/CreateCommand/MysqlCreateCommandTest.php
<?php declare(strict_types=1); namespace Phoenix\Tests\Command\CreateCommand; use Phoenix\Tests\Command\MysqlCommandBehavior; final class MysqlCreateCommandTest extends CreateCommandTest { use MysqlCommandBehavior; }
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/tests/Command/CreateCommand/CreateCommandTest.php
tests/Command/CreateCommand/CreateCommandTest.php
<?php declare(strict_types=1); namespace Phoenix\Tests\Command\CreateCommand; use Phoenix\Command\CreateCommand; use Phoenix\Command\InitCommand; use Phoenix\Exception\ConfigException; use Phoenix\Exception\PhoenixException; use Phoenix\Migration\ClassNameCreator; use Phoenix\Tests\Command\BaseCommandTest; use Phoen...
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/tests/Command/DiffCommand/MysqlDiffCommandTest.php
tests/Command/DiffCommand/MysqlDiffCommandTest.php
<?php declare(strict_types=1); namespace Phoenix\Tests\Command\DiffCommand; use Phoenix\Tests\Command\MysqlCommandBehavior; final class MysqlDiffCommandTest extends DiffCommandTest { use MysqlCommandBehavior; }
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/tests/Command/DiffCommand/DiffCommandTest.php
tests/Command/DiffCommand/DiffCommandTest.php
<?php declare(strict_types=1); namespace Phoenix\Tests\Command\DiffCommand; use Phoenix\Command\DiffCommand; use Phoenix\Command\InitCommand; use Phoenix\Command\MigrateCommand; use Phoenix\Exception\ConfigException; use Phoenix\Exception\InvalidArgumentValueException; use Phoenix\Exception\PhoenixException; use Pho...
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/tests/Command/DiffCommand/PgsqlDiffCommandTest.php
tests/Command/DiffCommand/PgsqlDiffCommandTest.php
<?php declare(strict_types=1); namespace Phoenix\Tests\Command\DiffCommand; use Phoenix\Tests\Command\PgsqlCommandBehavior; final class PgsqlDiffCommandTest extends DiffCommandTest { use PgsqlCommandBehavior; }
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/tests/Command/MigrateCommand/PgsqlMigrateCommandTest.php
tests/Command/MigrateCommand/PgsqlMigrateCommandTest.php
<?php declare(strict_types=1); namespace Phoenix\Tests\Command\MigrateCommand; use Phoenix\Tests\Command\PgsqlCommandBehavior; final class PgsqlMigrateCommandTest extends MigrateCommandTest { use PgsqlCommandBehavior; }
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/tests/Command/MigrateCommand/MysqlMigrateCommandTest.php
tests/Command/MigrateCommand/MysqlMigrateCommandTest.php
<?php declare(strict_types=1); namespace Phoenix\Tests\Command\MigrateCommand; use Phoenix\Tests\Command\MysqlCommandBehavior; final class MysqlMigrateCommandTest extends MigrateCommandTest { use MysqlCommandBehavior; }
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/tests/Command/MigrateCommand/MigrateCommandTest.php
tests/Command/MigrateCommand/MigrateCommandTest.php
<?php declare(strict_types=1); namespace Phoenix\Tests\Command\MigrateCommand; use Phoenix\Command\CleanupCommand; use Phoenix\Command\InitCommand; use Phoenix\Command\MigrateCommand; use Phoenix\Exception\ConfigException; use Phoenix\Exception\InvalidArgumentValueException; use Phoenix\Tests\Command\BaseCommandTest...
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/tests/Command/CleanupCommand/MysqlCleanupCommandTest.php
tests/Command/CleanupCommand/MysqlCleanupCommandTest.php
<?php declare(strict_types=1); namespace Phoenix\Tests\Command\CleanupCommand; use Phoenix\Tests\Command\MysqlCommandBehavior; final class MysqlCleanupCommandTest extends CleanupCommandTest { use MysqlCommandBehavior; }
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/tests/Command/CleanupCommand/CleanupCommandTest.php
tests/Command/CleanupCommand/CleanupCommandTest.php
<?php declare(strict_types=1); namespace Phoenix\Tests\Command\CleanupCommand; use Phoenix\Command\CleanupCommand; use Phoenix\Command\InitCommand; use Phoenix\Exception\ConfigException; use Phoenix\Tests\Command\BaseCommandTest; use Phoenix\Tests\Mock\Command\Output; use Symfony\Component\Console\Output\OutputInter...
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/tests/Command/CleanupCommand/PgsqlCleanupCommandTest.php
tests/Command/CleanupCommand/PgsqlCleanupCommandTest.php
<?php declare(strict_types=1); namespace Phoenix\Tests\Command\CleanupCommand; use Phoenix\Tests\Command\PgsqlCommandBehavior; final class PgsqlCleanupCommandTest extends CleanupCommandTest { use PgsqlCommandBehavior; }
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/tests/Command/TestCommand/PgsqlTestCommandTest.php
tests/Command/TestCommand/PgsqlTestCommandTest.php
<?php declare(strict_types=1); namespace Phoenix\Tests\Command\TestCommand; use Phoenix\Tests\Command\PgsqlCommandBehavior; final class PgsqlTestCommandTest extends TestCommandTest { use PgsqlCommandBehavior; }
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/tests/Command/TestCommand/TestCommandTest.php
tests/Command/TestCommand/TestCommandTest.php
<?php declare(strict_types=1); namespace Phoenix\Tests\Command\TestCommand; use Phoenix\Command\InitCommand; use Phoenix\Command\MigrateCommand; use Phoenix\Command\TestCommand; use Phoenix\Exception\ConfigException; use Phoenix\Tests\Command\BaseCommandTest; use Phoenix\Tests\Mock\Command\Output; use Symfony\Compon...
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/tests/Command/TestCommand/MysqlTestCommandTest.php
tests/Command/TestCommand/MysqlTestCommandTest.php
<?php declare(strict_types=1); namespace Phoenix\Tests\Command\TestCommand; use Phoenix\Tests\Command\MysqlCommandBehavior; final class MysqlTestCommandTest extends TestCommandTest { use MysqlCommandBehavior; }
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/tests/Command/StatusCommand/PgsqlStatusCommandTest.php
tests/Command/StatusCommand/PgsqlStatusCommandTest.php
<?php declare(strict_types=1); namespace Phoenix\Tests\Command\StatusCommand; use Phoenix\Tests\Command\PgsqlCommandBehavior; final class PgsqlStatusCommandTest extends StatusCommandTest { use PgsqlCommandBehavior; }
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/tests/Command/StatusCommand/StatusCommandTest.php
tests/Command/StatusCommand/StatusCommandTest.php
<?php declare(strict_types=1); namespace Phoenix\Tests\Command\StatusCommand; use Phoenix\Command\InitCommand; use Phoenix\Command\MigrateCommand; use Phoenix\Command\StatusCommand; use Phoenix\Exception\ConfigException; use Phoenix\Tests\Command\BaseCommandTest; use Phoenix\Tests\Mock\Command\Output; use Symfony\Co...
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/tests/Command/StatusCommand/MysqlStatusCommandTest.php
tests/Command/StatusCommand/MysqlStatusCommandTest.php
<?php declare(strict_types=1); namespace Phoenix\Tests\Command\StatusCommand; use Phoenix\Tests\Command\MysqlCommandBehavior; final class MysqlStatusCommandTest extends StatusCommandTest { use MysqlCommandBehavior; }
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/testing_migrations/run.php
testing_migrations/run.php
<?php use Phoenix\Config\Config; use Phoenix\Database\Adapter\AdapterFactory; use Phoenix\Migration\Init\Init; use Phoenix\Migration\Manager; require_once __DIR__ . '/../vendor/autoload.php'; $configuration = [ 'migration_dirs' => [ __DIR__ . '/phoenix', ], 'environments' => [ 'mysql' => ...
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/testing_migrations/config/phoenix.php
testing_migrations/config/phoenix.php
<?php use Ramsey\Uuid\UuidFactory; use Ramsey\Uuid\UuidFactoryInterface; return [ 'migration_dirs' => [ 'phoenix' => __DIR__ . '/../phoenix', ], 'environments' => [ 'mysql' => [ 'adapter' => 'mysql', 'host' => getenv('PHOENIX_MYSQL_HOST'), 'port' => gete...
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/testing_migrations/phoenix/20200321142525_rename_column.php
testing_migrations/phoenix/20200321142525_rename_column.php
<?php namespace Phoenix\TestingMigrations; use Phoenix\Migration\AbstractMigration; class RenameColumn extends AbstractMigration { public function up(): void { $this->table('table_4')->renameColumn('identifier', 'id')->save(); } protected function down(): void { $this->table('tab...
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/testing_migrations/phoenix/20160109121720_add_column.php
testing_migrations/phoenix/20160109121720_add_column.php
<?php namespace Phoenix\TestingMigrations; use Phoenix\Migration\AbstractMigration; class AddColumn extends AbstractMigration { public function up(): void { $this->table('all_types') ->addColumn('new_column', 'string', ['null' => true]) ->save(); } public function dow...
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/testing_migrations/phoenix/20210118113417_change_collation.php
testing_migrations/phoenix/20210118113417_change_collation.php
<?php namespace Phoenix\TestingMigrations; use Phoenix\Migration\AbstractMigration; class ChangeCollation extends AbstractMigration { protected function up(): void { $this->changeCollation('utf8mb4_general_ci'); $this->insert('renamed_table_1', [ 'id' => 1000, 'title'...
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/testing_migrations/phoenix/20160217163501_drop_column.php
testing_migrations/phoenix/20160217163501_drop_column.php
<?php namespace Phoenix\TestingMigrations; use Phoenix\Migration\AbstractMigration; class DropColumn extends AbstractMigration { public function up(): void { $this->table('all_types') ->dropColumn('new_column') ->save(); } public function down(): void { $t...
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/testing_migrations/phoenix/20170705144807_copy_table.php
testing_migrations/phoenix/20170705144807_copy_table.php
<?php namespace Phoenix\TestingMigrations; use Phoenix\Database\Element\MigrationTable; use Phoenix\Migration\AbstractMigration; class CopyTables extends AbstractMigration { public function up(): void { $this->table('table_2')->copy('new_table_2'); $this->table('table_3')->copy('new_table_3',...
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/testing_migrations/phoenix/20200429235811_set_auto_increment.php
testing_migrations/phoenix/20200429235811_set_auto_increment.php
<?php namespace Phoenix\TestingMigrations; use Phoenix\Migration\AbstractMigration; class SetAutoIncrement extends AbstractMigration { protected function up(): void { $this->table('renamed_table_1')->setAutoIncrement(100); $this->insert('renamed_table_1', [ [ 'tit...
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/testing_migrations/phoenix/20170310152718_rename_table.php
testing_migrations/phoenix/20170310152718_rename_table.php
<?php namespace Phoenix\TestingMigrations; use Phoenix\Migration\AbstractMigration; class RenameTables extends AbstractMigration { public function up(): void { $this->table('table_1')->rename('renamed_table_1'); } protected function down(): void { $this->table('renamed_table_1')-...
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/testing_migrations/phoenix/20150920075825_add_primary_columns.php
testing_migrations/phoenix/20150920075825_add_primary_columns.php
<?php namespace Phoenix\TestingMigrations; use Phoenix\Database\Adapter\AdapterInterface; use Phoenix\Database\Element\Column; use Phoenix\Migration\AbstractMigration; use Ramsey\Uuid\Uuid; use Ramsey\Uuid\UuidFactoryInterface; class AddPrimaryColumns extends AbstractMigration { /** @var UuidFactoryInterface */ ...
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/testing_migrations/phoenix/20150923090307_change_columns.php
testing_migrations/phoenix/20150923090307_change_columns.php
<?php namespace Phoenix\TestingMigrations; use Phoenix\Migration\AbstractMigration; class ChangeColumns extends AbstractMigration { public function up(): void { $this->table('table_2') ->addIndex('sorting') ->save(); $this->table('table_2') ->changeColumn(...
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/testing_migrations/phoenix/20200403210927_truncate_table.php
testing_migrations/phoenix/20200403210927_truncate_table.php
<?php namespace Phoenix\TestingMigrations; use Phoenix\Migration\AbstractMigration; class TruncateTable extends AbstractMigration { protected function up(): void { $this->table('table_6')->truncate(); } protected function down(): void { $this->insert('table_6', [ [ ...
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/testing_migrations/phoenix/21000000000000_check.php
testing_migrations/phoenix/21000000000000_check.php
<?php namespace Phoenix\TestingMigrations; use Exception; use Phoenix\Database\Element\Column; use Phoenix\Database\Element\Table; use Phoenix\Migration\AbstractMigration; class Check extends AbstractMigration { public function up(): void { $rowZero = $this->fetch('phoenix_log', ['*'], ['id' => 0]); ...
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/testing_migrations/phoenix/20150916142549_remove_some_indexes.php
testing_migrations/phoenix/20150916142549_remove_some_indexes.php
<?php namespace Phoenix\TestingMigrations; use Phoenix\Database\Element\IndexColumn; use Phoenix\Migration\AbstractMigration; class RemoveSomeIndexes extends AbstractMigration { public function up(): void { $this->table('table_1') ->dropIndex(new IndexColumn('alias', ['length' => 10])) ...
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/testing_migrations/phoenix/20160921152624_add_data_after_changes.php
testing_migrations/phoenix/20160921152624_add_data_after_changes.php
<?php namespace Phoenix\TestingMigrations; use DateTime; use Phoenix\Migration\AbstractMigration; class AddDataAfterChanges extends AbstractMigration { public function up(): void { $this->insert('all_types', [ 'identifier' => '914dbcc3-3b19-4b17-863b-2ce37a63465e', 'col_tinyin...
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/testing_migrations/phoenix/20150529123120_init.php
testing_migrations/phoenix/20150529123120_init.php
<?php namespace Phoenix\TestingMigrations; use Phoenix\Database\Element\ColumnSettings; use Phoenix\Database\Element\ForeignKey; use Phoenix\Database\Element\IndexColumn; use Phoenix\Migration\AbstractMigration; class Init extends AbstractMigration { protected function up(): void { $this->table('tabl...
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/testing_migrations/phoenix/20150908065215_add_data.php
testing_migrations/phoenix/20150908065215_add_data.php
<?php namespace Phoenix\TestingMigrations; use DateTime; use Phoenix\Migration\AbstractMigration; class AddData extends AbstractMigration { public function up(): void { $this->insert('table_1', [ 'title' => 'First item', 'alias' => 'first-item', 'is_active' => fals...
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/config_example/phoenix.php
config_example/phoenix.php
<?php return [ 'migration_dirs' => [ 'phoenix' => __DIR__ . '/../testing_migrations/phoenix', ], 'environments' => [ 'mysql' => [ 'adapter' => 'mysql', 'host' => 'localhost', 'port' => '3306', // optional 'username' => 'root', 'pas...
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
ultramsg/whatsapp-php-sdk
https://github.com/ultramsg/whatsapp-php-sdk/blob/a2a44b788524993f718011f6f018ff82a36a6ab9/ultramsg.class.php
ultramsg.class.php
<?php namespace UltraMsg; /** * Class WhatsAppApi * @package Ultramsg */ class WhatsAppApi { protected $token = ''; protected $instance_id = ''; /** * Ultramsg constructor. * @param $token * @param $instance_id */ public function __construct($token, $ins...
php
MIT
a2a44b788524993f718011f6f018ff82a36a6ab9
2026-01-05T03:30:14.490011Z
false
christophrumpel/artisan-benchmark
https://github.com/christophrumpel/artisan-benchmark/blob/1553cdb0a276ade36a918f1f9c0a8f3b49e632fd/src/BenchmarksArtisanCommand.php
src/BenchmarksArtisanCommand.php
<?php namespace ChristophRumpel\ArtisanBenchmark; use Illuminate\Database\Events\QueryExecuted; use Illuminate\Support\Arr; use Illuminate\Support\Collection; use Illuminate\Support\Facades\Artisan; use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\Event; use Illuminate\Support\Number; use Illuminate\...
php
MIT
1553cdb0a276ade36a918f1f9c0a8f3b49e632fd
2026-01-05T03:30:25.940919Z
false
christophrumpel/artisan-benchmark
https://github.com/christophrumpel/artisan-benchmark/blob/1553cdb0a276ade36a918f1f9c0a8f3b49e632fd/src/ArtisanBenchmarkServiceProvider.php
src/ArtisanBenchmarkServiceProvider.php
<?php namespace ChristophRumpel\ArtisanBenchmark; use ChristophRumpel\ArtisanBenchmark\Console\ArtisanBenchmarkCommand; use Illuminate\Support\ServiceProvider; class ArtisanBenchmarkServiceProvider extends ServiceProvider { public function boot(): void { if ($this->app->runningInConsole()) { ...
php
MIT
1553cdb0a276ade36a918f1f9c0a8f3b49e632fd
2026-01-05T03:30:25.940919Z
false
christophrumpel/artisan-benchmark
https://github.com/christophrumpel/artisan-benchmark/blob/1553cdb0a276ade36a918f1f9c0a8f3b49e632fd/src/Console/ArtisanBenchmarkCommand.php
src/Console/ArtisanBenchmarkCommand.php
<?php namespace ChristophRumpel\ArtisanBenchmark\Console; use ChristophRumpel\ArtisanBenchmark\BenchmarksArtisanCommand; use Illuminate\Console\Command; class ArtisanBenchmarkCommand extends Command { use BenchmarksArtisanCommand; protected $signature = 'benchmark {signature?} {--tableToWatch=}'; }
php
MIT
1553cdb0a276ade36a918f1f9c0a8f3b49e632fd
2026-01-05T03:30:25.940919Z
false
christophrumpel/artisan-benchmark
https://github.com/christophrumpel/artisan-benchmark/blob/1553cdb0a276ade36a918f1f9c0a8f3b49e632fd/tests/Pest.php
tests/Pest.php
<?php /* |-------------------------------------------------------------------------- | Test Case |-------------------------------------------------------------------------- | | The closure you provide to your test functions is always bound to a specific PHPUnit test | case class. By default, that class is "PHPUnit\Fra...
php
MIT
1553cdb0a276ade36a918f1f9c0a8f3b49e632fd
2026-01-05T03:30:25.940919Z
false
christophrumpel/artisan-benchmark
https://github.com/christophrumpel/artisan-benchmark/blob/1553cdb0a276ade36a918f1f9c0a8f3b49e632fd/tests/TestCase.php
tests/TestCase.php
<?php namespace Tests; use ChristophRumpel\ArtisanBenchmark\ArtisanBenchmarkServiceProvider; abstract class TestCase extends \Orchestra\Testbench\TestCase { protected function getPackageProviders($app): array { return [ ArtisanBenchmarkServiceProvider::class, ]; } }
php
MIT
1553cdb0a276ade36a918f1f9c0a8f3b49e632fd
2026-01-05T03:30:25.940919Z
false
christophrumpel/artisan-benchmark
https://github.com/christophrumpel/artisan-benchmark/blob/1553cdb0a276ade36a918f1f9c0a8f3b49e632fd/tests/Feature/ArtisanBenchmarkCommandTest.php
tests/Feature/ArtisanBenchmarkCommandTest.php
<?php use ChristophRumpel\ArtisanBenchmark\Console\ArtisanBenchmarkCommand; use Illuminate\Console\OutputStyle; use Illuminate\Contracts\Console\Kernel; use Illuminate\Support\Facades\Artisan; use Symfony\Component\Console\Exception\CommandNotFoundException; use Symfony\Component\Console\Input\ArgvInput; use Symfony\C...
php
MIT
1553cdb0a276ade36a918f1f9c0a8f3b49e632fd
2026-01-05T03:30:25.940919Z
false
christophrumpel/artisan-benchmark
https://github.com/christophrumpel/artisan-benchmark/blob/1553cdb0a276ade36a918f1f9c0a8f3b49e632fd/tests/Commands/TestEmptyOutputCommand.php
tests/Commands/TestEmptyOutputCommand.php
<?php namespace Tests\Commands; use Illuminate\Console\Command; class TestEmptyOutputCommand extends Command { protected $signature = 'emptyoutput:test'; public function handle(): void {} }
php
MIT
1553cdb0a276ade36a918f1f9c0a8f3b49e632fd
2026-01-05T03:30:25.940919Z
false
christophrumpel/artisan-benchmark
https://github.com/christophrumpel/artisan-benchmark/blob/1553cdb0a276ade36a918f1f9c0a8f3b49e632fd/tests/Commands/TestWithArgumentsCommand.php
tests/Commands/TestWithArgumentsCommand.php
<?php declare(strict_types=1); namespace Tests\Commands; use Illuminate\Console\Command; class TestWithArgumentsCommand extends Command { protected $signature = ' with-arguments:test {custom-argument} {--custom-option} {--C|custom-option-with-shortcut} {--custom-option-wi...
php
MIT
1553cdb0a276ade36a918f1f9c0a8f3b49e632fd
2026-01-05T03:30:25.940919Z
false
christophrumpel/artisan-benchmark
https://github.com/christophrumpel/artisan-benchmark/blob/1553cdb0a276ade36a918f1f9c0a8f3b49e632fd/tests/Commands/TestImportCommand.php
tests/Commands/TestImportCommand.php
<?php namespace Tests\Commands; use Illuminate\Console\Command; use Illuminate\Support\Facades\DB; class TestImportCommand extends Command { protected $signature = 'import:test'; public function handle(): void { DB::table('users')->insert([ 'name' => 'Test User', 'email' ...
php
MIT
1553cdb0a276ade36a918f1f9c0a8f3b49e632fd
2026-01-05T03:30:25.940919Z
false
spatie/7to5
https://github.com/spatie/7to5/blob/64d1e12570eb3e4ce4976245ba48e881383b5580/src/DirectoryConverter.php
src/DirectoryConverter.php
<?php namespace Spatie\Php7to5; use Spatie\Php7to5\Exceptions\InvalidParameter; use Symfony\Component\Console\Output\OutputInterface; use Symfony\Component\Finder\Finder; class DirectoryConverter { /** @var string */ protected $sourceDirectory; /** @var string */ protected $copyNonPhpFiles = true; ...
php
MIT
64d1e12570eb3e4ce4976245ba48e881383b5580
2026-01-05T03:31:02.607877Z
false
spatie/7to5
https://github.com/spatie/7to5/blob/64d1e12570eb3e4ce4976245ba48e881383b5580/src/Converter.php
src/Converter.php
<?php namespace Spatie\Php7to5; use PhpParser\NodeTraverser; use PhpParser\ParserFactory; use Spatie\Php7to5\Exceptions\InvalidParameter; class Converter { /** @var string */ protected $pathToPhp7Code; /** * @param string $pathToPhp7Code * * @throws \Spatie\Php7to5\Exceptions\InvalidParam...
php
MIT
64d1e12570eb3e4ce4976245ba48e881383b5580
2026-01-05T03:31:02.607877Z
false
spatie/7to5
https://github.com/spatie/7to5/blob/64d1e12570eb3e4ce4976245ba48e881383b5580/src/Exceptions/InvalidPhpCode.php
src/Exceptions/InvalidPhpCode.php
<?php namespace Spatie\Php7to5\Exceptions; use Exception; class InvalidPhpCode extends Exception { public static function noValidLocationFoundToInsertClasses() { return new static('Could not find a location to save the converted anonymous classes'); } }
php
MIT
64d1e12570eb3e4ce4976245ba48e881383b5580
2026-01-05T03:31:02.607877Z
false
spatie/7to5
https://github.com/spatie/7to5/blob/64d1e12570eb3e4ce4976245ba48e881383b5580/src/Exceptions/InvalidParameter.php
src/Exceptions/InvalidParameter.php
<?php namespace Spatie\Php7to5\Exceptions; use Exception; class InvalidParameter extends Exception { public static function sourceDoesNotExist($sourceName) { return new static("Source file or directory `{$sourceName}` does not exist"); } /** * @param string $directoryName * * ...
php
MIT
64d1e12570eb3e4ce4976245ba48e881383b5580
2026-01-05T03:31:02.607877Z
false
spatie/7to5
https://github.com/spatie/7to5/blob/64d1e12570eb3e4ce4976245ba48e881383b5580/src/Console/Application.php
src/Console/Application.php
<?php namespace Spatie\Php7to5\Console; use Symfony\Component\Console\Application as ConsoleApplication; class Application extends ConsoleApplication { public function __construct() { parent::__construct('php7to5', '1.0.0'); $this->add(new ConvertCommand()); } public function getLon...
php
MIT
64d1e12570eb3e4ce4976245ba48e881383b5580
2026-01-05T03:31:02.607877Z
false
spatie/7to5
https://github.com/spatie/7to5/blob/64d1e12570eb3e4ce4976245ba48e881383b5580/src/Console/ConvertCommand.php
src/Console/ConvertCommand.php
<?php namespace Spatie\Php7to5\Console; use Spatie\Php7to5\Converter; use Spatie\Php7to5\DirectoryConverter; use Spatie\Php7to5\Exceptions\InvalidParameter; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputInterface; use Symfony...
php
MIT
64d1e12570eb3e4ce4976245ba48e881383b5580
2026-01-05T03:31:02.607877Z
false
spatie/7to5
https://github.com/spatie/7to5/blob/64d1e12570eb3e4ce4976245ba48e881383b5580/src/NodeVisitors/NullCoalesceReplacer.php
src/NodeVisitors/NullCoalesceReplacer.php
<?php namespace Spatie\Php7to5\NodeVisitors; use PhpParser\Node; use PhpParser\Node\Expr\BinaryOp\Coalesce; use PhpParser\NodeVisitorAbstract; class NullCoalesceReplacer extends NodeVisitorAbstract { /** * {@inheritdoc} */ public function leaveNode(Node $node) { if (!$node instanceof Co...
php
MIT
64d1e12570eb3e4ce4976245ba48e881383b5580
2026-01-05T03:31:02.607877Z
false
spatie/7to5
https://github.com/spatie/7to5/blob/64d1e12570eb3e4ce4976245ba48e881383b5580/src/NodeVisitors/StrictTypesDeclarationRemover.php
src/NodeVisitors/StrictTypesDeclarationRemover.php
<?php namespace Spatie\Php7to5\NodeVisitors; use PhpParser\Node; use PhpParser\Node\Stmt\DeclareDeclare; use PhpParser\NodeTraverser; use PhpParser\NodeVisitorAbstract; class StrictTypesDeclarationRemover extends NodeVisitorAbstract { /** * {@inheritdoc} */ public function leaveNode(Node $node) ...
php
MIT
64d1e12570eb3e4ce4976245ba48e881383b5580
2026-01-05T03:31:02.607877Z
false
spatie/7to5
https://github.com/spatie/7to5/blob/64d1e12570eb3e4ce4976245ba48e881383b5580/src/NodeVisitors/SpaceshipOperatorReplacer.php
src/NodeVisitors/SpaceshipOperatorReplacer.php
<?php namespace Spatie\Php7to5\NodeVisitors; use PhpParser\Node; use PhpParser\Node\Expr\BinaryOp\Equal; use PhpParser\Node\Expr\BinaryOp\Smaller; use PhpParser\Node\Expr\BinaryOp\Spaceship; use PhpParser\Node\Expr\Ternary; use PhpParser\Node\Expr\UnaryMinus; use PhpParser\Node\Scalar\LNumber; use PhpParser\NodeVisit...
php
MIT
64d1e12570eb3e4ce4976245ba48e881383b5580
2026-01-05T03:31:02.607877Z
false
spatie/7to5
https://github.com/spatie/7to5/blob/64d1e12570eb3e4ce4976245ba48e881383b5580/src/NodeVisitors/ScalarTypeHintsRemover.php
src/NodeVisitors/ScalarTypeHintsRemover.php
<?php namespace Spatie\Php7to5\NodeVisitors; use PhpParser\Node; use PhpParser\Node\Param; use PhpParser\NodeVisitorAbstract; class ScalarTypeHintsRemover extends NodeVisitorAbstract { /** * {@inheritdoc} */ public function leaveNode(Node $node) { if (!$node instanceof Param) { ...
php
MIT
64d1e12570eb3e4ce4976245ba48e881383b5580
2026-01-05T03:31:02.607877Z
false
spatie/7to5
https://github.com/spatie/7to5/blob/64d1e12570eb3e4ce4976245ba48e881383b5580/src/NodeVisitors/EmptyDeclareStatementRemover.php
src/NodeVisitors/EmptyDeclareStatementRemover.php
<?php namespace Spatie\Php7to5\NodeVisitors; use PhpParser\Node; use PhpParser\Node\Stmt\Declare_; use PhpParser\Node\Stmt\DeclareDeclare; use PhpParser\NodeTraverser; use PhpParser\NodeVisitorAbstract; class EmptyDeclareStatementRemover extends NodeVisitorAbstract { /** * {@inheritdoc} */ public f...
php
MIT
64d1e12570eb3e4ce4976245ba48e881383b5580
2026-01-05T03:31:02.607877Z
false
spatie/7to5
https://github.com/spatie/7to5/blob/64d1e12570eb3e4ce4976245ba48e881383b5580/src/NodeVisitors/GroupUseReplacer.php
src/NodeVisitors/GroupUseReplacer.php
<?php namespace Spatie\Php7to5\NodeVisitors; use PhpParser\Node; use PhpParser\NodeVisitorAbstract; class GroupUseReplacer extends NodeVisitorAbstract { /** * {@inheritdoc} */ public function leaveNode(Node $node) { if (!$node instanceof Node\Stmt\GroupUse) { return; ...
php
MIT
64d1e12570eb3e4ce4976245ba48e881383b5580
2026-01-05T03:31:02.607877Z
false
spatie/7to5
https://github.com/spatie/7to5/blob/64d1e12570eb3e4ce4976245ba48e881383b5580/src/NodeVisitors/ReturnTypesRemover.php
src/NodeVisitors/ReturnTypesRemover.php
<?php namespace Spatie\Php7to5\NodeVisitors; use PhpParser\Node; use PhpParser\Node\FunctionLike; use PhpParser\NodeVisitorAbstract; class ReturnTypesRemover extends NodeVisitorAbstract { /** * {@inheritdoc} */ public function leaveNode(Node $node) { if (!$node instanceof FunctionLike) ...
php
MIT
64d1e12570eb3e4ce4976245ba48e881383b5580
2026-01-05T03:31:02.607877Z
false
spatie/7to5
https://github.com/spatie/7to5/blob/64d1e12570eb3e4ce4976245ba48e881383b5580/src/NodeVisitors/AnonymousClassReplacer.php
src/NodeVisitors/AnonymousClassReplacer.php
<?php namespace Spatie\Php7to5\NodeVisitors; use PhpParser\Node; use PhpParser\Node\Stmt\Declare_; use PhpParser\Node\Stmt\Namespace_; use PhpParser\Node\Stmt\Use_; use PhpParser\NodeVisitorAbstract; use Spatie\Php7to5\Converter; use Spatie\Php7to5\Exceptions\InvalidPhpCode; class AnonymousClassReplacer extends Node...
php
MIT
64d1e12570eb3e4ce4976245ba48e881383b5580
2026-01-05T03:31:02.607877Z
false
spatie/7to5
https://github.com/spatie/7to5/blob/64d1e12570eb3e4ce4976245ba48e881383b5580/src/NodeVisitors/ClassConstantVisibilityModifiersRemover.php
src/NodeVisitors/ClassConstantVisibilityModifiersRemover.php
<?php namespace Spatie\Php7to5\NodeVisitors; use PhpParser\Node; use PhpParser\Node\Stmt\ClassConst; use PhpParser\NodeVisitorAbstract; /** * Removes the class constant visibility modifiers (PHP 7.1) */ class ClassConstantVisibilityModifiersRemover extends NodeVisitorAbstract { /** * {@inheritdoc} */...
php
MIT
64d1e12570eb3e4ce4976245ba48e881383b5580
2026-01-05T03:31:02.607877Z
false
spatie/7to5
https://github.com/spatie/7to5/blob/64d1e12570eb3e4ce4976245ba48e881383b5580/src/NodeVisitors/DefineArrayReplacer.php
src/NodeVisitors/DefineArrayReplacer.php
<?php namespace Spatie\Php7to5\NodeVisitors; use PhpParser\Node; use PhpParser\NodeVisitorAbstract; /* * Converts define() arrays into const arrays */ class DefineArrayReplacer extends NodeVisitorAbstract { /** * {@inheritdoc} */ public function leaveNode(Node $node) { if (!$node ins...
php
MIT
64d1e12570eb3e4ce4976245ba48e881383b5580
2026-01-05T03:31:02.607877Z
false
spatie/7to5
https://github.com/spatie/7to5/blob/64d1e12570eb3e4ce4976245ba48e881383b5580/tests/ConverterTest.php
tests/ConverterTest.php
<?php namespace Spatie\Php7to5\Test; use Spatie\Php7to5\Converter; use PHPUnit\Framework\TestCase; use Spatie\Php7to5\Exceptions\InvalidParameter; class ConverterTest extends TestCase { /** @test */ public function it_can_remove_scalar_type_hints() { $converter = new Converter($this->getStub('it-...
php
MIT
64d1e12570eb3e4ce4976245ba48e881383b5580
2026-01-05T03:31:02.607877Z
false
spatie/7to5
https://github.com/spatie/7to5/blob/64d1e12570eb3e4ce4976245ba48e881383b5580/tests/ConsoleCommandTest.php
tests/ConsoleCommandTest.php
<?php namespace Spatie\Php7to5\Test; use PHPUnit\Framework\TestCase; use Illuminate\Filesystem\Filesystem; use Symfony\Component\Process\Process; /** * Class ConsoleCommandTest. */ class ConsoleCommandTest extends TestCase { protected $inputFile; protected $outputFile; protected $sourceDirectory; p...
php
MIT
64d1e12570eb3e4ce4976245ba48e881383b5580
2026-01-05T03:31:02.607877Z
false
spatie/7to5
https://github.com/spatie/7to5/blob/64d1e12570eb3e4ce4976245ba48e881383b5580/tests/DirectoryConverterTest.php
tests/DirectoryConverterTest.php
<?php namespace Spatie\Php7to5\Test; use PHPUnit\Framework\TestCase; use Illuminate\Filesystem\Filesystem; use Spatie\Php7to5\DirectoryConverter; class DirectoryConverterTest extends TestCase { public function setUp() { parent::setUp(); $this->initializeTempDirectory(); } /** @test ...
php
MIT
64d1e12570eb3e4ce4976245ba48e881383b5580
2026-01-05T03:31:02.607877Z
false
spatie/7to5
https://github.com/spatie/7to5/blob/64d1e12570eb3e4ce4976245ba48e881383b5580/tests/stubs/consoleCommand/maxNestingLevel.php
tests/stubs/consoleCommand/maxNestingLevel.php
<?php /** * Zend Framework (http://framework.zend.com/) * * @link http://github.com/zendframework/zf2 for the canonical source repository * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) * @license http://framework.zend.com/license/new-bsd New BSD License */ namespace ...
php
MIT
64d1e12570eb3e4ce4976245ba48e881383b5580
2026-01-05T03:31:02.607877Z
true
spatie/7to5
https://github.com/spatie/7to5/blob/64d1e12570eb3e4ce4976245ba48e881383b5580/tests/stubs/consoleCommand/php5.php
tests/stubs/consoleCommand/php5.php
<?php class Test { /** * @param \MyClass $class * @param string $string * @param int $int * @param int $int2 * @param bool $bool * @param bool $bool2 * @param float $float * * @return int */ public function myFunction(MyClass $class, $str...
php
MIT
64d1e12570eb3e4ce4976245ba48e881383b5580
2026-01-05T03:31:02.607877Z
false
spatie/7to5
https://github.com/spatie/7to5/blob/64d1e12570eb3e4ce4976245ba48e881383b5580/tests/stubs/consoleCommand/directoryExist/file2.php
tests/stubs/consoleCommand/directoryExist/file2.php
<?php class Test { }
php
MIT
64d1e12570eb3e4ce4976245ba48e881383b5580
2026-01-05T03:31:02.607877Z
false
spatie/7to5
https://github.com/spatie/7to5/blob/64d1e12570eb3e4ce4976245ba48e881383b5580/tests/stubs/consoleCommand/directoryExist/file1.php
tests/stubs/consoleCommand/directoryExist/file1.php
<?php class Test { }
php
MIT
64d1e12570eb3e4ce4976245ba48e881383b5580
2026-01-05T03:31:02.607877Z
false
spatie/7to5
https://github.com/spatie/7to5/blob/64d1e12570eb3e4ce4976245ba48e881383b5580/tests/stubs/consoleCommand/directoryExist/directory1/file2.php
tests/stubs/consoleCommand/directoryExist/directory1/file2.php
<?php class Test { }
php
MIT
64d1e12570eb3e4ce4976245ba48e881383b5580
2026-01-05T03:31:02.607877Z
false
spatie/7to5
https://github.com/spatie/7to5/blob/64d1e12570eb3e4ce4976245ba48e881383b5580/tests/stubs/consoleCommand/directoryExist/directory1/file1.php
tests/stubs/consoleCommand/directoryExist/directory1/file1.php
<?php class Test { }
php
MIT
64d1e12570eb3e4ce4976245ba48e881383b5580
2026-01-05T03:31:02.607877Z
false
spatie/7to5
https://github.com/spatie/7to5/blob/64d1e12570eb3e4ce4976245ba48e881383b5580/tests/stubs/converter/it-can-remove-return-types/php71.php
tests/stubs/converter/it-can-remove-return-types/php71.php
<?php class Test { public function myFunction() : ?string { return 5; } public function anotherFunction() : ?MyClass { return 5; } }
php
MIT
64d1e12570eb3e4ce4976245ba48e881383b5580
2026-01-05T03:31:02.607877Z
false
spatie/7to5
https://github.com/spatie/7to5/blob/64d1e12570eb3e4ce4976245ba48e881383b5580/tests/stubs/converter/it-can-remove-return-types/php7.php
tests/stubs/converter/it-can-remove-return-types/php7.php
<?php class Test { public function myFunction() : string { return 5; } public function anotherFunction() : MyClass { return 5; } }
php
MIT
64d1e12570eb3e4ce4976245ba48e881383b5580
2026-01-05T03:31:02.607877Z
false
spatie/7to5
https://github.com/spatie/7to5/blob/64d1e12570eb3e4ce4976245ba48e881383b5580/tests/stubs/converter/it-can-remove-return-types/php5.php
tests/stubs/converter/it-can-remove-return-types/php5.php
<?php class Test { public function myFunction() { return 5; } public function anotherFunction() { return 5; } }
php
MIT
64d1e12570eb3e4ce4976245ba48e881383b5580
2026-01-05T03:31:02.607877Z
false
spatie/7to5
https://github.com/spatie/7to5/blob/64d1e12570eb3e4ce4976245ba48e881383b5580/tests/stubs/converter/it-can-remove-scalar-type-hints-71/php71.php
tests/stubs/converter/it-can-remove-scalar-type-hints-71/php71.php
<?php class Test { /** * @param \MyClass $class * @param string $string * @param int $int * @param int $int2 * @param bool $bool * @param bool $bool2 * @param float $float * * @return int */ public function myFunction(?MyClass $class, str...
php
MIT
64d1e12570eb3e4ce4976245ba48e881383b5580
2026-01-05T03:31:02.607877Z
false
spatie/7to5
https://github.com/spatie/7to5/blob/64d1e12570eb3e4ce4976245ba48e881383b5580/tests/stubs/converter/it-can-remove-scalar-type-hints-71/php5.php
tests/stubs/converter/it-can-remove-scalar-type-hints-71/php5.php
<?php class Test { /** * @param \MyClass $class * @param string $string * @param int $int * @param int $int2 * @param bool $bool * @param bool $bool2 * @param float $float * * @return int */ public function myFunction(MyClass $class = nul...
php
MIT
64d1e12570eb3e4ce4976245ba48e881383b5580
2026-01-05T03:31:02.607877Z
false
spatie/7to5
https://github.com/spatie/7to5/blob/64d1e12570eb3e4ce4976245ba48e881383b5580/tests/stubs/converter/it-can-remove-declarations-statement/php7.php
tests/stubs/converter/it-can-remove-declarations-statement/php7.php
<?php declare (strict_types = 1); class Test { }
php
MIT
64d1e12570eb3e4ce4976245ba48e881383b5580
2026-01-05T03:31:02.607877Z
false
spatie/7to5
https://github.com/spatie/7to5/blob/64d1e12570eb3e4ce4976245ba48e881383b5580/tests/stubs/converter/it-can-remove-declarations-statement/php5.php
tests/stubs/converter/it-can-remove-declarations-statement/php5.php
<?php class Test { }
php
MIT
64d1e12570eb3e4ce4976245ba48e881383b5580
2026-01-05T03:31:02.607877Z
false
spatie/7to5
https://github.com/spatie/7to5/blob/64d1e12570eb3e4ce4976245ba48e881383b5580/tests/stubs/converter/it-can-replace-null-coalesce-operators/php7.php
tests/stubs/converter/it-can-replace-null-coalesce-operators/php7.php
<?php function test1() {return null;} function test2() {return null;} class Test {public function testMethod() {return null;}} $test = new Test(); $result = $input ?? 'fixed-value'; $result = $input ?? $input2 ?? $input3; $result = test1() ?? test2() ?? 0; if (null === $input ?? null) { } $result = $test->testM...
php
MIT
64d1e12570eb3e4ce4976245ba48e881383b5580
2026-01-05T03:31:02.607877Z
false
spatie/7to5
https://github.com/spatie/7to5/blob/64d1e12570eb3e4ce4976245ba48e881383b5580/tests/stubs/converter/it-can-replace-null-coalesce-operators/php5.php
tests/stubs/converter/it-can-replace-null-coalesce-operators/php5.php
<?php function test1() { return null; } function test2() { return null; } class Test { public function testMethod() { return null; } } $test = new Test(); $result = isset($input) ? $input : 'fixed-value'; $result = isset($input) ? $input : (isset($input2) ? $input2 : $input3); $result = !em...
php
MIT
64d1e12570eb3e4ce4976245ba48e881383b5580
2026-01-05T03:31:02.607877Z
false
spatie/7to5
https://github.com/spatie/7to5/blob/64d1e12570eb3e4ce4976245ba48e881383b5580/tests/stubs/converter/it-can-remove-scalar-type-hints/php7.php
tests/stubs/converter/it-can-remove-scalar-type-hints/php7.php
<?php class Test { /** * @param \MyClass $class * @param string $string * @param int $int * @param int $int2 * @param bool $bool * @param bool $bool2 * @param float $float * * @return int */ public function myFunction(MyClass $class, stri...
php
MIT
64d1e12570eb3e4ce4976245ba48e881383b5580
2026-01-05T03:31:02.607877Z
false
spatie/7to5
https://github.com/spatie/7to5/blob/64d1e12570eb3e4ce4976245ba48e881383b5580/tests/stubs/converter/it-can-remove-scalar-type-hints/php5.php
tests/stubs/converter/it-can-remove-scalar-type-hints/php5.php
<?php class Test { /** * @param \MyClass $class * @param string $string * @param int $int * @param int $int2 * @param bool $bool * @param bool $bool2 * @param float $float * * @return int */ public function myFunction(MyClass $class, $str...
php
MIT
64d1e12570eb3e4ce4976245ba48e881383b5580
2026-01-05T03:31:02.607877Z
false