Test Failed
Push — develop ( 8fcf9d...8b5bdd )
by nguereza
02:43
created
src/Auth/Event/AuthInvalidPasswordEvent.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -54,8 +54,7 @@  discard block
 block discarded – undo
54 54
  * @class AuthInvalidPasswordEvent
55 55
  * @package Platine\Framework\Auth\Event
56 56
  */
57
-class AuthInvalidPasswordEvent extends Event
58
-{
57
+class AuthInvalidPasswordEvent extends Event {
59 58
 
60 59
     /**
61 60
      * The authentication user
@@ -67,8 +66,7 @@  discard block
 block discarded – undo
67 66
      * Create new instance
68 67
      * @param User $user
69 68
      */
70
-    public function __construct(User $user)
71
-    {
69
+    public function __construct(User $user) {
72 70
         parent::__construct(__CLASS__, []);
73 71
         $this->user = $user;
74 72
     }
Please login to merge, or discard this patch.
src/Demo/Event/HandleAuthFailure.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -56,8 +56,7 @@  discard block
 block discarded – undo
56 56
  * @class HandleAuthFailure
57 57
  * @package Platine\Framework\Demo\Event
58 58
  */
59
-class HandleAuthFailure implements ListenerInterface
60
-{
59
+class HandleAuthFailure implements ListenerInterface {
61 60
 
62 61
     /**
63 62
      * Logger instance
@@ -69,16 +68,14 @@  discard block
 block discarded – undo
69 68
      * Create new instance
70 69
      * @param LoggerInterface $logger
71 70
      */
72
-    public function __construct(LoggerInterface $logger)
73
-    {
71
+    public function __construct(LoggerInterface $logger) {
74 72
         $this->logger = $logger;
75 73
     }
76 74
 
77 75
     /**
78 76
      * {@inheritdoc}
79 77
      */
80
-    public function handle(EventInterface $event)
81
-    {
78
+    public function handle(EventInterface $event) {
82 79
         if ($event instanceof AuthInvalidPasswordEvent) {
83 80
             $user = $event->getUser();
84 81
             $this->logger->error('User {email} - {username} enter wrong password ', [
Please login to merge, or discard this patch.