Completed
Branch proxy (abe564)
by leo
03:38
created
src/Models/ServiceHost.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
 {
15 15
     protected $table = 'cas_service_hosts';
16 16
     public $timestamps = false;
17
-    protected $fillable = ['host'];
17
+    protected $fillable = [ 'host' ];
18 18
 
19 19
     public function service()
20 20
     {
Please login to merge, or discard this patch.
src/Models/Service.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
 class Service extends Model
14 14
 {
15 15
     protected $table = 'cas_services';
16
-    protected $fillable = ['name', 'enabled'];
16
+    protected $fillable = [ 'name', 'enabled' ];
17 17
     protected $casts = [
18 18
         'enabled' => 'boolean',
19 19
     ];
Please login to merge, or discard this patch.
src/Utils/helpers.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
      * @param bool   $absolute
14 14
      * @return string
15 15
      */
16
-    function cas_route($name, $parameters = [], $absolute = true)
16
+    function cas_route($name, $parameters = [ ], $absolute = true)
17 17
     {
18 18
         $name = config('cas.router.name_prefix').$name;
19 19
 
Please login to merge, or discard this patch.
src/Contracts/Interactions/UserLogin.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,13 +40,13 @@
 block discarded – undo
40 40
      * @param array   $errors
41 41
      * @return Response
42 42
      */
43
-    public function showLoginPage(Request $request, array $errors = []);
43
+    public function showLoginPage(Request $request, array $errors = [ ]);
44 44
 
45 45
     /**
46 46
      * @param array $errors
47 47
      * @return Response
48 48
      */
49
-    public function redirectToHome(array $errors = []);
49
+    public function redirectToHome(array $errors = [ ]);
50 50
 
51 51
     /**
52 52
      * @param Request  $request
Please login to merge, or discard this patch.
src/Events/CasUserLoginEvent.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
      */
38 38
     public function broadcastOn()
39 39
     {
40
-        return [];
40
+        return [ ];
41 41
     }
42 42
 
43 43
     /**
Please login to merge, or discard this patch.
src/Events/CasUserLogoutEvent.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
      */
38 38
     public function broadcastOn()
39 39
     {
40
-        return [];
40
+        return [ ];
41 41
     }
42 42
 
43 43
     /**
Please login to merge, or discard this patch.
src/Http/Controllers/SecurityController.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -53,11 +53,11 @@  discard block
 block discarded – undo
53 53
     public function showLogin(Request $request)
54 54
     {
55 55
         $service = $request->get('service', '');
56
-        $errors  = [];
56
+        $errors  = [ ];
57 57
         if (!empty($service)) {
58 58
             //service not found in white list
59 59
             if (!$this->serviceRepository->isUrlValid($service)) {
60
-                $errors[] = (new CasException(CasException::INVALID_SERVICE))->getCasMsg();
60
+                $errors[ ] = (new CasException(CasException::INVALID_SERVICE))->getCasMsg();
61 61
             }
62 62
         }
63 63
 
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
             //must not be transparent
73 73
             if ($request->get('warn') === 'true' && !empty($service)) {
74 74
                 $query = $request->query->all();
75
-                unset($query['warn']);
75
+                unset($query[ 'warn' ]);
76 76
                 $url = cas_route('login_page', $query);
77 77
 
78 78
                 return $this->loginInteraction->showLoginWarnPage($request, $url, $service);
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
             try {
102 102
                 $ticket = $this->ticketRepository->applyTicket($user, $serviceUrl);
103 103
             } catch (CasException $e) {
104
-                return $this->loginInteraction->redirectToHome([$e->getCasMsg()]);
104
+                return $this->loginInteraction->redirectToHome([ $e->getCasMsg() ]);
105 105
             }
106 106
             $finalUrl = $serviceUrl.($query ? '&' : '?').'ticket='.$ticket->ticket;
107 107
 
Please login to merge, or discard this patch.
src/Responses/JsonAuthenticationFailureResponse.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
      */
24 24
     public function __construct()
25 25
     {
26
-        $this->data = ['serviceResponse' => ['authenticationFailure' => []]];
26
+        $this->data = [ 'serviceResponse' => [ 'authenticationFailure' => [ ] ] ];
27 27
     }
28 28
 
29 29
     /**
@@ -33,8 +33,8 @@  discard block
 block discarded – undo
33 33
      */
34 34
     public function setFailure($code, $description)
35 35
     {
36
-        $this->data['serviceResponse']['authenticationFailure']['code']        = $code;
37
-        $this->data['serviceResponse']['authenticationFailure']['description'] = $description;
36
+        $this->data[ 'serviceResponse' ][ 'authenticationFailure' ][ 'code' ]        = $code;
37
+        $this->data[ 'serviceResponse' ][ 'authenticationFailure' ][ 'description' ] = $description;
38 38
 
39 39
         return $this;
40 40
     }
Please login to merge, or discard this patch.
src/Responses/XmlAuthenticationSuccessResponse.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -96,6 +96,6 @@
 block discarded – undo
96 96
             return $this->node->addChild('cas:authenticationSuccess');
97 97
         }
98 98
 
99
-        return $authNodes[0];
99
+        return $authNodes[ 0 ];
100 100
     }
101 101
 }
Please login to merge, or discard this patch.