Skip to content

Commit

Permalink
[TASK] Use strict_mode only in Classes/ and Tests/
Browse files Browse the repository at this point in the history
  • Loading branch information
r3h6 committed Oct 18, 2024
1 parent db125bd commit 79bb69c
Show file tree
Hide file tree
Showing 10 changed files with 4 additions and 21 deletions.
7 changes: 4 additions & 3 deletions .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
<?php

$config = \TYPO3\CodingStandards\CsFixerConfig::create();
$config->addRules([
'declare_strict_types' => true,
]);
$config->getFinder()->in(__DIR__)->exclude([
'.Build',
'config/system',
]);

// $config->addRules([
// 'declare_strict_types' => true,
// ]);

return $config;
2 changes: 0 additions & 2 deletions Configuration/RequestMiddlewares.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php

declare(strict_types=1);

return [
'frontend' => [

Expand Down
2 changes: 0 additions & 2 deletions Configuration/TCA/Overrides/sys_template.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php

declare(strict_types=1);

defined('TYPO3') || die('Access denied.');

\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile('oauth2_server', 'Configuration/TypoScript', 'OAuth2 Server');
2 changes: 0 additions & 2 deletions Configuration/TCA/Overrides/tt_content.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php

declare(strict_types=1);

defined('TYPO3') || die('Access denied.');

(static function () {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php

declare(strict_types=1);

return [
'ctrl' => [
'title' => 'LLL:EXT:oauth2_server/Resources/Private/Language/locallang_db.xlf:tx_oauth2server_domain_model_accesstoken',
Expand Down
2 changes: 0 additions & 2 deletions Configuration/TCA/tx_oauth2server_domain_model_authcode.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php

declare(strict_types=1);

return [
'ctrl' => [
'title' => 'LLL:EXT:oauth2_server/Resources/Private/Language/locallang_db.xlf:tx_oauth2server_domain_model_authcode',
Expand Down
2 changes: 0 additions & 2 deletions Configuration/TCA/tx_oauth2server_domain_model_client.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php

declare(strict_types=1);

use R3H6\Oauth2Server\Domain\Oauth\GrantTypes;

return [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php

declare(strict_types=1);

return [
'ctrl' => [
'title' => 'LLL:EXT:oauth2_server/Resources/Private/Language/locallang_db.xlf:tx_oauth2server_domain_model_refreshtoken',
Expand Down
2 changes: 0 additions & 2 deletions ext_emconf.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php

declare(strict_types=1);

$EM_CONF[$_EXTKEY] = [
'title' => 'OAuth2 Server',
'description' => 'OAuth2 server for TYPO3 based on PHP League\'s OAuth2 Server.',
Expand Down
2 changes: 0 additions & 2 deletions ext_localconf.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php

declare(strict_types=1);

defined('TYPO3') || die('Access denied.');

(static function () {
Expand Down

0 comments on commit 79bb69c

Please sign in to comment.