mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2026-04-18 21:48:24 -04:00
Apply StyleCI changes
This commit is contained in:
@@ -11,14 +11,13 @@
|
||||
|
||||
namespace PrivateBin;
|
||||
|
||||
|
||||
/**
|
||||
* TemplateSwitcher
|
||||
*
|
||||
* Provides tool to change application template
|
||||
*/
|
||||
class TemplateSwitcher {
|
||||
|
||||
class TemplateSwitcher
|
||||
{
|
||||
/**
|
||||
* template fallback
|
||||
*
|
||||
@@ -28,7 +27,6 @@ class TemplateSwitcher {
|
||||
*/
|
||||
protected static $_templateFallback;
|
||||
|
||||
|
||||
/**
|
||||
* available templates
|
||||
*
|
||||
@@ -38,7 +36,6 @@ class TemplateSwitcher {
|
||||
*/
|
||||
protected static $_availableTemplates = array();
|
||||
|
||||
|
||||
/**
|
||||
* set available templates
|
||||
*
|
||||
@@ -111,8 +108,8 @@ class TemplateSwitcher {
|
||||
*/
|
||||
private static function getSelectedByUserTemplate(): ?string
|
||||
{
|
||||
$selectedTemplate = null;
|
||||
$templateCookieValue = $_COOKIE['template'] ?? "";
|
||||
$selectedTemplate = null;
|
||||
$templateCookieValue = $_COOKIE['template'] ?? '';
|
||||
|
||||
if (self::isTemplateAvailable($templateCookieValue)) {
|
||||
$selectedTemplate = $templateCookieValue;
|
||||
|
||||
Reference in New Issue
Block a user