@@ -139,7 +139,7 @@ discard block |
||
| 139 | 139 | $config['item'], |
| 140 | 140 | sprintf( |
| 141 | 141 | $config['link'], |
| 142 | - (is_string($name)?$name:$backend), |
|
| 142 | + (is_string($name) ? $name : $backend), |
|
| 143 | 143 | $link |
| 144 | 144 | ), |
| 145 | 145 | $config['itemAttribs'] |
@@ -154,7 +154,7 @@ discard block |
||
| 154 | 154 | ), |
| 155 | 155 | sprintf( |
| 156 | 156 | $config['itemlist'], |
| 157 | - implode("\n",$xhtml), |
|
| 157 | + implode("\n", $xhtml), |
|
| 158 | 158 | $config['listAttribs'] |
| 159 | 159 | ) |
| 160 | 160 | ); |
@@ -156,7 +156,7 @@ |
||
| 156 | 156 | */ |
| 157 | 157 | public function isAuthenticated() |
| 158 | 158 | { |
| 159 | - if (! $this->getService()) { |
|
| 159 | + if (!$this->getService()) { |
|
| 160 | 160 | return false; |
| 161 | 161 | } |
| 162 | 162 | |
@@ -117,7 +117,7 @@ discard block |
||
| 117 | 117 | |
| 118 | 118 | try { |
| 119 | 119 | $backend = $this->authenticator->authenticate($provider); |
| 120 | - if (! $backend->isAuthorized()) { |
|
| 120 | + if (!$backend->isAuthorized()) { |
|
| 121 | 121 | throw new \UnexpectedValueException('User is not connected'); |
| 122 | 122 | } |
| 123 | 123 | $profile = $backend->getUserProfile(); |
@@ -174,7 +174,7 @@ discard block |
||
| 174 | 174 | |
| 175 | 175 | $endpoint = new Endpoint(); |
| 176 | 176 | $endpoint->process(); |
| 177 | - } catch(\Exception $e) { |
|
| 177 | + } catch (\Exception $e) { |
|
| 178 | 178 | // |
| 179 | 179 | } |
| 180 | 180 | return false; |
@@ -94,6 +94,6 @@ |
||
| 94 | 94 | $uri->setPath($basePath); |
| 95 | 95 | $uri->setQuery(array()); |
| 96 | 96 | $uri->setFragment(''); |
| 97 | - return $uri->getScheme() . '://' . $uri->getHost() . preg_replace('/[\/]+/', '/', $uri->getPath() . '/' . $route); |
|
| 97 | + return $uri->getScheme() . '://' . $uri->getHost() . preg_replace('/[\/]+/', '/', $uri->getPath() . '/' . $route); |
|
| 98 | 98 | } |
| 99 | 99 | } |
@@ -84,6 +84,6 @@ |
||
| 84 | 84 | $uri->setPath($basePath); |
| 85 | 85 | $uri->setQuery(array()); |
| 86 | 86 | $uri->setFragment(''); |
| 87 | - return $uri->getScheme() . '://' . $uri->getHost() . preg_replace('/[\/]+/', '/', $uri->getPath() . '/' . $route); |
|
| 87 | + return $uri->getScheme() . '://' . $uri->getHost() . preg_replace('/[\/]+/', '/', $uri->getPath() . '/' . $route); |
|
| 88 | 88 | } |
| 89 | 89 | } |