Skip to content

Commit

Permalink
Remove inheritdoc tag (nelmio#1053)
Browse files Browse the repository at this point in the history
  • Loading branch information
theofidry authored Aug 22, 2020
1 parent 7ac2223 commit 23724b2
Show file tree
Hide file tree
Showing 290 changed files with 431 additions and 1,485 deletions.
4 changes: 3 additions & 1 deletion .php_cs.dist
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,9 @@ LICENSE
'no_multiline_whitespace_around_double_arrow' => true,
'no_short_bool_cast' => true,
'no_spaces_around_offset' => true,
'no_superfluous_phpdoc_tags' => true,
'no_superfluous_phpdoc_tags' => [
'remove_inheritdoc' => true,
],
'no_unused_imports' => true,
'ordered_imports' => true,
'phpdoc_no_empty_return' => true,
Expand Down
16 changes: 4 additions & 12 deletions fixtures/Bridge/Symfony/Application/AppKernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,13 @@ class AppKernel extends Kernel
*/
private $config;

/**
* @inheritdoc
*/

public function __construct($environment, $debug)
{
parent::__construct($environment, $debug);
}

/**
* @inheritdoc
*/

public function registerBundles()
{
return [
Expand All @@ -47,9 +43,7 @@ public function registerBundles()
];
}

/**
* @inheritdoc
*/

public function registerContainerConfiguration(LoaderInterface $loader): void
{
if (3 === self::MAJOR_VERSION) {
Expand All @@ -61,9 +55,7 @@ public function registerContainerConfiguration(LoaderInterface $loader): void
$loader->load($config);
}

/**
* @inheritdoc
*/

public function build(ContainerBuilder $container): void
{
$container->addCompilerPass(new class() implements CompilerPassInterface {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@

class AppKernelWithCustomParameters extends AppKernel
{
/**
* @inheritdoc
*/
public function registerContainerConfiguration(LoaderInterface $loader): void
{
if (3 === self::MAJOR_VERSION) {
Expand Down
20 changes: 5 additions & 15 deletions fixtures/Definition/FakeMethodCall.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,41 +19,31 @@ class FakeMethodCall implements MethodCallInterface
{
use NotCallableTrait;

/**
* @inheritdoc
*/

public function withArguments(array $arguments = null): void
{
$this->__call(__METHOD__, func_get_args());
}

/**
* @inheritdoc
*/

public function getCaller(): void
{
$this->__call(__METHOD__, func_get_args());
}

/**
* @inheritdoc
*/

public function getMethod(): string
{
$this->__call(__METHOD__, func_get_args());
}

/**
* @inheritdoc
*/

public function getArguments(): array
{
$this->__call(__METHOD__, func_get_args());
}

/**
* @inheritdoc
*/

public function __toString(): string
{
$this->__call(__METHOD__, func_get_args());
Expand Down
20 changes: 5 additions & 15 deletions fixtures/Definition/Fixture/DummyFixture.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,41 +31,31 @@ public function __construct(string $id)
$this->id = $id;
}

/**
* @inheritdoc
*/

public function getId(): string
{
return $this->id;
}

/**
* @inheritdoc
*/

public function getClassName(): string
{
$this->__call(__METHOD__, func_get_args());
}

/**
* @inheritdoc
*/

public function getSpecs(): SpecificationBag
{
$this->__call(__METHOD__, func_get_args());
}

/**
* @inheritdoc
*/

public function getValueForCurrent(): void
{
$this->__call(__METHOD__, func_get_args());
}

/**
* @inheritdoc
*/

public function withSpecs(SpecificationBag $specs): void
{
$this->__call(__METHOD__, func_get_args());
Expand Down
20 changes: 5 additions & 15 deletions fixtures/Definition/Fixture/FakeFixture.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,41 +21,31 @@ class FakeFixture implements FixtureInterface
{
use NotCallableTrait;

/**
* @inheritdoc
*/

public function getId(): string
{
$this->__call(__METHOD__, func_get_args());
}

/**
* @inheritdoc
*/

public function getClassName(): string
{
$this->__call(__METHOD__, func_get_args());
}

/**
* @inheritdoc
*/

public function getSpecs(): SpecificationBag
{
$this->__call(__METHOD__, func_get_args());
}

/**
* @inheritdoc
*/

public function getValueForCurrent(): void
{
$this->__call(__METHOD__, func_get_args());
}

/**
* @inheritdoc
*/

public function withSpecs(SpecificationBag $specs): void
{
$this->__call(__METHOD__, func_get_args());
Expand Down
20 changes: 5 additions & 15 deletions fixtures/Definition/Fixture/MutableFixture.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,25 +43,19 @@ public function __construct(string $id, string $className, SpecificationBag $spe
$this->specs = $specs;
}

/**
* @inheritdoc
*/

public function getId(): string
{
return $this->id;
}

/**
* @inheritdoc
*/

public function getClassName(): string
{
return $this->className;
}

/**
* @inheritdoc
*/

public function getSpecs(): SpecificationBag
{
return $this->specs;
Expand All @@ -72,17 +66,13 @@ public function setSpecs(SpecificationBag $specs): void
$this->specs = $specs;
}

/**
* @inheritdoc
*/

public function getValueForCurrent(): void
{
$this->__call(__METHOD__, func_get_args());
}

/**
* @inheritdoc
*/

public function withSpecs(SpecificationBag $specs): void
{
$this->__call(__METHOD__, func_get_args());
Expand Down
4 changes: 1 addition & 3 deletions fixtures/Definition/Flag/ElementFlag.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,7 @@ public function __construct(string $element)
$this->element = $element;
}

/**
* @inheritdoc
*/

public function __toString(): string
{
return $this->element;
Expand Down
4 changes: 1 addition & 3 deletions fixtures/Definition/Flag/ElementWithToStringFlag.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,7 @@ public function __construct(string $element, string $toString)
$this->toString = $toString;
}

/**
* @inheritdoc
*/

public function __toString(): string
{
return $this->toString;
Expand Down
4 changes: 1 addition & 3 deletions fixtures/Definition/Flag/MutableFlag.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,7 @@ public function __construct(string $stringValue, $object)
$this->object = $object;
}

/**
* @inheritdoc
*/

public function __toString(): string
{
return $this->stringValue;
Expand Down
20 changes: 5 additions & 15 deletions fixtures/Definition/MethodCall/DummyMethodCall.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,41 +36,31 @@ public function __construct(string $toString)
$this->toString = $toString;
}

/**
* @inheritdoc
*/

public function withArguments(array $arguments = null): self
{
$this->__call(__METHOD__, func_get_args());
}

/**
* @inheritdoc
*/

public function getCaller(): void
{
$this->__call(__METHOD__, func_get_args());
}

/**
* @inheritdoc
*/

public function getMethod(): string
{
$this->__call(__METHOD__, func_get_args());
}

/**
* @inheritdoc
*/

public function getArguments(): array
{
$this->__call(__METHOD__, func_get_args());
}

/**
* @inheritdoc
*/

public function __toString(): string
{
return $this->toString;
Expand Down
20 changes: 5 additions & 15 deletions fixtures/Definition/MethodCall/MutableMethodCall.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,17 +41,13 @@ public function __construct(ServiceReferenceInterface $caller = null, $method, a
$this->arguments = $arguments;
}

/**
* @inheritdoc
*/

public function withArguments(array $arguments = null): void
{
$this->__call(__METHOD__, func_get_args());
}

/**
* @inheritdoc
*/

public function getCaller()
{
return $this->caller;
Expand All @@ -62,9 +58,7 @@ public function setCaller(ServiceReferenceInterface $caller = null): void
$this->caller = $caller;
}

/**
* @inheritdoc
*/

public function getMethod(): string
{
return $this->method;
Expand All @@ -75,9 +69,7 @@ public function setMethod($method): void
$this->method = $method;
}

/**
* @inheritdoc
*/

public function getArguments()
{
return $this->arguments;
Expand All @@ -88,9 +80,7 @@ public function setArguments(array $arguments = null): void
$this->arguments = $arguments;
}

/**
* @inheritdoc
*/

public function __toString(): string
{
return 'mutable_method_call';
Expand Down
Loading

0 comments on commit 23724b2

Please sign in to comment.