Completed
Branch proxy (a8ed88)
by leo
08:29
created
src/Services/TicketGenerator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
         $flag   = false;
27 27
         for ($i = 0; $i < $maxRetry; $i++) {
28 28
             $ticket = $this->generateOne($totalLength, $prefix);
29
-            if (!call_user_func_array($checkFunc, [$ticket])) {
29
+            if (!call_user_func_array($checkFunc, [ $ticket ])) {
30 30
                 $flag = true;
31 31
                 break;
32 32
             }
Please login to merge, or discard this patch.
src/Services/PGTCaller.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
         parse_str(parse_url($pgtUrl, PHP_URL_QUERY), $originQuery);
38 38
 
39 39
         try {
40
-            $res = $this->client->get($pgtUrl, ['query' => array_merge($originQuery, $query)]);
40
+            $res = $this->client->get($pgtUrl, [ 'query' => array_merge($originQuery, $query) ]);
41 41
 
42 42
             return $res->getStatusCode() == 200;
43 43
         } catch (\Exception $e) {
Please login to merge, or discard this patch.
src/Responses/XmlProxySuccessResponse.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.
src/Responses/JsonProxySuccessResponse.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,11 +17,11 @@
 block discarded – undo
17 17
      */
18 18
     public function __construct()
19 19
     {
20
-        $this->data = ['serviceResponse' => ['proxySuccess' => []]];
20
+        $this->data = [ 'serviceResponse' => [ 'proxySuccess' => [ ] ] ];
21 21
     }
22 22
 
23 23
     public function setProxyTicket($ticket)
24 24
     {
25
-        $this->data['serviceResponse']['proxySuccess']['proxyTicket'] = $ticket;
25
+        $this->data[ 'serviceResponse' ][ 'proxySuccess' ][ 'proxyTicket' ] = $ticket;
26 26
     }
27 27
 }
Please login to merge, or discard this patch.
src/Responses/JsonProxyFailureResponse.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
      */
18 18
     public function __construct()
19 19
     {
20
-        $this->data = ['serviceResponse' => ['proxyFailure' => []]];
20
+        $this->data = [ 'serviceResponse' => [ 'proxyFailure' => [ ] ] ];
21 21
     }
22 22
 
23 23
     /**
@@ -27,8 +27,8 @@  discard block
 block discarded – undo
27 27
      */
28 28
     public function setFailure($code, $description)
29 29
     {
30
-        $this->data['serviceResponse']['proxyFailure']['code']        = $code;
31
-        $this->data['serviceResponse']['proxyFailure']['description'] = $description;
30
+        $this->data[ 'serviceResponse' ][ 'proxyFailure' ][ 'code' ]        = $code;
31
+        $this->data[ 'serviceResponse' ][ 'proxyFailure' ][ 'description' ] = $description;
32 32
 
33 33
         return $this;
34 34
     }
Please login to merge, or discard this patch.