Passed
Push — develop ( a4f728...dbd9a2 )
by nguereza
13:02
created
src/SubscriberInterface.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -50,8 +50,7 @@
 block discarded – undo
50 50
  * @class SubscriberInterface
51 51
  * @package Platine\Event
52 52
  */
53
-interface SubscriberInterface
54
-{
53
+interface SubscriberInterface {
55 54
     /**
56 55
      * Return the array of event to subscribe in form of
57 56
      *
Please login to merge, or discard this patch.
src/Event.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -51,8 +51,7 @@  discard block
 block discarded – undo
51 51
  * @class Event
52 52
  * @package Platine\Event
53 53
  */
54
-class Event implements EventInterface
55
-{
54
+class Event implements EventInterface {
56 55
     /**
57 56
      * Whether the propagation is stopped.
58 57
      * @var boolean
@@ -64,8 +63,7 @@  discard block
 block discarded – undo
64 63
      * @param string $name the event name
65 64
      * @param array<string, mixed>  $arguments the event data
66 65
      */
67
-    public function __construct(protected string $name, protected array $arguments = [])
68
-    {
66
+    public function __construct(protected string $name, protected array $arguments = []) {
69 67
     }
70 68
 
71 69
     /**
Please login to merge, or discard this patch.
src/Exception/DispatcherException.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,6 +38,5 @@
 block discarded – undo
38 38
  * @class DispatcherException
39 39
  * @package Platine\Event\Exception
40 40
  */
41
-class DispatcherException extends Exception
42
-{
41
+class DispatcherException extends Exception {
43 42
 }
Please login to merge, or discard this patch.
src/DispatcherInterface.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -53,8 +53,7 @@
 block discarded – undo
53 53
  * @class DispatcherInterface
54 54
  * @package Platine\Event
55 55
  */
56
-interface DispatcherInterface
57
-{
56
+interface DispatcherInterface {
58 57
     /**
59 58
      * The low priority
60 59
      * @var int
Please login to merge, or discard this patch.
src/EventInterface.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -50,8 +50,7 @@
 block discarded – undo
50 50
  * @class EventInterface
51 51
  * @package Platine\Event
52 52
  */
53
-interface EventInterface
54
-{
53
+interface EventInterface {
55 54
     /**
56 55
      * Get the  event name
57 56
      * @return string
Please login to merge, or discard this patch.
src/Dispatcher.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -54,8 +54,7 @@
 block discarded – undo
54 54
  * @class Dispatcher
55 55
  * @package Platine\Event
56 56
  */
57
-class Dispatcher implements DispatcherInterface
58
-{
57
+class Dispatcher implements DispatcherInterface {
59 58
     /**
60 59
      * The list of listener
61 60
      * @var array<string, ListenerPriorityQueue>
Please login to merge, or discard this patch.