Skip to content

Commit

Permalink
Remove superfluous phpdoc tags
Browse files Browse the repository at this point in the history
  • Loading branch information
Philippe Segatori authored and tigitz committed Aug 13, 2019
1 parent b64fdb7 commit c2e2235
Show file tree
Hide file tree
Showing 76 changed files with 17 additions and 198 deletions.
2 changes: 0 additions & 2 deletions src/Symfony/Bridge/Doctrine/Tests/Fixtures/BaseUser.php
Expand Up @@ -22,8 +22,6 @@ class BaseUser
/**
* BaseUser constructor.
*
* @param int $id
* @param string $username
*/
public function __construct(int $id, string $username)
{
Expand Down
Expand Up @@ -153,7 +153,6 @@ public function getMessage()
}

/**
* @param string $utilPrefix
*
* @return bool
*/
Expand Down
Expand Up @@ -29,9 +29,6 @@ class CacheDataCollector extends DataCollector implements LateDataCollectorInter
*/
private $instances = [];

/**
* @param string $name
*/
public function addInstance(string $name, TraceableAdapter $instance)
{
$this->instances[$name] = $instance;
Expand Down
Expand Up @@ -345,7 +345,6 @@ abstract protected function createNode();
/**
* Set PathSeparator to use.
*
* @param string $separator
*
* @return $this
*/
Expand Down
2 changes: 0 additions & 2 deletions src/Symfony/Component/Config/Definition/Processor.php
Expand Up @@ -70,8 +70,6 @@ public function processConfiguration(ConfigurationInterface $configuration, arra
* @param array $config A config array
* @param string $key The key to normalize
* @param string $plural The plural form of the key if it is irregular
*
* @return array
*/
public static function normalizeConfig(array $config, string $key, string $plural = null): array
{
Expand Down
2 changes: 0 additions & 2 deletions src/Symfony/Component/Console/Question/Question.php
Expand Up @@ -188,7 +188,6 @@ public function setAutocompleterCallback(callable $callback = null): self
/**
* Sets a validator for the question.
*
* @param callable|null $validator
*
* @return $this
*/
Expand Down Expand Up @@ -248,7 +247,6 @@ public function getMaxAttempts()
*
* The normalizer can be a callable (a string), a closure or a class implementing __invoke.
*
* @param callable $normalizer
*
* @return $this
*/
Expand Down
2 changes: 0 additions & 2 deletions src/Symfony/Component/Console/Style/OutputStyle.php
Expand Up @@ -39,8 +39,6 @@ public function newLine(int $count = 1)
}

/**
* @param int $max
*
* @return ProgressBar
*/
public function createProgressBar(int $max = 0)
Expand Down
Expand Up @@ -24,8 +24,6 @@
class SyntaxErrorException extends ParseException
{
/**
* @param string $expectedValue
*
* @return self
*/
public static function unexpectedToken(string $expectedValue, Token $foundToken)
Expand All @@ -34,9 +32,6 @@ public static function unexpectedToken(string $expectedValue, Token $foundToken)
}

/**
* @param string $pseudoElement
* @param string $unexpectedLocation
*
* @return self
*/
public static function pseudoElementFound(string $pseudoElement, string $unexpectedLocation)
Expand All @@ -45,8 +40,6 @@ public static function pseudoElementFound(string $pseudoElement, string $unexpec
}

/**
* @param int $position
*
* @return self
*/
public static function unclosedString(int $position)
Expand Down
3 changes: 0 additions & 3 deletions src/Symfony/Component/CssSelector/Node/AbstractNode.php
Expand Up @@ -28,9 +28,6 @@ abstract class AbstractNode implements NodeInterface
*/
private $nodeName;

/**
* @return string
*/
public function getNodeName(): string
{
if (null === $this->nodeName) {
Expand Down
4 changes: 0 additions & 4 deletions src/Symfony/Component/CssSelector/Node/ElementNode.php
Expand Up @@ -26,10 +26,6 @@ class ElementNode extends AbstractNode
private $namespace;
private $element;

/**
* @param string|null $namespace
* @param string|null $element
*/
public function __construct(string $namespace = null, string $element = null)
{
$this->namespace = $namespace;
Expand Down
1 change: 0 additions & 1 deletion src/Symfony/Component/CssSelector/Node/FunctionNode.php
Expand Up @@ -30,7 +30,6 @@ class FunctionNode extends AbstractNode
private $arguments;

/**
* @param string $name
* @param Token[] $arguments
*/
public function __construct(NodeInterface $selector, string $name, array $arguments = [])
Expand Down
Expand Up @@ -26,8 +26,5 @@
*/
interface HandlerInterface
{
/**
* @return bool
*/
public function handle(Reader $reader, TokenStream $stream): bool;
}
Expand Up @@ -38,9 +38,6 @@ public function getCombinationTranslators(): array
];
}

/**
* @return XPathExpr
*/
public function translateDescendant(XPathExpr $xpath, XPathExpr $combinedXpath): XPathExpr
{
return $xpath->join('/descendant-or-self::*/', $combinedXpath);
Expand Down
Expand Up @@ -20,7 +20,6 @@ class RewindableGenerator implements \IteratorAggregate, \Countable
private $count;

/**
* @param callable $generator
* @param int|callable $count
*/
public function __construct(callable $generator, $count)
Expand Down
Expand Up @@ -137,11 +137,6 @@ private function doProcessValue($value, bool $isRoot = false)
return $value;
}

/**
* @param \ReflectionClass $reflectionClass
*
* @return array
*/
private function autowireCalls(\ReflectionClass $reflectionClass, bool $isRoot): array
{
$this->decoratedId = null;
Expand Down
2 changes: 0 additions & 2 deletions src/Symfony/Component/DependencyInjection/Definition.php
Expand Up @@ -422,7 +422,6 @@ public function getInstanceofConditionals()
/**
* Sets whether or not instanceof conditionals should be prepended with a global set.
*
* @param bool $autoconfigured
*
* @return $this
*/
Expand Down Expand Up @@ -820,7 +819,6 @@ public function getBindings()
* injected in the matching parameters (of the constructor, of methods
* called and of controller actions).
*
* @param array $bindings
*
* @return $this
*/
Expand Down
Expand Up @@ -555,7 +555,6 @@ private function getChildren(\DOMNode $node, string $name): array
/**
* Validates a documents XML schema.
*
* @param \DOMDocument $dom
*
* @return bool
*
Expand Down Expand Up @@ -671,8 +670,6 @@ private function validateExtensions(\DOMDocument $dom, string $file)

/**
* Loads from an extension.
*
* @param \DOMDocument $xml
*/
private function loadFromExtensions(\DOMDocument $xml)
{
Expand Down
1 change: 0 additions & 1 deletion src/Symfony/Component/DomCrawler/Field/ChoiceFormField.php
Expand Up @@ -155,7 +155,6 @@ public function setValue($value)
/**
* Adds a choice to the current ones.
*
* @param \DOMElement $node
*
* @throws \LogicException When choice provided is not multiple nor radio
*
Expand Down
1 change: 0 additions & 1 deletion src/Symfony/Component/Finder/Finder.php
Expand Up @@ -630,7 +630,6 @@ public function getIterator()
*
* The set can be another Finder, an Iterator, an IteratorAggregate, or even a plain array.
*
* @param iterable $iterator
*
* @return $this
*
Expand Down
1 change: 0 additions & 1 deletion src/Symfony/Component/Finder/Gitignore.php
Expand Up @@ -21,7 +21,6 @@ class Gitignore
/**
* Returns a regexp which is the equivalent of the gitignore pattern.
*
* @param string $gitignoreFileContent
*
* @return string The regexp
*/
Expand Down
4 changes: 0 additions & 4 deletions src/Symfony/Component/Finder/Tests/GitignoreTest.php
Expand Up @@ -17,10 +17,6 @@ class GitignoreTest extends TestCase
{
/**
* @dataProvider provider
*
* @param string $patterns
* @param array $matchingCases
* @param array $nonMatchingCases
*/
public function testCases(string $patterns, array $matchingCases, array $nonMatchingCases)
{
Expand Down
Expand Up @@ -44,7 +44,6 @@ protected function assertOrderedIterator($expected, \Traversable $iterator)
* $a and $b such that $a goes before $b in $expected, the method
* asserts that any element of $a goes before any element of $b
* in the sequence generated by $iterator
* @param \Traversable $iterator
*/
protected function assertOrderedIteratorForGroups($expected, \Traversable $iterator)
{
Expand All @@ -64,8 +63,7 @@ protected function assertOrderedIteratorForGroups($expected, \Traversable $itera
/**
* Same as IteratorTestCase::assertIterator with foreach usage.
*
* @param array $expected
* @param \Traversable $iterator
* @param array $expected
*/
protected function assertIteratorInForeach($expected, \Traversable $iterator)
{
Expand All @@ -84,8 +82,7 @@ protected function assertIteratorInForeach($expected, \Traversable $iterator)
/**
* Same as IteratorTestCase::assertOrderedIterator with foreach usage.
*
* @param array $expected
* @param \Traversable $iterator
* @param array $expected
*/
protected function assertOrderedIteratorInForeach($expected, \Traversable $iterator)
{
Expand Down
Expand Up @@ -29,7 +29,6 @@ class BooleanToStringTransformer implements DataTransformerInterface

/**
* @param string $trueValue The value emitted upon transform if the input is true
* @param array $falseValues
*/
public function __construct(string $trueValue, array $falseValues = [null])
{
Expand Down
Expand Up @@ -26,7 +26,6 @@ class DependencyInjectionExtension implements FormExtensionInterface

/**
* @param iterable[] $typeExtensionServices
* @param iterable $guesserServices
*/
public function __construct(ContainerInterface $typeContainer, array $typeExtensionServices, iterable $guesserServices)
{
Expand Down
3 changes: 1 addition & 2 deletions src/Symfony/Component/Form/FormFactoryInterface.php
Expand Up @@ -62,8 +62,7 @@ public function createForProperty(string $class, string $property, $data = null,
/**
* Returns a form builder.
*
* @param mixed $data The initial data
* @param mixed $data The initial data
*
* @return FormBuilderInterface The form builder
*
Expand Down
1 change: 0 additions & 1 deletion src/Symfony/Component/Form/Util/StringUtil.php
Expand Up @@ -27,7 +27,6 @@ private function __construct()
/**
* Returns the trimmed data.
*
* @param string $string
*
* @return string
*/
Expand Down
Expand Up @@ -24,7 +24,6 @@ interface ArgumentResolverInterface
/**
* Returns the arguments to pass to the controller.
*
* @param callable $controller
*
* @return array An array of arguments to pass to the controller
*
Expand Down
Expand Up @@ -95,7 +95,6 @@ public function getCalledListeners()
/**
* Sets the not called listeners.
*
* @param array $listeners
*
* @see TraceableEventDispatcher
*/
Expand Down
Expand Up @@ -53,7 +53,6 @@ class RouterListener implements EventSubscriberInterface
* @param UrlMatcherInterface|RequestMatcherInterface $matcher The Url or Request matcher
* @param RequestContext|null $context The RequestContext (can be null when $matcher implements RequestContextAwareInterface)
* @param string $projectDir
* @param bool $debug
*
* @throws \InvalidArgumentException
*/
Expand Down
Expand Up @@ -21,7 +21,6 @@ class AccessDeniedHttpException extends HttpException
* @param string $message The internal exception message
* @param \Throwable $previous The previous exception
* @param int $code The internal exception code
* @param array $headers
*/
public function __construct(string $message = null, \Throwable $previous = null, int $code = 0, array $headers = [])
{
Expand Down
Expand Up @@ -20,7 +20,6 @@ class BadRequestHttpException extends HttpException
* @param string $message The internal exception message
* @param \Throwable $previous The previous exception
* @param int $code The internal exception code
* @param array $headers
*/
public function __construct(string $message = null, \Throwable $previous = null, int $code = 0, array $headers = [])
{
Expand Down
Expand Up @@ -20,7 +20,6 @@ class ConflictHttpException extends HttpException
* @param string $message The internal exception message
* @param \Throwable $previous The previous exception
* @param int $code The internal exception code
* @param array $headers
*/
public function __construct(string $message = null, \Throwable $previous = null, int $code = 0, array $headers = [])
{
Expand Down
Expand Up @@ -20,7 +20,6 @@ class GoneHttpException extends HttpException
* @param string $message The internal exception message
* @param \Throwable $previous The previous exception
* @param int $code The internal exception code
* @param array $headers
*/
public function __construct(string $message = null, \Throwable $previous = null, int $code = 0, array $headers = [])
{
Expand Down
Expand Up @@ -20,7 +20,6 @@ class LengthRequiredHttpException extends HttpException
* @param string $message The internal exception message
* @param \Throwable $previous The previous exception
* @param int $code The internal exception code
* @param array $headers
*/
public function __construct(string $message = null, \Throwable $previous = null, int $code = 0, array $headers = [])
{
Expand Down
Expand Up @@ -21,7 +21,6 @@ class MethodNotAllowedHttpException extends HttpException
* @param string $message The internal exception message
* @param \Throwable $previous The previous exception
* @param int $code The internal exception code
* @param array $headers
*/
public function __construct(array $allow, string $message = null, \Throwable $previous = null, ?int $code = 0, array $headers = [])
{
Expand Down
Expand Up @@ -20,7 +20,6 @@ class NotAcceptableHttpException extends HttpException
* @param string $message The internal exception message
* @param \Throwable $previous The previous exception
* @param int $code The internal exception code
* @param array $headers
*/
public function __construct(string $message = null, \Throwable $previous = null, int $code = 0, array $headers = [])
{
Expand Down
Expand Up @@ -20,7 +20,6 @@ class NotFoundHttpException extends HttpException
* @param string $message The internal exception message
* @param \Throwable $previous The previous exception
* @param int $code The internal exception code
* @param array $headers
*/
public function __construct(string $message = null, \Throwable $previous = null, int $code = 0, array $headers = [])
{
Expand Down
Expand Up @@ -20,7 +20,6 @@ class PreconditionFailedHttpException extends HttpException
* @param string $message The internal exception message
* @param \Throwable $previous The previous exception
* @param int $code The internal exception code
* @param array $headers
*/
public function __construct(string $message = null, \Throwable $previous = null, int $code = 0, array $headers = [])
{
Expand Down
Expand Up @@ -22,7 +22,6 @@ class PreconditionRequiredHttpException extends HttpException
* @param string $message The internal exception message
* @param \Throwable $previous The previous exception
* @param int $code The internal exception code
* @param array $headers
*/
public function __construct(string $message = null, \Throwable $previous = null, int $code = 0, array $headers = [])
{
Expand Down

0 comments on commit c2e2235

Please sign in to comment.