Skip to content

Commit

Permalink
Phpstan: Cleanup baseline and remove superfluous type hints
Browse files Browse the repository at this point in the history
  • Loading branch information
sukhwinder33445 committed May 8, 2024
1 parent a574428 commit b04f85d
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 98 deletions.
2 changes: 0 additions & 2 deletions library/Reporting/Web/Forms/ReportForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
use Icinga\Authentication\Auth;
use Icinga\Module\Reporting\Database;
use Icinga\Module\Reporting\ProvidedReports;
use ipl\Html\Contract\FormSubmitElement;
use ipl\Html\Form;
use ipl\Html\HtmlDocument;
use ipl\Validator\CallbackValidator;
Expand Down Expand Up @@ -167,7 +166,6 @@ protected function assemble()
]);

if ($this->id !== null) {
/** @var FormSubmitElement $removeButton */
$removeButton = $this->createElement('submit', 'remove', [
'label' => $this->translate('Remove Report'),
'class' => 'btn-remove',
Expand Down
2 changes: 0 additions & 2 deletions library/Reporting/Web/Forms/ScheduleForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
use Icinga\Module\Reporting\ProvidedActions;
use Icinga\Module\Reporting\Report;
use Icinga\Util\Json;
use ipl\Html\Contract\FormSubmitElement;
use ipl\Html\Form;
use ipl\Html\HtmlDocument;
use ipl\Html\HtmlElement;
Expand Down Expand Up @@ -130,7 +129,6 @@ protected function assemble()
$wrapper = $this->getElement('submit')->getWrapper();
$wrapper->prepend($sendButton);

/** @var FormSubmitElement $removeButton */
$removeButton = $this->createElement('submit', 'remove', [
'label' => $this->translate('Remove Schedule'),
'class' => 'btn-remove',
Expand Down
2 changes: 0 additions & 2 deletions library/Reporting/Web/Forms/TemplateForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
use Icinga\Authentication\Auth;
use Icinga\Module\Reporting\Database;
use Icinga\Util\Json;
use ipl\Html\Contract\FormSubmitElement;
use ipl\Html\Html;
use ipl\Html\HtmlDocument;
use ipl\Web\Compat\CompatForm;
Expand Down Expand Up @@ -139,7 +138,6 @@ protected function assemble()
]);

if ($this->template !== null) {
/** @var FormSubmitElement $removeButton */
$removeButton = $this->createElement('submit', 'remove', [
'label' => $this->translate('Remove Template'),
'class' => 'btn-remove',
Expand Down
2 changes: 0 additions & 2 deletions library/Reporting/Web/Forms/TimeframeForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
use DateTime;
use Exception;
use Icinga\Module\Reporting\Database;
use ipl\Html\Contract\FormSubmitElement;
use ipl\Html\FormElement\LocalDateTimeElement;
use ipl\Html\HtmlDocument;
use ipl\Validator\CallbackValidator;
Expand Down Expand Up @@ -166,7 +165,6 @@ protected function assemble()
]);

if ($this->id !== null) {
/** @var FormSubmitElement $removeButton */
$removeButton = $this->createElement('submit', 'remove', [
'label' => $this->translate('Remove Time Frame'),
'class' => 'btn-remove',
Expand Down
90 changes: 0 additions & 90 deletions phpstan-baseline.neon
Original file line number Diff line number Diff line change
Expand Up @@ -70,51 +70,6 @@ parameters:
count: 1
path: application/clicommands/ScheduleCommand.php

-
message: "#^Method Icinga\\\\Module\\\\Reporting\\\\Controllers\\\\ConfigController\\:\\:backendAction\\(\\) has no return type specified\\.$#"
count: 1
path: application/controllers/ConfigController.php

-
message: "#^Method Icinga\\\\Module\\\\Reporting\\\\Controllers\\\\ConfigController\\:\\:mailAction\\(\\) has no return type specified\\.$#"
count: 1
path: application/controllers/ConfigController.php

-
message: "#^Method Icinga\\\\Module\\\\Reporting\\\\Controllers\\\\ReportController\\:\\:assembleActions\\(\\) has no return type specified\\.$#"
count: 1
path: application/controllers/ReportController.php

-
message: "#^Method Icinga\\\\Module\\\\Reporting\\\\Controllers\\\\ReportController\\:\\:cloneAction\\(\\) has no return type specified\\.$#"
count: 1
path: application/controllers/ReportController.php

-
message: "#^Method Icinga\\\\Module\\\\Reporting\\\\Controllers\\\\ReportController\\:\\:downloadAction\\(\\) has no return type specified\\.$#"
count: 1
path: application/controllers/ReportController.php

-
message: "#^Method Icinga\\\\Module\\\\Reporting\\\\Controllers\\\\ReportController\\:\\:editAction\\(\\) has no return type specified\\.$#"
count: 1
path: application/controllers/ReportController.php

-
message: "#^Method Icinga\\\\Module\\\\Reporting\\\\Controllers\\\\ReportController\\:\\:indexAction\\(\\) has no return type specified\\.$#"
count: 1
path: application/controllers/ReportController.php

-
message: "#^Method Icinga\\\\Module\\\\Reporting\\\\Controllers\\\\ReportController\\:\\:scheduleAction\\(\\) has no return type specified\\.$#"
count: 1
path: application/controllers/ReportController.php

-
message: "#^Method Icinga\\\\Module\\\\Reporting\\\\Controllers\\\\ReportController\\:\\:sendAction\\(\\) has no return type specified\\.$#"
count: 1
path: application/controllers/ReportController.php

-
message: "#^Parameter \\#2 \\$value of static method ipl\\\\Stdlib\\\\Filter\\:\\:equal\\(\\) expects array\\|bool\\|float\\|int\\|string, mixed given\\.$#"
count: 1
Expand All @@ -125,26 +80,6 @@ parameters:
count: 1
path: application/controllers/ReportsController.php

-
message: "#^Method Icinga\\\\Module\\\\Reporting\\\\Controllers\\\\ReportsController\\:\\:indexAction\\(\\) has no return type specified\\.$#"
count: 1
path: application/controllers/ReportsController.php

-
message: "#^Method Icinga\\\\Module\\\\Reporting\\\\Controllers\\\\ReportsController\\:\\:newAction\\(\\) has no return type specified\\.$#"
count: 1
path: application/controllers/ReportsController.php

-
message: "#^Method Icinga\\\\Module\\\\Reporting\\\\Controllers\\\\TemplateController\\:\\:editAction\\(\\) has no return type specified\\.$#"
count: 1
path: application/controllers/TemplateController.php

-
message: "#^Method Icinga\\\\Module\\\\Reporting\\\\Controllers\\\\TemplateController\\:\\:indexAction\\(\\) has no return type specified\\.$#"
count: 1
path: application/controllers/TemplateController.php

-
message: "#^Parameter \\#2 \\$value of static method ipl\\\\Stdlib\\\\Filter\\:\\:equal\\(\\) expects array\\|bool\\|float\\|int\\|string, mixed given\\.$#"
count: 1
Expand All @@ -155,21 +90,6 @@ parameters:
count: 2
path: application/controllers/TemplatesController.php

-
message: "#^Method Icinga\\\\Module\\\\Reporting\\\\Controllers\\\\TemplatesController\\:\\:indexAction\\(\\) has no return type specified\\.$#"
count: 1
path: application/controllers/TemplatesController.php

-
message: "#^Method Icinga\\\\Module\\\\Reporting\\\\Controllers\\\\TemplatesController\\:\\:newAction\\(\\) has no return type specified\\.$#"
count: 1
path: application/controllers/TemplatesController.php

-
message: "#^Method Icinga\\\\Module\\\\Reporting\\\\Controllers\\\\TimeframeController\\:\\:editAction\\(\\) has no return type specified\\.$#"
count: 1
path: application/controllers/TimeframeController.php

-
message: "#^Parameter \\#2 \\$value of static method ipl\\\\Stdlib\\\\Filter\\:\\:equal\\(\\) expects array\\|bool\\|float\\|int\\|string, mixed given\\.$#"
count: 1
Expand Down Expand Up @@ -205,16 +125,6 @@ parameters:
count: 1
path: application/controllers/TimeframesController.php

-
message: "#^Method Icinga\\\\Module\\\\Reporting\\\\Controllers\\\\TimeframesController\\:\\:indexAction\\(\\) has no return type specified\\.$#"
count: 1
path: application/controllers/TimeframesController.php

-
message: "#^Method Icinga\\\\Module\\\\Reporting\\\\Controllers\\\\TimeframesController\\:\\:newAction\\(\\) has no return type specified\\.$#"
count: 1
path: application/controllers/TimeframesController.php

-
message: "#^Method Icinga\\\\Module\\\\Reporting\\\\Forms\\\\ConfigureMailForm\\:\\:createElements\\(\\) has no return type specified\\.$#"
count: 1
Expand Down

0 comments on commit b04f85d

Please sign in to comment.