Apply PSR-12 code style (#3886)
[GitHub/WoltLab/WCF.git] / wcfsetup / install / files / lib / system / box / SignedInAsBoxController.class.php
1 <?php
2
3 namespace wcf\system\box;
4
5 use wcf\system\WCF;
6
7 /**
8 * Box that shows the register button.
9 *
10 * @author Marcel Werk
11 * @copyright 2001-2019 WoltLab GmbH
12 * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
13 * @package WoltLabSuite\Core\System\Box
14 * @since 3.0
15 */
16 class SignedInAsBoxController extends AbstractBoxController
17 {
18 /**
19 * @inheritDoc
20 */
21 protected static $supportedPositions = ['sidebarLeft', 'sidebarRight'];
22
23 /**
24 * @inheritDoc
25 */
26 protected function loadContent()
27 {
28 if (WCF::getUser()->userID) {
29 $this->content = WCF::getTPL()->fetch('boxSignedInAs', 'wcf', [], true);
30 }
31 }
32 }