Skip to content

Commit

Permalink
[TASK] Fix PHP-CS for single_line_empty_body rule
Browse files Browse the repository at this point in the history
  • Loading branch information
dkd-kaehm committed Sep 19, 2023
1 parent 1ed1c4a commit 22f79b1
Show file tree
Hide file tree
Showing 70 changed files with 70 additions and 188 deletions.
4 changes: 1 addition & 3 deletions Classes/Access/RootlineElementFormatException.php
Expand Up @@ -22,6 +22,4 @@
*
* @author Ingo Renner <ingo@typo3.org>
*/
class RootlineElementFormatException extends InvalidArgumentException
{
}
class RootlineElementFormatException extends InvalidArgumentException {}
3 changes: 1 addition & 2 deletions Classes/Backend/SettingsPreviewOnPlugins.php
Expand Up @@ -38,8 +38,7 @@ class SettingsPreviewOnPlugins

public function __construct(
protected FlexFormService $flexFormService
) {
}
) {}

public function __invoke(PageContentPreviewRenderingEvent $event): void
{
Expand Down
Expand Up @@ -20,6 +20,4 @@
/**
* Exception that is thrown if the record of the root page couldn't be found
*/
class RootPageRecordNotFoundException extends Exception
{
}
class RootPageRecordNotFoundException extends Exception {}
Expand Up @@ -20,6 +20,4 @@
/**
* Delayed processing finished event
*/
class DelayedProcessingFinishedEvent extends AbstractProcessingFinishedEvent
{
}
class DelayedProcessingFinishedEvent extends AbstractProcessingFinishedEvent {}
Expand Up @@ -20,6 +20,4 @@
/**
* Delayed processing queuing finished event
*/
class DelayedProcessingQueuingFinishedEvent extends AbstractProcessingFinishedEvent
{
}
class DelayedProcessingQueuingFinishedEvent extends AbstractProcessingFinishedEvent {}
Expand Up @@ -20,6 +20,4 @@
/**
* Processing finished event
*/
class ProcessingFinishedEvent extends AbstractProcessingFinishedEvent
{
}
class ProcessingFinishedEvent extends AbstractProcessingFinishedEvent {}
Expand Up @@ -20,6 +20,4 @@
/**
* Event fired if a record is deleted
*/
class RecordDeletedEvent extends AbstractDataUpdateEvent
{
}
class RecordDeletedEvent extends AbstractDataUpdateEvent {}
Expand Up @@ -20,6 +20,4 @@
/**
* Event fired if a record garbage check is triggered
*/
class RecordGarbageCheckEvent extends AbstractDataUpdateEvent
{
}
class RecordGarbageCheckEvent extends AbstractDataUpdateEvent {}
Expand Up @@ -20,6 +20,4 @@
/**
* Event fired if a record is moved
*/
class RecordMovedEvent extends AbstractDataUpdateEvent
{
}
class RecordMovedEvent extends AbstractDataUpdateEvent {}
Expand Up @@ -20,6 +20,4 @@
/**
* Event fired if a record is created or updated
*/
class RecordUpdatedEvent extends AbstractDataUpdateEvent
{
}
class RecordUpdatedEvent extends AbstractDataUpdateEvent {}
Expand Up @@ -20,6 +20,4 @@
/**
* Event fired if a version is swapped
*/
class VersionSwappedEvent extends AbstractDataUpdateEvent
{
}
class VersionSwappedEvent extends AbstractDataUpdateEvent {}
3 changes: 1 addition & 2 deletions Classes/Domain/Search/ApacheSolrDocument/Builder.php
Expand Up @@ -39,8 +39,7 @@ class Builder
{
public function __construct(
protected readonly IdBuilder $variantIdBuilder
) {
}
) {}

/**
* This method can be used to build a Document from a TYPO3 page.
Expand Down
4 changes: 1 addition & 3 deletions Classes/Domain/Search/Query/SearchQuery.php
Expand Up @@ -17,6 +17,4 @@

namespace ApacheSolrForTypo3\Solr\Domain\Search\Query;

class SearchQuery extends Query
{
}
class SearchQuery extends Query {}
3 changes: 1 addition & 2 deletions Classes/Domain/Search/ResultSet/Facets/AbstractFacet.php
Expand Up @@ -41,8 +41,7 @@ public function __construct(
protected string $field,
protected string $label = '',
protected array $facetConfiguration = []
) {
}
) {}

/**
* Returns facet name
Expand Down
3 changes: 1 addition & 2 deletions Classes/Domain/Search/ResultSet/Facets/AbstractFacetItem.php
Expand Up @@ -31,8 +31,7 @@ public function __construct(
protected int $documentCount = 0,
protected bool $selected = false,
protected array $metrics = []
) {
}
) {}

public function getDocumentCount(): int
{
Expand Down
Expand Up @@ -17,6 +17,4 @@

use ApacheSolrForTypo3\Solr\Exception;

class InvalidFacetPackageException extends Exception
{
}
class InvalidFacetPackageException extends Exception {}
Expand Up @@ -17,6 +17,4 @@

use ApacheSolrForTypo3\Solr\Exception;

class InvalidFacetParserException extends Exception
{
}
class InvalidFacetParserException extends Exception {}
Expand Up @@ -17,6 +17,4 @@

use ApacheSolrForTypo3\Solr\Exception;

class InvalidQueryBuilderException extends Exception
{
}
class InvalidQueryBuilderException extends Exception {}
Expand Up @@ -19,6 +19,4 @@

use ApacheSolrForTypo3\Solr\Exception;

class InvalidUrlDecoderException extends Exception
{
}
class InvalidUrlDecoderException extends Exception {}
Expand Up @@ -25,6 +25,4 @@
* @author Frans Saris <frans@beech.it>
* @author Timo Hund <timo.hund@dkd.de>
*/
class NodeCollection extends AbstractFacetItemCollection
{
}
class NodeCollection extends AbstractFacetItemCollection {}
Expand Up @@ -25,6 +25,4 @@
* @author Frans Saris <frans@beech.it>
* @author Timo Hund <timo.hund@dkd.de>
*/
class NumericRangeCollection extends AbstractFacetItemCollection
{
}
class NumericRangeCollection extends AbstractFacetItemCollection {}
Expand Up @@ -22,6 +22,4 @@
/**
* The GroupItemCollection contains the GroupItem objects.
*/
class GroupItemCollection extends AbstractCollection
{
}
class GroupItemCollection extends AbstractCollection {}
3 changes: 1 addition & 2 deletions Classes/Domain/Search/Score/Score.php
Expand Up @@ -27,8 +27,7 @@ public function __construct(
protected string $fieldName = '',
protected float $score = 0.0,
protected string $searchTerm = '',
) {
}
) {}

public function getBoost(): float
{
Expand Down
Expand Up @@ -19,6 +19,4 @@

use ApacheSolrForTypo3\Solr\Exception;

class InvalidSiteConfigurationCombinationException extends Exception
{
}
class InvalidSiteConfigurationCombinationException extends Exception {}
Expand Up @@ -19,6 +19,4 @@

use ApacheSolrForTypo3\Solr\Exception;

class InvalidSiteRootPageException extends Exception
{
}
class InvalidSiteRootPageException extends Exception {}
Expand Up @@ -19,6 +19,4 @@

use ApacheSolrForTypo3\Solr\Exception;

class UnexpectedTYPO3SiteInitializationException extends Exception
{
}
class UnexpectedTYPO3SiteInitializationException extends Exception {}
3 changes: 1 addition & 2 deletions Classes/Domain/Variants/IdBuilder.php
Expand Up @@ -37,8 +37,7 @@ class IdBuilder
{
public function __construct(
protected readonly EventDispatcherInterface $eventDispatcher
) {
}
) {}

/**
* This method is used to build a variantId.
Expand Down
Expand Up @@ -35,8 +35,7 @@ public function __construct(
private readonly string $type,
private readonly array $indexingConfiguration,
private bool $isInitialized
) {
}
) {}

public function getInitializer(): AbstractInitializer
{
Expand Down
Expand Up @@ -31,8 +31,7 @@ public function __construct(
private readonly int $forcedChangeTime,
private int $updateCount,
private ?array $validLanguageUids
) {
}
) {}

public function getItemType(): string
{
Expand Down
Expand Up @@ -28,8 +28,7 @@ public function __construct(
private readonly string $table,
private readonly array $uids,
private array $records
) {
}
) {}

public function getTable(): string
{
Expand Down
Expand Up @@ -34,8 +34,7 @@ public function __construct(
protected readonly int $languageId,
protected readonly string $mountPointParameter,
protected readonly array $options
) {
}
) {}

public function getItem(): Item
{
Expand Down
Expand Up @@ -40,8 +40,7 @@ public function __construct(
private readonly SiteLanguage $siteLanguage,
private readonly array $record,
private readonly TypoScriptConfiguration $configuration
) {
}
) {}

public function getDocument(): Document
{
Expand Down
3 changes: 1 addition & 2 deletions Classes/Event/Indexing/BeforeDocumentsAreIndexedEvent.php
Expand Up @@ -37,8 +37,7 @@ public function __construct(
private readonly Item $indexQueueItem,
/** @var Document[] */
private array $documents,
) {
}
) {}

public function getSite(): Site
{
Expand Down
Expand Up @@ -35,8 +35,7 @@ public function __construct(
private readonly SearchRequest $searchRequest,
private readonly Search $search,
private readonly TypoScriptConfiguration $typoScriptConfiguration
) {
}
) {}

public function getSearchResultSet(): SearchResultSet
{
Expand Down
3 changes: 1 addition & 2 deletions Classes/Event/Search/AfterSearchHasBeenExecutedEvent.php
Expand Up @@ -39,8 +39,7 @@ public function __construct(
private readonly SearchRequest $searchRequest,
private readonly Search $search,
private readonly TypoScriptConfiguration $typoScriptConfiguration
) {
}
) {}

public function getSearchResultSet(): SearchResultSet
{
Expand Down
Expand Up @@ -37,8 +37,7 @@ public function __construct(
private readonly SearchRequest $searchRequest,
private readonly Search $search,
private readonly TypoScriptConfiguration $typoScriptConfiguration
) {
}
) {}

public function getQuery(): Query
{
Expand Down
3 changes: 1 addition & 2 deletions Classes/Event/Variants/AfterVariantIdWasBuiltEvent.php
Expand Up @@ -36,8 +36,7 @@ public function __construct(
private readonly array $itemRecord,
private readonly Site $site,
private readonly Document $document
) {
}
) {}

public function getVariantId(): string
{
Expand Down
4 changes: 1 addition & 3 deletions Classes/Exception.php
Expand Up @@ -20,6 +20,4 @@
/**
* Generic Apache Solr for TYPO3 exception
*/
class Exception extends \Exception
{
}
class Exception extends \Exception {}
4 changes: 1 addition & 3 deletions Classes/Exception/InvalidArgumentException.php
Expand Up @@ -22,6 +22,4 @@
/**
* Exception that is thrown if a given argument is invalid.
*/
class InvalidArgumentException extends Exception
{
}
class InvalidArgumentException extends Exception {}
4 changes: 1 addition & 3 deletions Classes/FrontendEnvironment/Exception/Exception.php
Expand Up @@ -21,6 +21,4 @@
* Exception that is thrown on initialization of EXT:solr FrontendEnvironment.
* This exception should be used for any errors on indexing .
*/
class Exception extends ExtSolrException
{
}
class Exception extends ExtSolrException {}
Expand Up @@ -18,6 +18,4 @@
/**
* Exception that is thrown on TYPO3 side in indexing process.
*/
class DocumentPreparationException extends IndexingException
{
}
class DocumentPreparationException extends IndexingException {}
4 changes: 1 addition & 3 deletions Classes/IndexQueue/Exception/IllegalStateException.php
Expand Up @@ -20,6 +20,4 @@
/**
* Exception that is thrown on indexing process and any potentially unusual state.
*/
class IllegalStateException extends Exception
{
}
class IllegalStateException extends Exception {}
4 changes: 1 addition & 3 deletions Classes/IndexQueue/Exception/IndexingException.php
Expand Up @@ -21,6 +21,4 @@
* Exception that is thrown on indexing process. Does not matter on which side, TYPO3 or Apache.
* This exception should be used for any errors on indexing process.
*/
class IndexingException extends Exception
{
}
class IndexingException extends Exception {}
4 changes: 1 addition & 3 deletions Classes/IndexQueue/Initializer/Page.php
Expand Up @@ -47,9 +47,7 @@ class Page extends AbstractInitializer
*
* @param string $type Type to initialize (ignored).
*/
public function setType(string $type): void
{
}
public function setType(string $type): void {}

/**
* Initializes Index Queue page items for a site. Includes regular pages
Expand Down
4 changes: 1 addition & 3 deletions Classes/IndexQueue/InvalidFieldNameException.php
Expand Up @@ -23,6 +23,4 @@
*
* @author Ingo Renner <ingo@typo3.org>
*/
class InvalidFieldNameException extends RuntimeException
{
}
class InvalidFieldNameException extends RuntimeException {}

0 comments on commit 22f79b1

Please sign in to comment.