Completed
Branch master (318de6)
by Risan Bagja
03:10
created
src/AuthEventListener.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,8 +25,8 @@
 block discarded – undo
25 25
     /**
26 26
      * Create a new instance of AuthEventListener class.
27 27
      *
28
-     * @param Illuminate\Routing\Redirector $redirector
29
-     * @param AuthService\Contracts\AuthServiceConfig $config
28
+     * @param Redirector $redirector
29
+     * @param AuthServiceConfigContract $config
30 30
      */
31 31
     public function __construct(Redirector $redirector, AuthServiceConfigContract $config)
32 32
     {
Please login to merge, or discard this patch.
src/AuthService.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,8 +25,8 @@
 block discarded – undo
25 25
     /**
26 26
      * Create a new instance of AuthService class.
27 27
      *
28
-     * @param Illuminate\Contracts\Auth\StatefulGuard $statefulGuard
29
-     * @param AuthService\Contracts\AuthEventListener $eventListener
28
+     * @param StatefulGuardContract $statefulGuard
29
+     * @param AuthEventListenerContract $eventListener
30 30
      */
31 31
     public function __construct(StatefulGuardContract $statefulGuard, AuthEventListenerContract $eventListener)
32 32
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
64 64
      */
65 65
     public function login(array $credentials, $remember = false)
66 66
     {
67
-        if (! $this->statefulGuard()->attempt($credentials, $remember)) {
67
+        if (!$this->statefulGuard()->attempt($credentials, $remember)) {
68 68
             return $this->eventListener()->userHasFailedToLogIn();
69 69
         }
70 70
 
Please login to merge, or discard this patch.
src/AuthServiceConfig.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -96,7 +96,7 @@
 block discarded – undo
96 96
      *
97 97
      * @param  array $config
98 98
      *
99
-     * @return AuthService\Contracts\AuthServiceConfig
99
+     * @return AuthServiceConfig
100 100
      */
101 101
     public static function fromArray(array $config)
102 102
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -108,7 +108,7 @@
 block discarded – undo
108 108
         ];
109 109
 
110 110
         foreach ($requiredParams as $param) {
111
-            if (! isset($config[$param])) {
111
+            if (!isset($config[$param])) {
112 112
                 throw new InvalidArgumentException("Missing auth service configuration: $param.");
113 113
             }
114 114
         }
Please login to merge, or discard this patch.
src/AuthServiceProvider.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
      */
45 45
     protected function registerAuthServiceConfig()
46 46
     {
47
-        $this->app->singleton('AuthService\Contracts\AuthServiceConfig', function ($app) {
47
+        $this->app->singleton('AuthService\Contracts\AuthServiceConfig', function($app) {
48 48
             return \AuthService\AuthServiceConfig::fromArray($app['config']->get('authservice'));
49 49
         });
50 50
     }
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
      */
57 57
     protected function registerAuthEventListener()
58 58
     {
59
-        $this->app->singleton('AuthService\Contracts\AuthEventListener', function ($app) {
59
+        $this->app->singleton('AuthService\Contracts\AuthEventListener', function($app) {
60 60
             $redirector = $app['redirect'];
61 61
             $config = $app->make('AuthService\Contracts\AuthServiceConfig');
62 62
             $eventListenerClass = $config->authEventListenerClass();
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
      */
73 73
     protected function registerAuthService()
74 74
     {
75
-        $this->app->singleton('AuthService\Contracts\AuthService', function ($app) {
75
+        $this->app->singleton('AuthService\Contracts\AuthService', function($app) {
76 76
             $statefulGuard = $app['auth']->guard();
77 77
             $eventListener = $app->make('AuthService\Contracts\AuthEventListener');
78 78
 
Please login to merge, or discard this patch.