@@ -24,7 +24,7 @@ |
||
24 | 24 | |
25 | 25 | public function register(Container $pimple) |
26 | 26 | { |
27 | - $pimple['app'] = function (Container $pimple) { |
|
27 | + $pimple['app'] = function(Container $pimple) { |
|
28 | 28 | return $this->app; |
29 | 29 | }; |
30 | 30 | } |
@@ -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 |
@@ -15,7 +15,7 @@ |
||
15 | 15 | { |
16 | 16 | parent::__construct($container); |
17 | 17 | |
18 | - $this->getContainer()['event_dispatcher'] = function (Container $pimple) { |
|
18 | + $this->getContainer()['event_dispatcher'] = function(Container $pimple) { |
|
19 | 19 | return new EventDispatcher(); |
20 | 20 | }; |
21 | 21 |
@@ -23,8 +23,7 @@ discard block |
||
23 | 23 | final public static function runCommandEvents(Event $event): void |
24 | 24 | { |
25 | 25 | $app = file_exists(TAISIYA_ROOT.'/bootstrap.php') |
26 | - ? require_once TAISIYA_ROOT.'/bootstrap.php': |
|
27 | - new App(); |
|
26 | + ? require_once TAISIYA_ROOT.'/bootstrap.php' : new App(); |
|
28 | 27 | |
29 | 28 | /** @var EventDispatcher $dispatcher */ |
30 | 29 | $dispatcher = $app->getContainer()['event_dispatcher']; |
@@ -34,13 +33,13 @@ discard block |
||
34 | 33 | } |
35 | 34 | |
36 | 35 | if (preg_match('/-cmd$/', $event->getName())) { |
37 | - $detailedEventClass = 'Taisiya\\CoreBundle\\Event\\Composer\\CommandEvent\\' . Inflector::classify($event->getName()) . 'Event'; |
|
36 | + $detailedEventClass = 'Taisiya\\CoreBundle\\Event\\Composer\\CommandEvent\\'.Inflector::classify($event->getName()).'Event'; |
|
38 | 37 | } elseif (preg_match('/-dependencies-solving$/', $event->getName())) { |
39 | - $detailedEventClass = 'Taisiya\\CoreBundle\\Event\\Composer\\InstallerEvent\\' . Inflector::classify($event->getName()) . 'Event'; |
|
38 | + $detailedEventClass = 'Taisiya\\CoreBundle\\Event\\Composer\\InstallerEvent\\'.Inflector::classify($event->getName()).'Event'; |
|
40 | 39 | } elseif (preg_match('/-package-/', $event->getName())) { |
41 | - $detailedEventClass = 'Taisiya\\CoreBundle\\Event\\Composer\\PackageEvent\\' . Inflector::classify($event->getName()) . 'Event'; |
|
40 | + $detailedEventClass = 'Taisiya\\CoreBundle\\Event\\Composer\\PackageEvent\\'.Inflector::classify($event->getName()).'Event'; |
|
42 | 41 | } elseif (preg_match('/^(init|command|pre-file-download)$/', $event->getName())) { |
43 | - $detailedEventClass = 'Taisiya\\CoreBundle\\Event\\Composer\\PluginEvent\\' . Inflector::classify($event->getName()) . 'Event'; |
|
42 | + $detailedEventClass = 'Taisiya\\CoreBundle\\Event\\Composer\\PluginEvent\\'.Inflector::classify($event->getName()).'Event'; |
|
44 | 43 | } |
45 | 44 | $detailedEvent = new $detailedEventClass(); |
46 | 45 | $dispatcher->dispatch($detailedEvent::NAME, $detailedEvent); |