[TASK] Use namespaced ExtensionManagamentUtility 56/31756/2
authorPatrick Wiggelman <patrickwiggelman@roquin.nl>
Thu, 24 Jul 2014 12:55:43 +0000 (14:55 +0200)
committerJochem de Groot <jochemdegroot@roquin.nl>
Thu, 24 Jul 2014 13:09:25 +0000 (15:09 +0200)
Made function createIsActiveConstraint namespaced as well due to consistancy

Resolves: #59682
Releases: 3.0
Change-Id: I90f0c9a73eafd840df083ea661cddf3ad4928a57
Reviewed-on: http://review.typo3.org/31756
Reviewed-by: Jochem de Groot <jochemdegroot@roquin.nl>
Tested-by: Jochem de Groot <jochemdegroot@roquin.nl>
Classes/Domain/Repository/EventRepository.php

index ad94599..b50a9b3 100644 (file)
@@ -18,10 +18,10 @@ class Tx_RoqNewsevent_Domain_Repository_EventRepository extends Tx_News_Domain_R
     /**
      * Returns the constraint to determine if a news event is active or not (archived)
      *
-     * @param Tx_Extbase_Persistence_QueryInterface $query
+     * @param \TYPO3\CMS\Extbase\Persistence\QueryInterface $query
      * @return Tx_Extbase_Persistence_QOM_Constraint $constraint
      */
-    protected function createIsActiveConstraint(Tx_Extbase_Persistence_QueryInterface $query) {
+    protected function createIsActiveConstraint(\TYPO3\CMS\Extbase\Persistence\QueryInterface $query) {
         /** @var $constraint Tx_Extbase_Persistence_QOM_Constraint */
         $constraint = NULL;
         $timestamp  = time(); // + date('Z');
@@ -46,11 +46,11 @@ class Tx_RoqNewsevent_Domain_Repository_EventRepository extends Tx_News_Domain_R
     }
 
     /**
-     * Returns an array of constraints created from a given demand object.
-     *
-     * @param Tx_Extbase_Persistence_QueryInterface $query
+     * @param \TYPO3\CMS\Extbase\Persistence\QueryInterface $query
      * @param Tx_News_Domain_Model_DemandInterface $demand
-     * @return array<Tx_Extbase_Persistence_QOM_Constraint>
+     * @return array
+     * @throws InvalidArgumentException
+     * @throws Exception
      */
     protected function createConstraintsFromDemand(\TYPO3\CMS\Extbase\Persistence\QueryInterface $query, Tx_News_Domain_Model_DemandInterface $demand) {
         $constraints    = array();