Streamline PHP files

Add strict types and move namespace.
This commit is contained in:
Daniel Siepmann 2022-09-21 13:53:34 +02:00
parent 7f76b5b1b2
commit ead6c4f530
7 changed files with 21 additions and 8 deletions

View file

@ -1,6 +1,6 @@
<?php <?php
namespace DanielSiepmann\DsSite\Backend\PreviewRenderer; declare(strict_types=1);
/* /*
* Copyright (C) 2020 Daniel Siepmann <coding@daniel-siepmann.de> * Copyright (C) 2020 Daniel Siepmann <coding@daniel-siepmann.de>
@ -21,6 +21,8 @@ namespace DanielSiepmann\DsSite\Backend\PreviewRenderer;
* 02110-1301, USA. * 02110-1301, USA.
*/ */
namespace DanielSiepmann\DsSite\Backend\PreviewRenderer;
use TYPO3\CMS\Backend\Preview\StandardContentPreviewRenderer; use TYPO3\CMS\Backend\Preview\StandardContentPreviewRenderer;
use TYPO3\CMS\Backend\View\BackendLayout\Grid\GridColumnItem; use TYPO3\CMS\Backend\View\BackendLayout\Grid\GridColumnItem;
use TYPO3\CMS\Frontend\ContentObject\ContentDataProcessor; use TYPO3\CMS\Frontend\ContentObject\ContentDataProcessor;

View file

@ -1,6 +1,6 @@
<?php <?php
namespace DanielSiepmann\DsSite\EventListener; declare(strict_types=1);
/* /*
* Copyright (C) 2020 Daniel Siepmann <coding@daniel-siepmann.de> * Copyright (C) 2020 Daniel Siepmann <coding@daniel-siepmann.de>
@ -21,6 +21,8 @@ namespace DanielSiepmann\DsSite\EventListener;
* 02110-1301, USA. * 02110-1301, USA.
*/ */
namespace DanielSiepmann\DsSite\EventListener;
use TYPO3\CMS\Core\Resource\Event\EnrichFileMetaDataEvent; use TYPO3\CMS\Core\Resource\Event\EnrichFileMetaDataEvent;
use TYPO3\CMS\Core\Resource\FileReference; use TYPO3\CMS\Core\Resource\FileReference;
use TYPO3\CMS\Frontend\Resource\FileCollector; use TYPO3\CMS\Frontend\Resource\FileCollector;

View file

@ -1,6 +1,6 @@
<?php <?php
namespace DanielSiepmann\DsSite\Frontend\DataProcessing; declare(strict_types=1);
/* /*
* Copyright (C) 2020 Daniel Siepmann <coding@daniel-siepmann.de> * Copyright (C) 2020 Daniel Siepmann <coding@daniel-siepmann.de>
@ -21,6 +21,8 @@ namespace DanielSiepmann\DsSite\Frontend\DataProcessing;
* 02110-1301, USA. * 02110-1301, USA.
*/ */
namespace DanielSiepmann\DsSite\Frontend\DataProcessing;
use TYPO3\CMS\Core\Database\Query\QueryBuilder; use TYPO3\CMS\Core\Database\Query\QueryBuilder;
use TYPO3\CMS\Core\Database\Query\QueryHelper; use TYPO3\CMS\Core\Database\Query\QueryHelper;
use TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer; use TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer;

View file

@ -1,7 +1,6 @@
<?php <?php
namespace DanielSiepmann\DsSite\Frontend\RssFeed; declare(strict_types=1);
/* /*
* Copyright (C) 2021 Daniel Siepmann <coding@daniel-siepmann.de> * Copyright (C) 2021 Daniel Siepmann <coding@daniel-siepmann.de>
@ -22,6 +21,8 @@ namespace DanielSiepmann\DsSite\Frontend\RssFeed;
* 02110-1301, USA. * 02110-1301, USA.
*/ */
namespace DanielSiepmann\DsSite\Frontend\RssFeed;
use Psr\Http\Message\ServerRequestInterface; use Psr\Http\Message\ServerRequestInterface;
use TYPO3\CMS\Core\Database\Connection; use TYPO3\CMS\Core\Database\Connection;
use TYPO3\CMS\Core\Database\ConnectionPool; use TYPO3\CMS\Core\Database\ConnectionPool;

View file

@ -1,6 +1,6 @@
<?php <?php
namespace DanielSiepmann\DsSite\Frontend\RssFeed; declare(strict_types=1);
/* /*
* Copyright (C) 2021 Daniel Siepmann <coding@daniel-siepmann.de> * Copyright (C) 2021 Daniel Siepmann <coding@daniel-siepmann.de>
@ -21,6 +21,8 @@ namespace DanielSiepmann\DsSite\Frontend\RssFeed;
* 02110-1301, USA. * 02110-1301, USA.
*/ */
namespace DanielSiepmann\DsSite\Frontend\RssFeed;
use Psr\Http\Message\ServerRequestInterface; use Psr\Http\Message\ServerRequestInterface;
use TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer; use TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer;
use TYPO3\CMS\Seo\XmlSitemap\XmlSitemapRenderer as Typo3XmlSitemapRenderer; use TYPO3\CMS\Seo\XmlSitemap\XmlSitemapRenderer as Typo3XmlSitemapRenderer;

View file

@ -1,6 +1,6 @@
<?php <?php
namespace DanielSiepmann\DsSite\Hooks\Backend; declare(strict_types=1);
/* /*
* Copyright (C) 2019 Daniel Siepmann <coding@daniel-siepmann.de> * Copyright (C) 2019 Daniel Siepmann <coding@daniel-siepmann.de>
@ -21,6 +21,8 @@ namespace DanielSiepmann\DsSite\Hooks\Backend;
* 02110-1301, USA. * 02110-1301, USA.
*/ */
namespace DanielSiepmann\DsSite\Hooks\Backend;
use TYPO3\CMS\Backend\Controller\PageLayoutController; use TYPO3\CMS\Backend\Controller\PageLayoutController;
use TYPO3\CMS\Core\Utility\GeneralUtility; use TYPO3\CMS\Core\Utility\GeneralUtility;
use TYPO3\CMS\Fluid\View\StandaloneView; use TYPO3\CMS\Fluid\View\StandaloneView;

View file

@ -1,6 +1,6 @@
<?php <?php
namespace DanielSiepmann\DsSite\UserFunction; declare(strict_types=1);
/* /*
* Copyright (C) 2019 Daniel Siepmann <coding@daniel-siepmann.de> * Copyright (C) 2019 Daniel Siepmann <coding@daniel-siepmann.de>
@ -21,6 +21,8 @@ namespace DanielSiepmann\DsSite\UserFunction;
* 02110-1301, USA. * 02110-1301, USA.
*/ */
namespace DanielSiepmann\DsSite\UserFunction;
use Highlight\Highlighter; use Highlight\Highlighter;
use TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer; use TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer;