@@ -138,7 +138,7 @@ |
||
138 | 138 | // the current user has access to so that he/she can switch |
139 | 139 | // between them |
140 | 140 | return $this->renderWith('[[Your template]]', [ |
141 | - 'Options' => $options |
|
141 | + 'Options' => $options |
|
142 | 142 | ]); |
143 | 143 | |
144 | 144 |
@@ -130,7 +130,7 @@ |
||
130 | 130 | foreach ($sites as $site) { |
131 | 131 | $options[] = [ |
132 | 132 | 'Label' => $site['domain'], |
133 | - 'URL' => $this->Link('select') . '?site_key=' . $site['site_key'] |
|
133 | + 'URL' => $this->Link('select').'?site_key='.$site['site_key'] |
|
134 | 134 | ]; |
135 | 135 | } |
136 | 136 |
@@ -115,7 +115,9 @@ |
||
115 | 115 | $sites = $this->app->getSites(); |
116 | 116 | |
117 | 117 | // If the user doesn't have access to any Lifeboat site force a re-auth |
118 | - if (count($sites) < 1) return $this->reloadAuth(); |
|
118 | + if (count($sites) < 1) { |
|
119 | + return $this->reloadAuth(); |
|
120 | + } |
|
119 | 121 | |
120 | 122 | // If the user only has access to one Lifeboat site then automatically use that |
121 | 123 | if (count($sites) === 1) { |