code cleanup (#602)
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of the AdminLTE bundle.
|
||||
* This file is part of the Kimai time-tracking app.
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
|
||||
@@ -73,6 +73,7 @@ class ThemeEvent extends Event
|
||||
public function addContent(string $content)
|
||||
{
|
||||
$this->content .= $content;
|
||||
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -66,7 +66,6 @@ class ThemeOptionsSubscriber implements EventSubscriberInterface
|
||||
|
||||
$skin = '';
|
||||
foreach ($user->getPreferences() as $ref) {
|
||||
|
||||
$name = $ref->getName();
|
||||
switch ($name) {
|
||||
case UserPreference::SKIN:
|
||||
|
||||
@@ -88,7 +88,7 @@ class Kernel extends BaseKernel
|
||||
continue;
|
||||
}
|
||||
|
||||
yield new $pluginClass;
|
||||
yield new $pluginClass();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -135,7 +135,7 @@ class Kernel extends BaseKernel
|
||||
|
||||
// load plugin routes
|
||||
$pluginsDir = $this->getProjectDir() . '/var/plugins';
|
||||
$routes->import($pluginsDir . '/*Bundle/Resources/config/routes'. self::CONFIG_EXTS, '/', 'glob');
|
||||
$routes->import($pluginsDir . '/*Bundle/Resources/config/routes' . self::CONFIG_EXTS, '/', 'glob');
|
||||
}
|
||||
|
||||
protected function configureFosUserRoutes(RouteCollectionBuilder $routes)
|
||||
|
||||
@@ -29,9 +29,9 @@ final class Version20190219200020 extends AbstractMigration
|
||||
|
||||
$userPrefs = $this->getTableName('user_preferences');
|
||||
|
||||
$this->addSql('DELETE FROM ' . $userPrefs. ' WHERE name = "theme.fixed_layout"');
|
||||
$this->addSql('DELETE FROM ' . $userPrefs. ' WHERE name = "theme.boxed_layout"');
|
||||
$this->addSql('DELETE FROM ' . $userPrefs. ' WHERE name = "theme.mini_sidebar"');
|
||||
$this->addSql('DELETE FROM ' . $userPrefs . ' WHERE name = "theme.fixed_layout"');
|
||||
$this->addSql('DELETE FROM ' . $userPrefs . ' WHERE name = "theme.boxed_layout"');
|
||||
$this->addSql('DELETE FROM ' . $userPrefs . ' WHERE name = "theme.mini_sidebar"');
|
||||
}
|
||||
|
||||
public function down(Schema $schema): void
|
||||
|
||||
Reference in New Issue
Block a user