Skip to content

Commit

Permalink
[TASK] Fix PHP-MD issues
Browse files Browse the repository at this point in the history
  • Loading branch information
fnagel committed Nov 18, 2023
1 parent 6adfb1e commit 8e2a5ce
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
3 changes: 3 additions & 0 deletions Classes/Controller/AbstractSubscriberController.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@

/**
* AbstractSubscriberController.
*
* @SuppressWarnings("PHPMD.CyclomaticComplexity")
* @SuppressWarnings("PHPMD.NPathComplexity")
*/
abstract class AbstractSubscriberController extends AbstractController
{
Expand Down
9 changes: 3 additions & 6 deletions Classes/Controller/PostController.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,21 +29,18 @@
*
* @SuppressWarnings("PHPMD.ExcessivePublicCount")
* @SuppressWarnings("PHPMD.TooManyPublicMethods")
* @SuppressWarnings("PHPMD.CouplingBetweenObjects")
*/
class PostController extends AbstractCommentController
{
/**
* PostController constructor.
*
*/
public function __construct(protected PostRepository $postRepository)
{
}

protected function handleKnownExceptionsElseThrowAgain(\Throwable $exception)
{
if ($exception instanceof TargetNotFoundException) {
$this->pageNotFoundAndExit('Entity not found.');
if ($exception instanceof TargetNotFoundException) {
$this->pageNotFoundAndExit();
}

parent::handleKnownExceptionsElseThrowAgain($exception);
Expand Down

0 comments on commit 8e2a5ce

Please sign in to comment.