@@ -70,6 +70,6 @@ |
||
70 | 70 | */ |
71 | 71 | private function scopeTicketId($ticketId) |
72 | 72 | { |
73 | - return $this->prefix . '.' . $ticketId; |
|
73 | + return $this->prefix.'.'.$ticketId; |
|
74 | 74 | } |
75 | 75 | } |
@@ -36,11 +36,11 @@ discard block |
||
36 | 36 | $path = $config->resolvePath($storeConfig['directory']); |
37 | 37 | |
38 | 38 | if (!is_dir($path)) { |
39 | - throw new Exception('Directory for CAS Server ticket storage [' . $path . '] does not exists. '); |
|
39 | + throw new Exception('Directory for CAS Server ticket storage ['.$path.'] does not exists. '); |
|
40 | 40 | } |
41 | 41 | |
42 | 42 | if (!is_writable($path)) { |
43 | - throw new Exception('Directory for CAS Server ticket storage [' . $path . '] is not writable. '); |
|
43 | + throw new Exception('Directory for CAS Server ticket storage ['.$path.'] is not writable. '); |
|
44 | 44 | } |
45 | 45 | |
46 | 46 | $this->pathToTicketDirectory = preg_replace('/\/$/', '', $path); |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | */ |
53 | 53 | public function getTicket($ticketId) |
54 | 54 | { |
55 | - $filename = $this->pathToTicketDirectory . '/' . $ticketId; |
|
55 | + $filename = $this->pathToTicketDirectory.'/'.$ticketId; |
|
56 | 56 | |
57 | 57 | if (file_exists($filename)) { |
58 | 58 | $content = file_get_contents($filename); |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | |
66 | 66 | public function addTicket(array $ticket) |
67 | 67 | { |
68 | - $filename = $this->pathToTicketDirectory . '/' . $ticket['id']; |
|
68 | + $filename = $this->pathToTicketDirectory.'/'.$ticket['id']; |
|
69 | 69 | file_put_contents($filename, serialize($ticket)); |
70 | 70 | } |
71 | 71 | |
@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | */ |
75 | 75 | public function deleteTicket($ticketId) |
76 | 76 | { |
77 | - $filename = $this->pathToTicketDirectory . '/' . $ticketId; |
|
77 | + $filename = $this->pathToTicketDirectory.'/'.$ticketId; |
|
78 | 78 | |
79 | 79 | if (file_exists($filename)) { |
80 | 80 | unlink($filename); |
@@ -28,7 +28,7 @@ |
||
28 | 28 | |
29 | 29 | public function getValidateSuccessResponse($username) |
30 | 30 | { |
31 | - return "yes\n" . $username . "\n"; |
|
31 | + return "yes\n".$username."\n"; |
|
32 | 32 | } |
33 | 33 | |
34 | 34 | public function getValidateFailureResponse() |
@@ -174,7 +174,7 @@ discard block |
||
174 | 174 | private function workAroundForBuggyJasigXmlParser($xmlString) |
175 | 175 | { |
176 | 176 | // when will people stop hand coding xml handling....? |
177 | - return str_replace('><', '>' . PHP_EOL . '<', str_replace(PHP_EOL, '', $xmlString)); |
|
177 | + return str_replace('><', '>'.PHP_EOL.'<', str_replace(PHP_EOL, '', $xmlString)); |
|
178 | 178 | } |
179 | 179 | |
180 | 180 | private function generateCas20Attribute($xmlDocument, $attributeName, $attributeValue) |
@@ -182,7 +182,7 @@ discard block |
||
182 | 182 | $attributeValueNode = $xmlDocument->createTextNode($this->base64EncodeAttributes ? |
183 | 183 | base64_encode($attributeValue) : $attributeValue); |
184 | 184 | |
185 | - $attributeElement = $xmlDocument->createElement('cas:' . $attributeName); |
|
185 | + $attributeElement = $xmlDocument->createElement('cas:'.$attributeName); |
|
186 | 186 | |
187 | 187 | $attributeElement->appendChild($attributeValueNode); |
188 | 188 |