@@ -26,7 +26,7 @@ |
||
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 | } |
@@ -37,7 +37,7 @@ |
||
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) { |
@@ -96,6 +96,6 @@ |
||
96 | 96 | return $this->node->addChild('cas:authenticationSuccess'); |
97 | 97 | } |
98 | 98 | |
99 | - return $authNodes[0]; |
|
99 | + return $authNodes[ 0 ]; |
|
100 | 100 | } |
101 | 101 | } |
@@ -17,11 +17,11 @@ |
||
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 | } |
@@ -17,7 +17,7 @@ discard block |
||
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 |
||
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 | } |