Skip to content

Commit

Permalink
Add declare(strict_types = 1)
Browse files Browse the repository at this point in the history
  • Loading branch information
webeweb committed Mar 27, 2024
1 parent 69cf710 commit 23cca37
Show file tree
Hide file tree
Showing 85 changed files with 171 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Api/DataTablesColumnInterface.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types = 1);

/*
* This file is part of the jquery-datatables-bundle package.
*
Expand Down
2 changes: 2 additions & 0 deletions Api/DataTablesLoopInterface.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types = 1);

/*
* This file is part of the jquery-datatables-bundle package.
*
Expand Down
2 changes: 2 additions & 0 deletions Api/DataTablesMappingInterface.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types = 1);

/*
* This file is part of the jquery-datatables-bundle package.
*
Expand Down
2 changes: 2 additions & 0 deletions Api/DataTablesOptionsInterface.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types = 1);

/*
* This file is part of the jquery-datatables-bundle package.
*
Expand Down
2 changes: 2 additions & 0 deletions Api/DataTablesOrderInterface.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types = 1);

/*
* This file is part of the jquery-datatables-bundle package.
*
Expand Down
2 changes: 2 additions & 0 deletions Api/DataTablesRequestInterface.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types = 1);

/*
* This file is part of the jquery-datatables-bundle package.
*
Expand Down
2 changes: 2 additions & 0 deletions Api/DataTablesResponseInterface.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types = 1);

/*
* This file is part of the jquery-datatables-bundle package.
*
Expand Down
2 changes: 2 additions & 0 deletions Api/DataTablesSearchInterface.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types = 1);

/*
* This file is part of the jquery-datatables-bundle package.
*
Expand Down
2 changes: 2 additions & 0 deletions Api/DataTablesWrapperInterface.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types = 1);

/*
* This file is part of the jquery-datatables-bundle package.
*
Expand Down
2 changes: 2 additions & 0 deletions Command/AbstractCommand.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types = 1);

/*
* This file is part of the jquery-datatables-bundle package.
*
Expand Down
2 changes: 2 additions & 0 deletions Command/ListDataTablesProviderCommand.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types = 1);

/*
* This file is part of the jquery-datatables-bundle package.
*
Expand Down
2 changes: 2 additions & 0 deletions Controller/AbstractController.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types = 1);

/*
* This file is part of the jquery-datatables-bundle package.
*
Expand Down
2 changes: 2 additions & 0 deletions Controller/DataTablesController.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types = 1);

/*
* This file is part of the jquery-datatables-bundle package.
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types = 1);

/*
* This file is part of the jquery-datatables-bundle package.
*
Expand Down
2 changes: 2 additions & 0 deletions DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types = 1);

/*
* This file is part of the jquery-datatables-bundle package.
*
Expand Down
2 changes: 2 additions & 0 deletions DependencyInjection/WBWJQueryDataTablesExtension.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types = 1);

/*
* This file is part of the jquery-datatables-bundle package.
*
Expand Down
2 changes: 2 additions & 0 deletions Entity/DataTablesEntityInterface.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types = 1);

/*
* This file is part of the jquery-datatables-bundle package.
*
Expand Down
2 changes: 2 additions & 0 deletions Event/DataTablesEvent.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types = 1);

/*
* This file is part of the jquery-datatables-bundle package.
*
Expand Down
2 changes: 2 additions & 0 deletions Exception/AbstractDataTablesException.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types = 1);

/*
* This file is part of the jquery-datatables-bundle package.
*
Expand Down
2 changes: 2 additions & 0 deletions Exception/AlreadyRegisteredDataTablesProviderException.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types = 1);

/*
* This file is part of the jquery-datatables-bundle package.
*
Expand Down
2 changes: 2 additions & 0 deletions Exception/BadDataTablesCSVExporterException.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types = 1);

/*
* This file is part of the jquery-datatables-bundle package.
*
Expand Down
2 changes: 2 additions & 0 deletions Exception/BadDataTablesColumnException.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types = 1);

/*
* This file is part of the jquery-datatables-bundle package.
*
Expand Down
2 changes: 2 additions & 0 deletions Exception/BadDataTablesEditorException.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types = 1);

/*
* This file is part of the jquery-datatables-bundle package.
*
Expand Down
2 changes: 2 additions & 0 deletions Exception/BadDataTablesRepositoryException.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types = 1);

/*
* This file is part of the jquery-datatables-bundle package.
*
Expand Down
2 changes: 2 additions & 0 deletions Exception/UnregisteredDataTablesProviderException.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types = 1);

/*
* This file is part of the jquery-datatables-bundle package.
*
Expand Down
2 changes: 2 additions & 0 deletions Factory/DataTablesFactory.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types = 1);

/*
* This file is part of the jquery-datatables-bundle package.
*
Expand Down
2 changes: 2 additions & 0 deletions Helper/DataTablesEntityHelper.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types = 1);

/*
* This file is part of the jquery-datatables-bundle package.
*
Expand Down
2 changes: 2 additions & 0 deletions Helper/DataTablesExportHelper.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types = 1);

/*
* This file is part of the jquery-datatables-bundle package.
*
Expand Down
2 changes: 2 additions & 0 deletions Helper/DataTablesMappingHelper.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types = 1);

/*
* This file is part of the jquery-datatables-bundle package.
*
Expand Down
2 changes: 2 additions & 0 deletions Helper/DataTablesRepositoryHelper.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types = 1);

/*
* This file is part of the jquery-datatables-bundle package.
*
Expand Down
2 changes: 2 additions & 0 deletions Helper/DataTablesWrapperHelper.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types = 1);

/*
* This file is part of the jquery-datatables-bundle package.
*
Expand Down
2 changes: 2 additions & 0 deletions Manager/DataTablesManager.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types = 1);

/*
* This file is part of the jquery-datatables-bundle package.
*
Expand Down
2 changes: 2 additions & 0 deletions Manager/DataTablesManagerTrait.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types = 1);

/*
* This file is part of the jquery-datatables-bundle package.
*
Expand Down
2 changes: 2 additions & 0 deletions Model/DataTablesColumn.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types = 1);

/*
* This file is part of the jquery-datatables-bundle package.
*
Expand Down
2 changes: 2 additions & 0 deletions Model/DataTablesEnumerator.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types = 1);

/*
* This file is part of the jquery-datatables-bundle package.
*
Expand Down
2 changes: 2 additions & 0 deletions Model/DataTablesLoop.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types = 1);

/*
* This file is part of the jquery-datatables-bundle package.
*
Expand Down
2 changes: 2 additions & 0 deletions Model/DataTablesMapping.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types = 1);

/*
* This file is part of the jquery-datatables-bundle package.
*
Expand Down
2 changes: 2 additions & 0 deletions Model/DataTablesOptions.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types = 1);

/*
* This file is part of the jquery-datatables-bundle package.
*
Expand Down
2 changes: 2 additions & 0 deletions Model/DataTablesOrder.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types = 1);

/*
* This file is part of the jquery-datatables-bundle package.
*
Expand Down
2 changes: 2 additions & 0 deletions Model/DataTablesRequest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types = 1);

/*
* This file is part of the jquery-datatables-bundle package.
*
Expand Down
2 changes: 2 additions & 0 deletions Model/DataTablesResponse.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types = 1);

/*
* This file is part of the jquery-datatables-bundle package.
*
Expand Down
2 changes: 2 additions & 0 deletions Model/DataTablesSearch.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types = 1);

/*
* This file is part of the jquery-datatables-bundle package.
*
Expand Down
2 changes: 2 additions & 0 deletions Model/DataTablesWrapper.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types = 1);

/*
* This file is part of the jquery-datatables-bundle package.
*
Expand Down
2 changes: 2 additions & 0 deletions Model/DataTablesWrapperTrait.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types = 1);

/*
* This file is part of the jquery-datatables-bundle package.
*
Expand Down
2 changes: 2 additions & 0 deletions Normalizer/DataTablesNormalizer.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types = 1);

/*
* This file is part of the jquery-datatables-bundle package.
*
Expand Down
2 changes: 2 additions & 0 deletions Provider/AbstractDataTablesProvider.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types = 1);

/*
* This file is part of the jquery-datatables-bundle package.
*
Expand Down
4 changes: 3 additions & 1 deletion Provider/DataTablesButtonsRendererTrait.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types = 1);

/*
* This file is part of the jquery-datatables-bundle package.
*
Expand Down Expand Up @@ -99,7 +101,7 @@ protected function renderActionButtonComment($entity, string $route, ?string $co

return $this->renderActionButton($entity, $route, [
"type" => "Default",
"icon" => 0 < mb_strlen($comment) ? "fa:comment" : "fa:comment-slash",
"icon" => null === $comment || 0 === mb_strlen($comment) ? "fa:comment-slash" : "fa:comment",
"label" => "label.comment",
"translation_domain" => WBWJQueryDataTablesBundle::getTranslationDomain(),
]);
Expand Down
2 changes: 2 additions & 0 deletions Provider/DataTablesCSVExporterInterface.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types = 1);

/*
* This file is part of the jquery-datatables-bundle package.
*
Expand Down
Loading

0 comments on commit 23cca37

Please sign in to comment.