-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1f3653a
commit 02f44f8
Showing
699 changed files
with
61,945 additions
and
1,128 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#!/usr/bin/env php | ||
<?php | ||
|
||
declare(strict_types=1); | ||
<?php | ||
declare (strict_types=1); | ||
namespace Lines202401; | ||
|
||
require_once __DIR__ . '/lines.php'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,29 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
declare (strict_types=1); | ||
namespace Lines202401; | ||
|
||
use Illuminate\Container\Container; | ||
use Symfony\Component\Console\Application; | ||
use Symfony\Component\Console\Input\ArgvInput; | ||
use Symfony\Component\Console\Input\ArrayInput; | ||
use Symfony\Component\Console\Output\ConsoleOutput; | ||
use Symfony\Component\Console\Style\SymfonyStyle; | ||
use TomasVotruba\Lines\Console\Command\MeasureCommand; | ||
use TomasVotruba\Lines\Console\Command\VendorCommand; | ||
use TomasVotruba\Lines\DependencyInjection\ContainerFactory; | ||
|
||
if (file_exists(__DIR__ . '/../vendor/scoper-autoload.php')) { | ||
use Lines202401\Illuminate\Container\Container; | ||
use Lines202401\Symfony\Component\Console\Application; | ||
use Lines202401\Symfony\Component\Console\Input\ArgvInput; | ||
use Lines202401\Symfony\Component\Console\Input\ArrayInput; | ||
use Lines202401\Symfony\Component\Console\Output\ConsoleOutput; | ||
use Lines202401\Symfony\Component\Console\Style\SymfonyStyle; | ||
use Lines202401\TomasVotruba\Lines\Console\Command\MeasureCommand; | ||
use Lines202401\TomasVotruba\Lines\Console\Command\VendorCommand; | ||
use Lines202401\TomasVotruba\Lines\DependencyInjection\ContainerFactory; | ||
if (\file_exists(__DIR__ . '/../vendor/scoper-autoload.php')) { | ||
// A. build downgraded package | ||
require_once __DIR__ . '/../vendor/scoper-autoload.php'; | ||
} elseif (file_exists(__DIR__ . '/../../../../vendor/autoload.php')) { | ||
} elseif (\file_exists(__DIR__ . '/../../../../vendor/autoload.php')) { | ||
// B. dev repository | ||
require_once __DIR__ . '/../../../../vendor/autoload.php'; | ||
} else { | ||
// C. local repository | ||
require_once __DIR__ . '/../vendor/autoload.php'; | ||
} | ||
|
||
$containerFactory = new ContainerFactory(); | ||
$container = $containerFactory->create(); | ||
|
||
$application = $container->make(Application::class); | ||
|
||
$exitCode = $application->run(new ArgvInput(), new ConsoleOutput()); | ||
exit($exitCode); |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.