Skip to content

Commit

Permalink
[TASK] Drop all @noinspection comments
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminkott committed May 10, 2023
1 parent 3c87b53 commit f8737ee
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 19 deletions.
1 change: 0 additions & 1 deletion Classes/Controller/PostController.php
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,6 @@ public function listPostsByCategoryAction(Category $category = null, int $curren
);

if (!empty($categories)) {
/** @noinspection CallableParameterUseCaseInTypeContextInspection */
$category = $categories->getFirst();
}
}
Expand Down
1 change: 0 additions & 1 deletion Classes/Domain/Repository/CommentRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,6 @@ public function fillConstraintsBySettings(QueryInterface $query, array $constrai
? (int)$this->settings['comments']['respectPostLanguageId']
: 0;
if ($respectPostLanguageId) {
/** @noinspection PhpUnhandledExceptionInspection */
$constraints[] = $query->logicalOr([
$query->equals('postLanguageId', GeneralUtility::makeInstance(Context::class)->getAspect('language')->getId()),
$query->equals('postLanguageId', -1),
Expand Down
1 change: 0 additions & 1 deletion Classes/Domain/Repository/TagRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ public function findTopByUsage($limit = 20)
}

// Shuffle tags, ordering is only to get the top used tags
/** @noinspection NonSecureShuffleUsageInspection */
shuffle($rows);
return $rows;
}
Expand Down
1 change: 0 additions & 1 deletion Classes/Service/CommentService.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,6 @@ public function addComment(Post $post, Comment $comment): string
default:
}
$comment->setPid($post->getUid());
/** @noinspection PhpUnhandledExceptionInspection */
$comment->setPostLanguageId(GeneralUtility::makeInstance(Context::class)->getAspect('language')->getId());
$post->addComment($comment);
$this->postRepository->update($post);
Expand Down
2 changes: 0 additions & 2 deletions Classes/Service/SetupService.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ public function createBlogSetup(array $data): bool

$result = false;
if (file_exists($blogSetup)) {
// @noinspection PhpIncludeInspection
$blogSetup = require $blogSetup;
if ($title !== null) {
$blogSetup['pages']['NEW_blogRoot']['title'] = $title;
Expand Down Expand Up @@ -99,7 +98,6 @@ public function createBlogSetup(array $data): bool

$blogSetupRelations = GeneralUtility::getFileAbsFileName('EXT:blog/Configuration/DataHandler/BlogSetupRelations.php');
if (file_exists($blogSetupRelations)) {
// @noinspection PhpIncludeInspection
$blogSetupRelations = require $blogSetupRelations;
$blogSetupRelations = $this->replaceNewUids($blogSetupRelations);
$dataHandler = GeneralUtility::makeInstance(DataHandler::class);
Expand Down
1 change: 0 additions & 1 deletion Configuration/TCA/Overrides/pages.php
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,6 @@
]
);

/** @noinspection UnsupportedStringOffsetOperationsInspection */
$GLOBALS['TCA']['pages']['types'][\T3G\AgencyPack\Blog\Constants::DOKTYPE_BLOG_POST]['columnsOverrides'] = [
'categories' => [
'config' => [
Expand Down
12 changes: 0 additions & 12 deletions ext_localconf.php
Original file line number Diff line number Diff line change
Expand Up @@ -217,45 +217,33 @@ function () {
]
);

/** @noinspection UnsupportedStringOffsetOperationsInspection */
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass']['Blog'] =
\T3G\AgencyPack\Blog\Hooks\DataHandlerHook::class;

/** @noinspection UnsupportedStringOffsetOperationsInspection */
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/install']['update']['T3G\AgencyPack\Blog\Install\Updates\DatabaseMonthYearUpdate']
= \T3G\AgencyPack\Blog\Updates\DatabaseMonthYearUpdate::class;
/** @noinspection UnsupportedStringOffsetOperationsInspection */
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/install']['update']['T3G\AgencyPack\Blog\Install\Updates\DatabasePublishDateUpdate']
= \T3G\AgencyPack\Blog\Updates\DatabasePublishDateUpdate::class;
/** @noinspection UnsupportedStringOffsetOperationsInspection */
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/install']['update']['T3G\AgencyPack\Blog\Install\Updates\AvatarProviderUpdate']
= \T3G\AgencyPack\Blog\Updates\AvatarProviderUpdate::class;
/** @noinspection UnsupportedStringOffsetOperationsInspection */
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/install']['update'][\T3G\AgencyPack\Blog\Updates\CategorySlugUpdate::class]
= \T3G\AgencyPack\Blog\Updates\CategorySlugUpdate::class;
/** @noinspection UnsupportedStringOffsetOperationsInspection */
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/install']['update'][\T3G\AgencyPack\Blog\Updates\CategoryTypeUpdate::class]
= \T3G\AgencyPack\Blog\Updates\CategoryTypeUpdate::class;
/** @noinspection UnsupportedStringOffsetOperationsInspection */
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/install']['update'][\T3G\AgencyPack\Blog\Updates\AuthorSlugUpdate::class]
= \T3G\AgencyPack\Blog\Updates\AuthorSlugUpdate::class;
/** @noinspection UnsupportedStringOffsetOperationsInspection */
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/install']['update'][\T3G\AgencyPack\Blog\Updates\TagSlugUpdate::class]
= \T3G\AgencyPack\Blog\Updates\TagSlugUpdate::class;
/** @noinspection UnsupportedStringOffsetOperationsInspection */
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/install']['update'][\T3G\AgencyPack\Blog\Updates\FeaturedImageUpdate::class]
= \T3G\AgencyPack\Blog\Updates\FeaturedImageUpdate::class;

// Register Static Database Mapper
/** @noinspection UnsupportedStringOffsetOperationsInspection */
$GLOBALS['TYPO3_CONF_VARS']['SYS']['routing']['aspects']['BlogStaticDatabaseMapper'] =
\T3G\AgencyPack\Blog\Routing\Aspect\StaticDatabaseMapper::class;

// Register Notification visitors
/** @noinspection UnsupportedStringOffsetOperationsInspection */
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['Blog']['notificationRegistry'][\T3G\AgencyPack\Blog\Notification\CommentAddedNotification::class][]
= \T3G\AgencyPack\Blog\Notification\Processor\AdminNotificationProcessor::class;
/** @noinspection UnsupportedStringOffsetOperationsInspection */
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['Blog']['notificationRegistry'][\T3G\AgencyPack\Blog\Notification\CommentAddedNotification::class][]
= \T3G\AgencyPack\Blog\Notification\Processor\AuthorNotificationProcessor::class;
}
Expand Down

0 comments on commit f8737ee

Please sign in to comment.