Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[CS] Apply phpdoc_annotation_without_dot #24149

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
apply rule
  • Loading branch information
keradus committed Sep 11, 2017
commit 7701b18416f6c9fd290f8631bcbcaf647cd9d2e5
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ protected function detectMetadataDriver($dir, ContainerBuilder $container)
* @param ContainerBuilder $container A ContainerBuilder instance
* @param string $cacheName
*
* @throws \InvalidArgumentException In case of unknown driver type.
* @throws \InvalidArgumentException in case of unknown driver type
*/
protected function loadObjectManagerCacheDriver(array $objectManager, ContainerBuilder $container, $cacheName)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,15 +108,15 @@ abstract class RegisterMappingsPass implements CompilerPassInterface
*
* @param Definition|Reference $driver Driver DI definition or reference
* @param string[] $namespaces List of namespaces handled by $driver
* @param string[] $managerParameters List of container parameters that could
* hold the manager name.
* @param string[] $managerParameters list of container parameters that could
* hold the manager name
* @param string $driverPattern Pattern for the metadata driver service name
* @param string|false $enabledParameter Service container parameter that must be
* present to enable the mapping. Set to false
* to not do any check, optional.
* @param string $configurationPattern Pattern for the Configuration service name
* @param string $registerAliasMethodName Name of Configuration class method to
* register alias.
* @param string $registerAliasMethodName name of Configuration class method to
* register alias
* @param string[] $aliasMap Map of alias to namespace
*/
public function __construct($driver, array $namespaces, array $managerParameters, $driverPattern, $enabledParameter = false, $configurationPattern = '', $registerAliasMethodName = '', array $aliasMap = array())
Expand Down Expand Up @@ -174,7 +174,7 @@ public function process(ContainerBuilder $container)
* @return string The name of the chain driver service
*
* @throws ParameterNotFoundException if non of the managerParameters has a
* non-empty value.
* non-empty value
*/
protected function getChainDriverServiceName(ContainerBuilder $container)
{
Expand All @@ -185,7 +185,7 @@ protected function getChainDriverServiceName(ContainerBuilder $container)
* Create the service definition for the metadata driver.
*
* @param ContainerBuilder $container passed on in case an extending class
* needs access to the container.
* needs access to the container
*
* @return Definition|Reference the metadata driver to add to all chain drivers
*/
Expand All @@ -202,7 +202,7 @@ protected function getDriver(ContainerBuilder $container)
* @return string a service definition name
*
* @throws ParameterNotFoundException if none of the managerParameters has a
* non-empty value.
* non-empty value
*/
private function getConfigurationServiceName(ContainerBuilder $container)
{
Expand All @@ -219,7 +219,7 @@ private function getConfigurationServiceName(ContainerBuilder $container)
*
* @return string The name of the active manager
*
* @throws ParameterNotFoundException If none of the managerParameters is found in the container.
* @throws ParameterNotFoundException if none of the managerParameters is found in the container
*/
private function getManagerName(ContainerBuilder $container)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ class DoctrineChoiceLoader implements ChoiceLoaderInterface
* @param ObjectManager $manager The object manager
* @param string $class The class name of the
* loaded objects
* @param IdReader $idReader The reader for the object
* IDs.
* @param IdReader $idReader the reader for the object
* IDs
* @param null|EntityLoaderInterface $objectLoader The objects loader
*/
public function __construct(ChoiceListFactoryInterface $factory, ObjectManager $manager, $class, IdReader $idReader = null, EntityLoaderInterface $objectLoader = null)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -389,8 +389,8 @@ public function getIndicesForValues(array $values)
*
* @param mixed $entity The choice to create an index for
*
* @return int|string A unique index containing only ASCII letters,
* digits and underscores.
* @return int|string a unique index containing only ASCII letters,
* digits and underscores
*/
protected function createIndex($entity)
{
Expand Down
10 changes: 5 additions & 5 deletions 10 src/Symfony/Bridge/Doctrine/Form/ChoiceList/IdReader.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
*
* @author Bernhard Schussek <bschussek@gmail.com>
*
* @internal This class is meant for internal use only.
* @internal this class is meant for internal use only
*/
class IdReader
{
Expand Down Expand Up @@ -79,8 +79,8 @@ public function __construct(ObjectManager $om, ClassMetadata $classMetadata)
/**
* Returns whether the class has a single-column ID.
*
* @return bool Returns `true` if the class has a single-column ID and
* `false` otherwise.
* @return bool returns `true` if the class has a single-column ID and
* `false` otherwise
*/
public function isSingleId()
{
Expand All @@ -90,8 +90,8 @@ public function isSingleId()
/**
* Returns whether the class has a single-column integer ID.
*
* @return bool Returns `true` if the class has a single-column integer ID
* and `false` otherwise.
* @return bool returns `true` if the class has a single-column integer ID
* and `false` otherwise
*/
public function isIntId()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ public function block(FormView $view, $blockName, array $variables = array())
*
* @return string A CSRF token
*
* @throws \BadMethodCallException When no CSRF provider was injected in the constructor.
* @throws \BadMethodCallException when no CSRF provider was injected in the constructor
*/
public function csrfToken($intention)
{
Expand Down
2 changes: 1 addition & 1 deletion 2 src/Symfony/Component/Config/Definition/BaseNode.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ abstract class BaseNode implements NodeInterface
* @param string $name The name of the node
* @param NodeInterface $parent The parent of this node
*
* @throws \InvalidArgumentException if the name contains a period.
* @throws \InvalidArgumentException if the name contains a period
*/
public function __construct($name, NodeInterface $parent = null)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,10 @@ public function addDefaultsIfNotSet()
/**
* Adds children with a default value when none are defined.
*
* @param int|string|array|null $children The number of children|The child name|The children names to be added
*
* This method is applicable to prototype nodes only.
*
* @param int|string|array|null $children the number of children|The child name|The children names to be added
*
* @return $this
*/
public function addDefaultChildrenIfNoneSet($children = null)
Expand Down
2 changes: 1 addition & 1 deletion 2 src/Symfony/Component/Console/Question/Question.php
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ public function getValidator()
*
* @return $this
*
* @throws \InvalidArgumentException In case the number of attempts is invalid.
* @throws \InvalidArgumentException in case the number of attempts is invalid
*/
public function setMaxAttempts($attempts)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

/**
* @deprecated but this is a test
* deprecation notice.
* deprecation notice
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

corresponding assertion needs to be updated

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

* @foobar
*/
class DeprecatedClass
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

/**
* @deprecated but this is a test
* deprecation notice.
* deprecation notice
* @foobar
*/
interface DeprecatedInterface
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public function process(ContainerBuilder $container)
*
* @param ServiceReferenceGraphEdge[] $edges An array of Edges
*
* @throws ServiceCircularReferenceException When a circular reference is found.
* @throws ServiceCircularReferenceException when a circular reference is found
*/
private function checkOutEdges(array $edges)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public function process(ContainerBuilder $container)
*
* @param array $arguments An array of Reference objects
*
* @throws RuntimeException when there is a reference to an abstract definition.
* @throws RuntimeException when there is a reference to an abstract definition
*/
private function validateReferences(array $arguments)
{
Expand Down
2 changes: 1 addition & 1 deletion 2 src/Symfony/Component/DependencyInjection/Definition.php
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ public function setFactoryMethod($factoryMethod)
*
* @return $this
*
* @throws InvalidArgumentException In case the decorated service id and the new decorated service id are equals.
* @throws InvalidArgumentException in case the decorated service id and the new decorated service id are equals
*/
public function setDecoratedService($id, $renamedId = null)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ public function resolve()
*
* @throws ParameterNotFoundException if a placeholder references a parameter that does not exist
* @throws ParameterCircularReferenceException if a circular reference if detected
* @throws RuntimeException when a given parameter has a type problem.
* @throws RuntimeException when a given parameter has a type problem
*/
public function resolveValue($value, array $resolving = array())
{
Expand Down Expand Up @@ -181,7 +181,7 @@ public function resolveValue($value, array $resolving = array())
*
* @throws ParameterNotFoundException if a placeholder references a parameter that does not exist
* @throws ParameterCircularReferenceException if a circular reference if detected
* @throws RuntimeException when a given parameter has a type problem.
* @throws RuntimeException when a given parameter has a type problem
*/
public function resolveString($value, array $resolving = array())
{
Expand Down
2 changes: 1 addition & 1 deletion 2 src/Symfony/Component/DomCrawler/Crawler.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public function clear()
*
* @param \DOMNodeList|\DOMNode|array|string|null $node A node
*
* @throws \InvalidArgumentException When node is not the expected type.
* @throws \InvalidArgumentException when node is not the expected type
*/
public function add($node)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ interface EventDispatcherInterface
* @param string $eventName The name of the event to dispatch. The name of
* the event is the name of the method that is
* invoked on listeners.
* @param Event $event The event to pass to the event handlers/listeners
* If not supplied, an empty Event instance is created.
* @param Event $event the event to pass to the event handlers/listeners
* If not supplied, an empty Event instance is created
*
* @return Event
*/
Expand Down
4 changes: 2 additions & 2 deletions 4 src/Symfony/Component/EventDispatcher/GenericEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public function getSubject()
*
* @return mixed Contents of array key
*
* @throws \InvalidArgumentException If key is not found.
* @throws \InvalidArgumentException if key is not found
*/
public function getArgument($key)
{
Expand Down Expand Up @@ -132,7 +132,7 @@ public function hasArgument($key)
*
* @return mixed
*
* @throws \InvalidArgumentException If key does not exist in $this->args.
* @throws \InvalidArgumentException if key does not exist in $this->args
*/
public function offsetGet($key)
{
Expand Down
2 changes: 1 addition & 1 deletion 2 src/Symfony/Component/Filesystem/Filesystem.php
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,7 @@ public function isAbsolutePath($file)
* @param null|int $mode The file mode (octal). If null, file permissions are not modified
* Deprecated since version 2.3.12, to be removed in 3.0.
*
* @throws IOException If the file cannot be written to.
* @throws IOException if the file cannot be written to
*/
public function dumpFile($filename, $content, $mode = 0666)
{
Expand Down
2 changes: 1 addition & 1 deletion 2 src/Symfony/Component/Finder/Finder.php
Original file line number Diff line number Diff line change
Expand Up @@ -681,7 +681,7 @@ public function getIterator()
*
* @return $this
*
* @throws \InvalidArgumentException When the given argument is not iterable.
* @throws \InvalidArgumentException when the given argument is not iterable
*/
public function append($iterator)
{
Expand Down
16 changes: 8 additions & 8 deletions 16 src/Symfony/Component/Form/AbstractRendererEngine.php
Original file line number Diff line number Diff line change
Expand Up @@ -139,14 +139,14 @@ abstract protected function loadResourceForBlockName($cacheKey, FormView $view,
*
* @see getResourceForBlockHierarchy()
*
* @param string $cacheKey The cache key used for storing the
* resource.
* @param FormView $view The form view for finding the applying
* themes.
* @param array $blockNameHierarchy The block hierarchy, with the most
* specific block name at the end.
* @param int $hierarchyLevel The level in the block hierarchy that
* should be loaded.
* @param string $cacheKey the cache key used for storing the
* resource
* @param FormView $view the form view for finding the applying
* themes
* @param array $blockNameHierarchy the block hierarchy, with the most
* specific block name at the end
* @param int $hierarchyLevel the level in the block hierarchy that
* should be loaded
*
* @return bool True if the resource could be loaded, false otherwise
*/
Expand Down
2 changes: 1 addition & 1 deletion 2 src/Symfony/Component/Form/Button.php
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ public function handleRequest($request = null)
*
* @return $this
*
* @throws Exception\AlreadySubmittedException If the button has already been submitted.
* @throws Exception\AlreadySubmittedException if the button has already been submitted
*/
public function submit($submittedData, $clearMissing = true)
{
Expand Down
2 changes: 1 addition & 1 deletion 2 src/Symfony/Component/Form/ButtonBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class ButtonBuilder implements \IteratorAggregate, FormBuilderInterface
* @param string $name The name of the button
* @param array $options The button's options
*
* @throws InvalidArgumentException If the name is empty.
* @throws InvalidArgumentException if the name is empty
*/
public function __construct($name, array $options = array())
{
Expand Down
4 changes: 2 additions & 2 deletions 4 src/Symfony/Component/Form/ChoiceList/ArrayChoiceList.php
Original file line number Diff line number Diff line change
Expand Up @@ -222,8 +222,8 @@ protected function flatten(array $choices, $value, &$choicesByValues, &$keysByVa
* @param array $choices The choices
* @param array|null $cache The cache for previously checked entries. Internal
*
* @return bool Returns true if the choices can be cast to strings and
* false otherwise.
* @return bool returns true if the choices can be cast to strings and
* false otherwise
*/
private function castableToString(array $choices, array &$cache = array())
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class CachingFactoryDecorator implements ChoiceListFactoryInterface
*
* @return string The SHA-256 hash
*
* @internal Should not be used by user-land code.
* @internal should not be used by user-land code
*/
public static function generateHash($value, $namespace = '')
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ class ChoiceGroupView implements \IteratorAggregate
* Creates a new choice group view.
*
* @param string $label The label of the group
* @param ChoiceGroupView[]|ChoiceView[] $choices The choice views in the
* group.
* @param ChoiceGroupView[]|ChoiceView[] $choices the choice views in the
* group
*/
public function __construct($label, array $choices = array())
{
Expand Down
4 changes: 2 additions & 2 deletions 4 src/Symfony/Component/Form/ChoiceList/View/ChoiceListView.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ class ChoiceListView
* Creates a new choice list view.
*
* @param ChoiceGroupView[]|ChoiceView[] $choices The choice views
* @param ChoiceGroupView[]|ChoiceView[] $preferredChoices The preferred
* choice views.
* @param ChoiceGroupView[]|ChoiceView[] $preferredChoices the preferred
* choice views
*/
public function __construct(array $choices = array(), array $preferredChoices = array())
{
Expand Down
4 changes: 2 additions & 2 deletions 4 src/Symfony/Component/Form/DataMapperInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ interface DataMapperInterface
* @param mixed $data Structured data
* @param FormInterface[]|\Traversable $forms A list of {@link FormInterface} instances
*
* @throws Exception\UnexpectedTypeException if the type of the data parameter is not supported.
* @throws Exception\UnexpectedTypeException if the type of the data parameter is not supported
*/
public function mapDataToForms($data, $forms);

Expand All @@ -32,7 +32,7 @@ public function mapDataToForms($data, $forms);
* @param FormInterface[]|\Traversable $forms A list of {@link FormInterface} instances
* @param mixed $data Structured data
*
* @throws Exception\UnexpectedTypeException if the type of the data parameter is not supported.
* @throws Exception\UnexpectedTypeException if the type of the data parameter is not supported
*/
public function mapFormsToData($forms, &$data);
}
4 changes: 2 additions & 2 deletions 4 src/Symfony/Component/Form/DataTransformerInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ interface DataTransformerInterface
*
* @return mixed The value in the transformed representation
*
* @throws TransformationFailedException When the transformation fails.
* @throws TransformationFailedException when the transformation fails
*/
public function transform($value);

Expand All @@ -71,7 +71,7 @@ public function transform($value);
*
* @return mixed The value in the original representation
*
* @throws TransformationFailedException When the transformation fails.
* @throws TransformationFailedException when the transformation fails
*/
public function reverseTransform($value);
}
Loading
Morty Proxy This is a proxified and sanitized view of the page, visit original site.