Completed
Push — develop ( d2951a...1f139b )
by Neomerx
06:14 queued 04:49
created
src/SimpleEventEmitter.php 1 patch
Spacing   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -45,8 +45,7 @@  discard block
 block discarded – undo
45 45
     public function emit(string $eventName, array $arguments = []): void
46 46
     {
47 47
         $this->isCancellingEnabled() === true ?
48
-            $this->emitWithCancellingPropagationCheck($eventName, $arguments) :
49
-            $this->emitWithoutCancellingPropagationCheck($eventName, $arguments);
48
+            $this->emitWithCancellingPropagationCheck($eventName, $arguments) : $this->emitWithoutCancellingPropagationCheck($eventName, $arguments);
50 49
     }
51 50
 
52 51
     /**
@@ -92,7 +91,7 @@  discard block
 block discarded – undo
92 91
         }
93 92
 
94 93
         $eventSubscribers = $this->getEventSubscribers($eventName);
95
-        $eventSubscribers = array_filter($eventSubscribers, function ($curSubscriber) use ($subscriber) {
94
+        $eventSubscribers = array_filter($eventSubscribers, function($curSubscriber) use ($subscriber) {
96 95
             return $curSubscriber !== $subscriber;
97 96
         });
98 97
 
Please login to merge, or discard this patch.
src/Package/EventsContainerConfigurator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
      */
35 35
     public static function configureContainer(LimoncelloContainerInterface $container): void
36 36
     {
37
-        $container[EventEmitterInterface::class] = function (PsrContainerInterface $container): EventEmitterInterface {
37
+        $container[EventEmitterInterface::class] = function(PsrContainerInterface $container): EventEmitterInterface {
38 38
             $emitter   = new SimpleEventEmitter();
39 39
             $cacheData = $container->get(SettingsProviderInterface::class)->get(C::class)[C::KEY_CACHED_DATA];
40 40
             $emitter->setStaticSubscribers($cacheData);
Please login to merge, or discard this patch.
src/Package/EventSettings.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -75,8 +75,8 @@
 block discarded – undo
75 75
         $subscribersFileMask = $defaults[static::KEY_SUBSCRIBERS_FILE_MASK] ?? null;
76 76
         assert(empty($subscribersFileMask) === false, "Invalid Subscribers file mask `$subscribersFileMask`.");
77 77
 
78
-        $eventsPath      = $eventsFolder . DIRECTORY_SEPARATOR . $eventsFileMask;
79
-        $subscribersPath = $subscribersFolder . DIRECTORY_SEPARATOR . $subscribersFileMask;
78
+        $eventsPath      = $eventsFolder.DIRECTORY_SEPARATOR.$eventsFileMask;
79
+        $subscribersPath = $subscribersFolder.DIRECTORY_SEPARATOR.$subscribersFileMask;
80 80
 
81 81
         $emitter        = new SimpleEventEmitter();
82 82
         $eventClasses   = iterator_to_array(
Please login to merge, or discard this patch.