Skip to content

Commit

Permalink
[TASK] Move namespace declaration
Browse files Browse the repository at this point in the history
According to the TYPO3 coding guidelines the copyright notice
should be placed before the namespace declaration. This commit adapts
all declarations to ensure the right order.

Resolves: TYPO3-Solr#3198
  • Loading branch information
dkd-friedrich committed Feb 14, 2022
1 parent ac8b93e commit e75ef70
Show file tree
Hide file tree
Showing 588 changed files with 1,230 additions and 1,221 deletions.
4 changes: 2 additions & 2 deletions Classes/Access/Rootline.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
<?php
namespace ApacheSolrForTypo3\Solr\Access;

/**
* This file is part of the TYPO3 CMS project.
*
Expand All @@ -14,6 +12,8 @@
* The TYPO3 project - inspiring people to share!
*/

namespace ApacheSolrForTypo3\Solr\Access;

use TYPO3\CMS\Core\Domain\Repository\PageRepository;
use TYPO3\CMS\Core\Utility\GeneralUtility;
use TYPO3\CMS\Core\Utility\RootlineUtility;
Expand Down
4 changes: 2 additions & 2 deletions Classes/Access/RootlineElement.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
<?php
namespace ApacheSolrForTypo3\Solr\Access;

/**
* This file is part of the TYPO3 CMS project.
*
Expand All @@ -14,6 +12,8 @@
* The TYPO3 project - inspiring people to share!
*/

namespace ApacheSolrForTypo3\Solr\Access;

use TYPO3\CMS\Core\Utility\GeneralUtility;

/**
Expand Down
4 changes: 2 additions & 2 deletions Classes/Access/RootlineElementFormatException.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
<?php
namespace ApacheSolrForTypo3\Solr\Access;

/**
* This file is part of the TYPO3 CMS project.
*
Expand All @@ -14,6 +12,8 @@
* The TYPO3 project - inspiring people to share!
*/

namespace ApacheSolrForTypo3\Solr\Access;

/**
* Signals a wrong format for the access definition of a page or the content.
*
Expand Down
5 changes: 3 additions & 2 deletions Classes/AdditionalFieldsIndexer.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
<?php
namespace ApacheSolrForTypo3\Solr;

/**
* This file is part of the TYPO3 CMS project.
*
Expand All @@ -13,6 +11,9 @@
*
* The TYPO3 project - inspiring people to share!
*/

namespace ApacheSolrForTypo3\Solr;

use ApacheSolrForTypo3\Solr\System\Configuration\TypoScriptConfiguration;
use ApacheSolrForTypo3\Solr\System\ContentObject\ContentObjectService;
use ApacheSolrForTypo3\Solr\System\Solr\Document\Document;
Expand Down
4 changes: 2 additions & 2 deletions Classes/AdditionalPageIndexer.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
<?php
namespace ApacheSolrForTypo3\Solr;

/**
* This file is part of the TYPO3 CMS project.
*
Expand All @@ -14,6 +12,8 @@
* The TYPO3 project - inspiring people to share!
*/

namespace ApacheSolrForTypo3\Solr;

use ApacheSolrForTypo3\Solr\System\Solr\Document\Document;

/**
Expand Down
4 changes: 2 additions & 2 deletions Classes/Api.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
<?php
namespace ApacheSolrForTypo3\Solr;

/**
* This file is part of the TYPO3 CMS project.
*
Expand All @@ -14,6 +12,8 @@
* The TYPO3 project - inspiring people to share!
*/

namespace ApacheSolrForTypo3\Solr;

/**
* Remote API related methods
*
Expand Down
4 changes: 2 additions & 2 deletions Classes/Backend/CoreSelectorField.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php

namespace ApacheSolrForTypo3\Solr\Backend;

/*
* This file is part of the TYPO3 CMS project.
*
Expand All @@ -15,6 +13,8 @@
* The TYPO3 project - inspiring people to share!
*/

namespace ApacheSolrForTypo3\Solr\Backend;

use ApacheSolrForTypo3\Solr\Domain\Site\Site;
use TYPO3\CMS\Backend\Form\Exception as BackendFormException;
use TYPO3\CMS\Backend\Form\FormResultCompiler;
Expand Down
4 changes: 2 additions & 2 deletions Classes/Backend/IndexingConfigurationSelectorField.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php

namespace ApacheSolrForTypo3\Solr\Backend;

/*
* This file is part of the TYPO3 CMS project.
*
Expand All @@ -15,6 +13,8 @@
* The TYPO3 project - inspiring people to share!
*/

namespace ApacheSolrForTypo3\Solr\Backend;

use ApacheSolrForTypo3\Solr\Domain\Site\Site;
use TYPO3\CMS\Backend\Form\Exception as BackendFormException;
use TYPO3\CMS\Backend\Form\FormResultCompiler;
Expand Down
4 changes: 2 additions & 2 deletions Classes/Backend/SiteSelectorField.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php

namespace ApacheSolrForTypo3\Solr\Backend;

/**
* This file is part of the TYPO3 CMS project.
*
Expand All @@ -15,6 +13,8 @@
* The TYPO3 project - inspiring people to share!
*/

namespace ApacheSolrForTypo3\Solr\Backend;

use ApacheSolrForTypo3\Solr\Domain\Site\SiteRepository;
use ApacheSolrForTypo3\Solr\Domain\Site\Site;
use Doctrine\DBAL\Driver\Exception as DBALDriverException;
Expand Down
4 changes: 2 additions & 2 deletions Classes/ConnectionManager.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php

namespace ApacheSolrForTypo3\Solr;

/*
* This file is part of the TYPO3 CMS project.
*
Expand All @@ -15,6 +13,8 @@
* The TYPO3 project - inspiring people to share!
*/

namespace ApacheSolrForTypo3\Solr;

use ApacheSolrForTypo3\Solr\Domain\Site\Site;
use ApacheSolrForTypo3\Solr\Domain\Site\SiteRepository;
use ApacheSolrForTypo3\Solr\System\Records\Pages\PagesRepository as PagesRepositoryAtExtSolr;
Expand Down
4 changes: 2 additions & 2 deletions Classes/ContentObject/Classification.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
<?php
namespace ApacheSolrForTypo3\Solr\ContentObject;

/**
* This file is part of the TYPO3 CMS project.
*
Expand All @@ -14,6 +12,8 @@
* The TYPO3 project - inspiring people to share!
*/

namespace ApacheSolrForTypo3\Solr\ContentObject;

use ApacheSolrForTypo3\Solr\Domain\Index\Classification\Classification as ClassificationItem;
use ApacheSolrForTypo3\Solr\Domain\Index\Classification\ClassificationService;
use InvalidArgumentException;
Expand Down
4 changes: 2 additions & 2 deletions Classes/ContentObject/Content.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
<?php
namespace ApacheSolrForTypo3\Solr\ContentObject;

/**
* This file is part of the TYPO3 CMS project.
*
Expand All @@ -14,6 +12,8 @@
* The TYPO3 project - inspiring people to share!
*/

namespace ApacheSolrForTypo3\Solr\ContentObject;

use ApacheSolrForTypo3\Solr\HtmlContentExtractor;
use TYPO3\CMS\Core\Utility\GeneralUtility;
use TYPO3\CMS\Frontend\ContentObject\AbstractContentObject;
Expand Down
4 changes: 2 additions & 2 deletions Classes/ContentObject/Multivalue.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
<?php
namespace ApacheSolrForTypo3\Solr\ContentObject;

/**
* This file is part of the TYPO3 CMS project.
*
Expand All @@ -14,6 +12,8 @@
* The TYPO3 project - inspiring people to share!
*/

namespace ApacheSolrForTypo3\Solr\ContentObject;

use TYPO3\CMS\Core\Utility\GeneralUtility;
use TYPO3\CMS\Frontend\ContentObject\AbstractContentObject;

Expand Down
4 changes: 2 additions & 2 deletions Classes/ContentObject/Relation.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php

namespace ApacheSolrForTypo3\Solr\ContentObject;

/*
* This file is part of the TYPO3 CMS project.
*
Expand All @@ -15,6 +13,8 @@
* The TYPO3 project - inspiring people to share!
*/

namespace ApacheSolrForTypo3\Solr\ContentObject;

use ApacheSolrForTypo3\Solr\System\Language\FrontendOverlayService;
use ApacheSolrForTypo3\Solr\System\TCA\TCAService;
use Doctrine\DBAL\Exception as DBALException;
Expand Down
4 changes: 2 additions & 2 deletions Classes/Controller/AbstractBaseController.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php

namespace ApacheSolrForTypo3\Solr\Controller;

/*
* This file is part of the TYPO3 CMS project.
*
Expand All @@ -15,6 +13,8 @@
* The TYPO3 project - inspiring people to share!
*/

namespace ApacheSolrForTypo3\Solr\Controller;

use ApacheSolrForTypo3\Solr\ConnectionManager;
use ApacheSolrForTypo3\Solr\Domain\Search\ResultSet\SearchResultSetService;
use ApacheSolrForTypo3\Solr\Domain\Search\SearchRequestBuilder;
Expand Down
4 changes: 2 additions & 2 deletions Classes/Controller/Backend/PageModuleSummary.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php

namespace ApacheSolrForTypo3\Solr\Controller\Backend;

/*
* This file is part of the TYPO3 CMS project.
*
Expand All @@ -15,6 +13,8 @@
* The TYPO3 project - inspiring people to share!
*/

namespace ApacheSolrForTypo3\Solr\Controller\Backend;

use TYPO3\CMS\Backend\Utility\BackendUtility;
use TYPO3\CMS\Core\Service\FlexFormService;
use TYPO3\CMS\Core\Utility\GeneralUtility;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php

namespace ApacheSolrForTypo3\Solr\Controller\Backend\Search;

/*
* This file is part of the TYPO3 CMS project.
*
Expand All @@ -15,6 +13,8 @@
* The TYPO3 project - inspiring people to share!
*/

namespace ApacheSolrForTypo3\Solr\Controller\Backend\Search;

use ApacheSolrForTypo3\Solr\ConnectionManager;
use ApacheSolrForTypo3\Solr\Domain\Site\SiteRepository;
use ApacheSolrForTypo3\Solr\Domain\Site\Site;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php

namespace ApacheSolrForTypo3\Solr\Controller\Backend\Search;

/*
* This file is part of the TYPO3 CMS project.
*
Expand All @@ -15,6 +13,8 @@
* The TYPO3 project - inspiring people to share!
*/

namespace ApacheSolrForTypo3\Solr\Controller\Backend\Search;

use ApacheSolrForTypo3\Solr\System\Mvc\Backend\Component\Exception\InvalidViewObjectNameException;
use ApacheSolrForTypo3\Solr\Utility\ManagedResourcesUtility;
use Doctrine\DBAL\Driver\Exception as DBALDriverException;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php

namespace ApacheSolrForTypo3\Solr\Controller\Backend\Search;

/*
* This file is part of the TYPO3 CMS project.
*
Expand All @@ -15,6 +13,8 @@
* The TYPO3 project - inspiring people to share!
*/

namespace ApacheSolrForTypo3\Solr\Controller\Backend\Search;

use ApacheSolrForTypo3\Solr\System\Solr\SolrConnection;
use Psr\Http\Message\ResponseInterface;
use Throwable;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php

namespace ApacheSolrForTypo3\Solr\Controller\Backend\Search;

/*
* This file is part of the TYPO3 CMS project.
*
Expand All @@ -15,6 +13,8 @@
* The TYPO3 project - inspiring people to share!
*/

namespace ApacheSolrForTypo3\Solr\Controller\Backend\Search;

use ApacheSolrForTypo3\Solr\Backend\IndexingConfigurationSelectorField;
use ApacheSolrForTypo3\Solr\Domain\Index\IndexService;
use ApacheSolrForTypo3\Solr\IndexQueue\Queue;
Expand Down
4 changes: 2 additions & 2 deletions Classes/Controller/Backend/Search/InfoModuleController.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php

namespace ApacheSolrForTypo3\Solr\Controller\Backend\Search;

/*
* This file is part of the TYPO3 CMS project.
*
Expand All @@ -15,6 +13,8 @@
* The TYPO3 project - inspiring people to share!
*/

namespace ApacheSolrForTypo3\Solr\Controller\Backend\Search;

use ApacheSolrForTypo3\Solr\Api;
use ApacheSolrForTypo3\Solr\Domain\Search\Statistics\StatisticsRepository;
use ApacheSolrForTypo3\Solr\Domain\Search\ApacheSolrDocument\Repository as ApacheSolrDocumentRepository;
Expand Down
4 changes: 2 additions & 2 deletions Classes/Controller/SearchController.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php

namespace ApacheSolrForTypo3\Solr\Controller;

/*
* This file is part of the TYPO3 CMS project.
*
Expand All @@ -15,6 +13,8 @@
* The TYPO3 project - inspiring people to share!
*/

namespace ApacheSolrForTypo3\Solr\Controller;

use ApacheSolrForTypo3\Solr\Domain\Search\ResultSet\SearchResultSet;
use ApacheSolrForTypo3\Solr\Pagination\ResultsPagination;
use ApacheSolrForTypo3\Solr\Pagination\ResultsPaginator;
Expand Down
8 changes: 4 additions & 4 deletions Classes/Controller/SuggestController.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
<?php

namespace ApacheSolrForTypo3\Solr\Controller;

use Psr\Http\Message\ResponseInterface;

/*
* This file is part of the TYPO3 CMS project.
*
Expand All @@ -17,6 +13,10 @@
* The TYPO3 project - inspiring people to share!
*/

namespace ApacheSolrForTypo3\Solr\Controller;

use Psr\Http\Message\ResponseInterface;

use ApacheSolrForTypo3\Solr\Domain\Search\Suggest\SuggestService;
use ApacheSolrForTypo3\Solr\System\Solr\SolrUnavailableException;
use ApacheSolrForTypo3\Solr\Util;
Expand Down
Loading

0 comments on commit e75ef70

Please sign in to comment.