Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions library/Vspheredb/Hint/ConnectionStateDetails.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

namespace Icinga\Module\Vspheredb\Hint;

use gipfl\Translation\TranslationHelper;
use ipl\I18n\Translation;

class ConnectionStateDetails
{
use TranslationHelper;
use Translation;

protected static $instance;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@

namespace Icinga\Module\Vspheredb\Monitoring\Rule\Definition;

use gipfl\Translation\TranslationHelper;
use Icinga\Module\Vspheredb\DbObject\BaseDbObject;
use Icinga\Module\Vspheredb\Monitoring\Rule\Enum\ObjectType;
use Icinga\Module\Vspheredb\Monitoring\Rule\Settings;
use Icinga\Module\Vspheredb\Monitoring\SingleCheckResult;
use ipl\I18n\Translation;

use function in_array;

abstract class MonitoringRuleDefinition
{
use TranslationHelper;
use Translation;

public const SUPPORTED_OBJECT_TYPES = [];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

namespace Icinga\Module\Vspheredb\Monitoring\Rule\Definition;

use gipfl\Translation\TranslationHelper;
use ipl\I18n\Translation;

abstract class MonitoringRuleSetDefinition
{
use TranslationHelper;
use Translation;

/** @var string[]|MonitoringRuleDefinition[] Type hint, these are class names */
public const RULE_CLASSES = [];
Expand Down
4 changes: 2 additions & 2 deletions library/Vspheredb/Monitoring/Rule/MonitoringRulesTree.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

namespace Icinga\Module\Vspheredb\Monitoring\Rule;

use gipfl\Translation\TranslationHelper;
use Icinga\Module\Vspheredb\Db;
use Icinga\Module\Vspheredb\DbObject\BaseDbObject;
use ipl\I18n\Translation;

class MonitoringRulesTree
{
use TranslationHelper;
use Translation;

public const ROOT_OBJECT_TYPE = 'root';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
namespace Icinga\Module\Vspheredb\Monitoring\Rule;

use gipfl\IcingaWeb2\Link;
use gipfl\Translation\TranslationHelper;
use Icinga\Module\Vspheredb\Util;
use ipl\Html\BaseHtmlElement;
use ipl\Html\Html;
use ipl\Html\HtmlElement;
use ipl\I18n\Translation;

class MonitoringRulesTreeRenderer extends BaseHtmlElement
{
use TranslationHelper;
use Translation;

protected $tag = 'ul';

Expand Down
4 changes: 2 additions & 2 deletions library/Vspheredb/Monitoring/Rule/RuleForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace Icinga\Module\Vspheredb\Monitoring\Rule;

use gipfl\Translation\TranslationHelper;
use gipfl\Web\Form;
use Icinga\Module\Vspheredb\Db;
use Icinga\Module\Vspheredb\Monitoring\Rule\Definition\MonitoringRuleDefinition as Rule;
Expand All @@ -14,12 +13,13 @@
use ipl\Html\FormElement\SelectElement;
use ipl\Html\FormElement\TextElement;
use ipl\Html\Html;
use ipl\I18n\Translation;
use Ramsey\Uuid\Uuid;
use Ramsey\Uuid\UuidInterface;

class RuleForm extends Form
{
use TranslationHelper;
use Translation;

public const NEXT_UUID = '00000000-0000-0000-0000-000000000000';
public const RESULT_CREATED = 'created';
Expand Down
4 changes: 2 additions & 2 deletions library/Vspheredb/Web/Form/ApplyMigrationsForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
namespace Icinga\Module\Vspheredb\Web\Form;

use gipfl\DbMigration\Migrations;
use gipfl\Translation\TranslationHelper;
use gipfl\Web\Form;
use gipfl\Web\Widget\Hint;
use Icinga\Web\Notification;
use ipl\I18n\Translation;

class ApplyMigrationsForm extends Form
{
use TranslationHelper;
use Translation;

/** @var Migrations */
protected $migrations;
Expand Down
4 changes: 2 additions & 2 deletions library/Vspheredb/Web/Form/ChooseDbResourceForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,18 @@
use Exception;
use gipfl\DbMigration\Migrations;
use gipfl\IcingaWeb2\Link;
use gipfl\Translation\TranslationHelper;
use gipfl\Web\Form;
use gipfl\Web\Widget\Hint;
use Icinga\Application\Config;
use Icinga\Data\ResourceFactory;
use Icinga\Module\Vspheredb\Db;
use Icinga\Web\Notification;
use ipl\Html\Html;
use ipl\I18n\Translation;

class ChooseDbResourceForm extends Form
{
use TranslationHelper;
use Translation;

private $config;

Expand Down
4 changes: 2 additions & 2 deletions library/Vspheredb/Web/Form/ChooseInfluxDatabaseForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,22 @@

namespace Icinga\Module\Vspheredb\Web\Form;

use gipfl\Translation\TranslationHelper;
use gipfl\Web\Form;
use gipfl\Web\Form\Element\TextWithActionButton;
use Icinga\Module\Vspheredb\Daemon\RemoteClient;
use Icinga\Module\Vspheredb\Hook\PerfDataConsumerHook;
use Icinga\Web\Notification;
use ipl\Html\FormElement\BaseFormElement;
use ipl\Html\FormElement\SelectElement;
use ipl\I18n\Translation;
use React\EventLoop\LoopInterface;

use function React\Async\await;
use function React\Promise\Timer\timeout;

class ChooseInfluxDatabaseForm extends Form
{
use TranslationHelper;
use Translation;

/** @var LoopInterface */
protected $loop;
Expand Down
4 changes: 2 additions & 2 deletions library/Vspheredb/Web/Form/DeleteVCenterForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace Icinga\Module\Vspheredb\Web\Form;

use gipfl\Translation\TranslationHelper;
use gipfl\Web\Form;
use gipfl\Web\Form\Feature\NextConfirmCancel;
use gipfl\Web\Widget\Hint;
Expand All @@ -11,14 +10,15 @@
use Icinga\Module\Vspheredb\DbObject\VCenter;
use Icinga\Web\Notification;
use ipl\Html\Html;
use ipl\I18n\Translation;
use Ramsey\Uuid\Uuid;
use React\EventLoop\LoopInterface;

use function React\Async\await;

class DeleteVCenterForm extends Form
{
use TranslationHelper;
use Translation;

protected $defaultDecoratorClass = null;

Expand Down
4 changes: 2 additions & 2 deletions library/Vspheredb/Web/Form/DisableServerForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

namespace Icinga\Module\Vspheredb\Web\Form;

use gipfl\Translation\TranslationHelper;
use gipfl\Web\Form\Feature\NextConfirmCancel;
use gipfl\Web\InlineForm;
use ipl\I18n\Translation;

class DisableServerForm extends InlineForm
{
use TranslationHelper;
use Translation;

protected $serverId;

Expand Down
4 changes: 2 additions & 2 deletions library/Vspheredb/Web/Form/Element/VCenterSelection.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@

namespace Icinga\Module\Vspheredb\Web\Form\Element;

use gipfl\Translation\TranslationHelper;
use Icinga\Authentication\Auth;
use Icinga\Module\Vspheredb\Auth\RestrictionHelper;
use Icinga\Module\Vspheredb\Db;
use ipl\Html\FormElement\SelectElement;
use ipl\I18n\Translation;
use Ramsey\Uuid\Uuid;

class VCenterSelection extends SelectElement
{
use TranslationHelper;
use Translation;

/** @var Db */
protected $connection;
Expand Down
4 changes: 2 additions & 2 deletions library/Vspheredb/Web/Form/EnableServerForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

namespace Icinga\Module\Vspheredb\Web\Form;

use gipfl\Translation\TranslationHelper;
use gipfl\Web\Form\Feature\NextConfirmCancel;
use gipfl\Web\InlineForm;
use ipl\I18n\Translation;

class EnableServerForm extends InlineForm
{
use TranslationHelper;
use Translation;

protected $serverId;

Expand Down
4 changes: 2 additions & 2 deletions library/Vspheredb/Web/Form/FilterHostParentForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@

namespace Icinga\Module\Vspheredb\Web\Form;

use gipfl\Translation\TranslationHelper;
use gipfl\Web\Form;
use Icinga\Module\Vspheredb\Db;
use Icinga\Module\Vspheredb\Util;
use ipl\I18n\Translation;

class FilterHostParentForm extends Form
{
use TranslationHelper;
use Translation;

protected $useFormName = false;
protected $useCsrf = false;
Expand Down
4 changes: 2 additions & 2 deletions library/Vspheredb/Web/Form/FilterVCenterForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@

namespace Icinga\Module\Vspheredb\Web\Form;

use gipfl\Translation\TranslationHelper;
use gipfl\Web\Form;
use Icinga\Authentication\Auth;
use Icinga\Module\Vspheredb\Db;
use Icinga\Module\Vspheredb\Web\Form\Element\VCenterSelection;
use ipl\I18n\Translation;

class FilterVCenterForm extends Form
{
use TranslationHelper;
use Translation;

/** @var Auth */
protected $auth;
Expand Down
4 changes: 2 additions & 2 deletions library/Vspheredb/Web/Form/InfluxDbConnectionForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,19 @@

namespace Icinga\Module\Vspheredb\Web\Form;

use gipfl\Translation\TranslationHelper;
use gipfl\Web\Form;
use gipfl\Web\Form\Element\TextWithActionButton;
use Icinga\Module\Vspheredb\Daemon\RemoteClient;
use ipl\Html\FormElement\SelectElement;
use ipl\I18n\Translation;
use React\EventLoop\LoopInterface;

use function React\Async\await;
use function React\Promise\Timer\timeout;

class InfluxDbConnectionForm extends Form
{
use TranslationHelper;
use Translation;

public const INFLUXDB_MIN_SUPPORTED_VERSION = '1.6.0';

Expand Down
4 changes: 2 additions & 2 deletions library/Vspheredb/Web/Form/LogLevelForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,19 @@

namespace Icinga\Module\Vspheredb\Web\Form;

use gipfl\Translation\TranslationHelper;
use gipfl\Web\Form\Feature\NextConfirmCancel;
use gipfl\Web\InlineForm;
use Icinga\Module\Vspheredb\Daemon\RemoteClient;
use ipl\Html\FormElement\SelectElement;
use ipl\I18n\Translation;
use Psr\Log\LogLevel;
use React\EventLoop\LoopInterface;

use function React\Async\await;

class LogLevelForm extends InlineForm
{
use TranslationHelper;
use Translation;

/** @var RemoteClient */
protected $client;
Expand Down
4 changes: 2 additions & 2 deletions library/Vspheredb/Web/Form/MonitoringConnectionForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@
use Icinga\Module\Vspheredb\Web\QueryParams;
use Icinga\Web\Notification;
use InvalidArgumentException;
use gipfl\Translation\TranslationHelper;
use ipl\I18n\Translation;
use gipfl\Web\Form;
use ipl\Html\FormElement\SubmitElement;
use ipl\Html\Html;
use Ramsey\Uuid\Uuid;

class MonitoringConnectionForm extends Form
{
use TranslationHelper;
use Translation;

protected $db;
protected bool $hasBeenDeleted = false;
Expand Down
4 changes: 2 additions & 2 deletions library/Vspheredb/Web/Form/ObjectForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@
use Icinga\Authentication\Auth;
use Ramsey\Uuid\Uuid;
use RuntimeException;
use gipfl\Translation\TranslationHelper;
use ipl\I18n\Translation;
use gipfl\Web\Form;
use gipfl\ZfDbStore\StorableInterface;

abstract class ObjectForm extends Form
{
use TranslationHelper;
use Translation;

/** @var Store */
protected $store;
Expand Down
4 changes: 2 additions & 2 deletions library/Vspheredb/Web/Form/PerfdataConsumerForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Icinga\Module\Vspheredb\Web\Form;

use gipfl\Translation\TranslationHelper;
use ipl\I18n\Translation;
use gipfl\Web\Form\Decorator\DdDtDecorator;
use gipfl\ZfDbStore\Store;
use Icinga\Module\Vspheredb\Daemon\RemoteClient;
Expand All @@ -14,7 +14,7 @@
class PerfdataConsumerForm extends ObjectForm
{
use FormElementStealer;
use TranslationHelper;
use Translation;

public const ON_DELETE = 'delete';

Expand Down
4 changes: 2 additions & 2 deletions library/Vspheredb/Web/Form/RestartDaemonForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@

namespace Icinga\Module\Vspheredb\Web\Form;

use gipfl\Translation\TranslationHelper;
use gipfl\Web\Form\Feature\NextConfirmCancel;
use gipfl\Web\InlineForm;
use Icinga\Module\Vspheredb\Daemon\RemoteClient;
use ipl\I18n\Translation;
use React\EventLoop\LoopInterface;

use function React\Async\await;

class RestartDaemonForm extends InlineForm
{
use TranslationHelper;
use Translation;

/** @var RemoteClient */
protected $client;
Expand Down
Loading
Loading