code cleanup (#602)
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
<?php
|
<?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
|
* For the full copyright and license information, please view the LICENSE
|
||||||
* file that was distributed with this source code.
|
* file that was distributed with this source code.
|
||||||
|
|||||||
@@ -73,6 +73,7 @@ class ThemeEvent extends Event
|
|||||||
public function addContent(string $content)
|
public function addContent(string $content)
|
||||||
{
|
{
|
||||||
$this->content .= $content;
|
$this->content .= $content;
|
||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -66,7 +66,6 @@ class ThemeOptionsSubscriber implements EventSubscriberInterface
|
|||||||
|
|
||||||
$skin = '';
|
$skin = '';
|
||||||
foreach ($user->getPreferences() as $ref) {
|
foreach ($user->getPreferences() as $ref) {
|
||||||
|
|
||||||
$name = $ref->getName();
|
$name = $ref->getName();
|
||||||
switch ($name) {
|
switch ($name) {
|
||||||
case UserPreference::SKIN:
|
case UserPreference::SKIN:
|
||||||
|
|||||||
@@ -88,7 +88,7 @@ class Kernel extends BaseKernel
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
yield new $pluginClass;
|
yield new $pluginClass();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -4,8 +4,8 @@
|
|||||||
<div class="modal-dialog" role="document">
|
<div class="modal-dialog" role="document">
|
||||||
<div class="modal-content">
|
<div class="modal-content">
|
||||||
<div class="modal-header">
|
<div class="modal-header">
|
||||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
<button type="button" class="close" data-dismiss="modal" aria-label="{{ 'action.close'|trans }}"><span aria-hidden="true">×</span></button>
|
||||||
<h4 class="modal-title" id="myModalLabel">{{ 'modal.columns.title'|trans }}</h4>
|
<h4 class="modal-title" id="data_table_modal_label">{{ 'modal.columns.title'|trans }}</h4>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
<form name="{{ name }}_visibility">
|
<form name="{{ name }}_visibility">
|
||||||
|
|||||||
@@ -46,7 +46,7 @@
|
|||||||
</li>
|
</li>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<li>
|
<li>
|
||||||
<a href="{{ path('help') }}">
|
<a href="{{ constant('App\\Constants::HOMEPAGE') }}/documentation/" target="_blank">
|
||||||
<div class="pull-left image">
|
<div class="pull-left image">
|
||||||
<i class="{{ 'help'|icon }} text-gray"></i>
|
<i class="{{ 'help'|icon }} text-gray"></i>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -9,6 +9,7 @@
|
|||||||
|
|
||||||
namespace App\Tests\Controller;
|
namespace App\Tests\Controller;
|
||||||
|
|
||||||
|
use App\Constants;
|
||||||
use App\Entity\User;
|
use App\Entity\User;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -33,7 +34,7 @@ class SidebarControllerTest extends ControllerBaseTest
|
|||||||
$this->assertContains('<a href="/en/profile/' . $user->getUsername() . '">', $content);
|
$this->assertContains('<a href="/en/profile/' . $user->getUsername() . '">', $content);
|
||||||
$this->assertContains('<a href="/en/profile/' . $user->getUsername() . '/edit">', $content);
|
$this->assertContains('<a href="/en/profile/' . $user->getUsername() . '/edit">', $content);
|
||||||
$this->assertContains('<a href="/en/profile/' . $user->getUsername() . '/prefs">', $content);
|
$this->assertContains('<a href="/en/profile/' . $user->getUsername() . '/prefs">', $content);
|
||||||
$this->assertContains('<a href="/en/help/">', $content);
|
$this->assertContains('<a href="' . Constants::HOMEPAGE . '/documentation/" target="_blank">', $content);
|
||||||
$this->assertContains('<a href="/en/logout">', $content);
|
$this->assertContains('<a href="/en/logout">', $content);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user