@@ -3,8 +3,6 @@ |
||
| 3 | 3 | namespace Taisiya\CoreBundle\Composer; |
| 4 | 4 | |
| 5 | 5 | use Composer\EventDispatcher\Event; |
| 6 | -use Symfony\Component\Finder\Finder; |
|
| 7 | -use Symfony\Component\Finder\SplFileInfo; |
|
| 8 | 6 | use Taisiya\CoreBundle\App; |
| 9 | 7 | |
| 10 | 8 | defined('TAISIYA_ROOT') || define('TAISIYA_ROOT', dirname(dirname(__DIR__))); |
@@ -19,8 +19,7 @@ |
||
| 19 | 19 | final public static function defaultCommand(Event $event): void |
| 20 | 20 | { |
| 21 | 21 | $app = file_exists(TAISIYA_ROOT.'/bootstrap.php') |
| 22 | - ? require_once TAISIYA_ROOT.'/bootstrap.php': |
|
| 23 | - new App(); |
|
| 22 | + ? require_once TAISIYA_ROOT.'/bootstrap.php' : new App(); |
|
| 24 | 23 | |
| 25 | 24 | // /** @var EventDispatcher $dispatcher */ |
| 26 | 25 | // $dispatcher = $event->getComposer()->getEventDispatcher(); |
@@ -46,7 +46,7 @@ |
||
| 46 | 46 | ->path('vendor') |
| 47 | 47 | ->files() |
| 48 | 48 | ->name('settings.default.php') |
| 49 | - ->filter(function (SplFileInfo $file) { |
|
| 49 | + ->filter(function(SplFileInfo $file) { |
|
| 50 | 50 | return (bool) preg_match('/\/app\/config\//', $file->getPathname()); |
| 51 | 51 | }); |
| 52 | 52 | |