Skip to content

Commit

Permalink
Merge pull request #288 from patrickallaert/remove-UselessOverridingM…
Browse files Browse the repository at this point in the history
…ethod-warnings

Changed: removed useless overriding methods
  • Loading branch information
patrickallaert committed Apr 16, 2013
2 parents a07fd33 + 3711261 commit cd2743e
Show file tree
Hide file tree
Showing 12 changed files with 4 additions and 112 deletions.
Expand Up @@ -24,11 +24,6 @@ class ContentInfoStub extends ContentInfo
*/
protected $repository;

public function __get( $property )
{
return parent::__get( $property );
}

/**
* Internal helper method to modify the $mainLocationId property
*
Expand Down
15 changes: 0 additions & 15 deletions eZ/Publish/API/Repository/Values/Content/Query/Criterion/Field.php
Expand Up @@ -20,21 +20,6 @@
*/
class Field extends Criterion implements CriterionInterface
{
/**
* Creates a new Field Criterion.
*
* Matches $fieldIdentifier against $value using $operator.
* $fieldIdentifier is same value as eZ\Publish\API\Repository\Values\Content\Field->fieldDefIdentifier
*
* @param string $fieldIdentifier The target field identifier
* @param string $operator The match operator
* @param mixed $value The value to match against
*/
public function __construct( $fieldIdentifier, $operator, $value )
{
parent::__construct( $fieldIdentifier, $operator, $value );
}

public function getSpecifications()
{
return array(
Expand Down
Expand Up @@ -10,19 +10,9 @@
namespace eZ\Publish\API\Repository\Values\Content\Query\Criterion;

/**
* This class does...
* This criterion implements a logical AND criterion and will only match
* if ALL of the given criteria match
*/
class LogicalAnd extends LogicalOperator
{
/**
* Creates a new AND logic criterion.
*
* This criterion will only match if ALL of the given criteria match
*
* @param Criterion[] $criteria
*/
public function __construct( array $criteria )
{
parent::__construct( $criteria );
}
}
Expand Up @@ -10,19 +10,9 @@
namespace eZ\Publish\API\Repository\Values\Content\Query\Criterion;

/**
* This class does...
* This criterion implements a logical OR criterion and will only match
* if AT LEAST ONE of the given criteria match
*/
class LogicalOr extends LogicalOperator
{
/**
* Creates a new OR logic criterion.
*
* This criterion will match if AT LEAST ONE of the given criteria match
*
* @param Criterion[] $criteria
*/
public function __construct( array $criteria )
{
parent::__construct( $criteria );
}
}
10 changes: 0 additions & 10 deletions eZ/Publish/Core/MVC/Symfony/SiteAccess/Matcher/Map/Host.php
Expand Up @@ -15,16 +15,6 @@

class Host extends Map implements Matcher
{
/**
* Constructor.
*
* @param array $siteAccessesConfiguration SiteAccesses configuration.
*/
public function __construct( array $siteAccessesConfiguration )
{
parent::__construct( $siteAccessesConfiguration );
}

public function getName()
{
return 'host:map';
Expand Down
10 changes: 0 additions & 10 deletions eZ/Publish/Core/MVC/Symfony/SiteAccess/Matcher/Map/Port.php
Expand Up @@ -15,16 +15,6 @@

class Port extends Map implements Matcher
{
/**
* Constructor.
*
* @param array $siteAccessesConfiguration SiteAccesses configuration.
*/
public function __construct( array $siteAccessesConfiguration )
{
parent::__construct( $siteAccessesConfiguration );
}

public function getName()
{
return 'port';
Expand Down
10 changes: 0 additions & 10 deletions eZ/Publish/Core/MVC/Symfony/SiteAccess/Matcher/Map/URI.php
Expand Up @@ -16,16 +16,6 @@

class URI extends Map implements Matcher, URILexer
{
/**
* Constructor.
*
* @param array $siteAccessesConfiguration SiteAccesses configuration.
*/
public function __construct( array $siteAccessesConfiguration )
{
parent::__construct( $siteAccessesConfiguration );
}

/**
* Injects the request object to match against.
*
Expand Down
Expand Up @@ -32,14 +32,6 @@ protected function setUp()
$this->handler = $this->persistenceHandler->contentLanguageHandler();
}

/**
* Removes stuff created in setUp().
*/
protected function tearDown()
{
parent::tearDown();
}

/**
* Test load function
*
Expand Down
Expand Up @@ -32,14 +32,6 @@ protected function setUp()
$this->handler = $this->persistenceHandler->objectStateHandler();
}

/**
* Removes stuff created in setUp().
*/
protected function tearDown()
{
parent::tearDown();
}

/**
* @covers \eZ\Publish\Core\Persistence\InMemory\ObjectStateHandler::createGroup
*/
Expand Down
5 changes: 0 additions & 5 deletions eZ/Publish/Core/REST/Client/Values/Content/ContentInfo.php
Expand Up @@ -48,9 +48,4 @@ public function __construct( ContentTypeService $contentTypeService, array $data
parent::__construct( $data );
$this->contentTypeService = $contentTypeService;
}

public function __get( $property )
{
return parent::__get( $property );
}
}
Expand Up @@ -11,7 +11,6 @@

use eZ\Publish\Core\REST\Server\Input\Parser\Base;
use eZ\Publish\Core\REST\Common\Input\ParsingDispatcher;
use eZ\Publish\Core\REST\Common\UrlHandler;
use eZ\Publish\Core\REST\Common\Exceptions;
use eZ\Publish\API\Repository\Values\Content\Query\Criterion\ContentTypeId as ContentTypeIdCriterion;

Expand All @@ -20,11 +19,6 @@
*/
class ContentTypeId extends Base
{
public function __construct( UrlHandler $urlHandler )
{
parent::__construct( $urlHandler );
}

/**
* Parses input structure to a Criterion object
*
Expand Down
11 changes: 0 additions & 11 deletions eZ/Publish/Core/REST/Server/Input/Parser/ViewInput.php
Expand Up @@ -11,7 +11,6 @@

use eZ\Publish\Core\REST\Server\Input\Parser\Criterion as CriterionParser;
use eZ\Publish\Core\REST\Common\Input\ParsingDispatcher;
use eZ\Publish\Core\REST\Common\UrlHandler;
use eZ\Publish\Core\REST\Common\Exceptions;
use eZ\Publish\API\Repository\Values\Content\Query;
use eZ\Publish\Core\REST\Server\Values\RestViewInput;
Expand All @@ -22,16 +21,6 @@
*/
class ViewInput extends CriterionParser
{
/**
* Construct
*
* @param \eZ\Publish\Core\REST\Common\UrlHandler $urlHandler
*/
public function __construct( UrlHandler $urlHandler )
{
parent::__construct( $urlHandler );
}

/**
* Parses input structure to a RestViewInput struct
*
Expand Down

0 comments on commit cd2743e

Please sign in to comment.