Skip to content

Commit 8f51500

Browse files
committed
Merge branch '2.5' into 2.6
* 2.5: CS fixes [2.3] More cs fixes Removed unused imports CS fixes bumped Symfony version to 2.5.9 updated VERSION for 2.5.8 update CONTRIBUTORS for 2.5.8 updated CHANGELOG for 2.5.8 bumped Symfony version to 2.3.24 updated VERSION for 2.3.23 update CONTRIBUTORS for 2.3.23 updated CHANGELOG for 2.3.23 Conflicts: src/Symfony/Component/Console/Helper/ProgressBar.php src/Symfony/Component/Debug/ErrorHandler.php src/Symfony/Component/HttpKernel/Kernel.php src/Symfony/Component/Security/Http/HttpUtils.php src/Symfony/Component/Validator/Mapping/Factory/LazyLoadingMetadataFactory.php
2 parents 4583e03 + d7be1a9 commit 8f51500

11 files changed

+63
-63
lines changed

ConstraintValidator.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@ protected function buildViolation($message, array $parameters = array())
7777
* supports the 2.4 context API.
7878
*
7979
* @param ExecutionContextInterface $context The context to use
80-
* @param string $message The violation message
81-
* @param array $parameters The message parameters
80+
* @param string $message The violation message
81+
* @param array $parameters The message parameters
8282
*
8383
* @return ConstraintViolationBuilderInterface The violation builder
8484
*
@@ -126,9 +126,9 @@ protected function formatTypeOf($value)
126126
* won't know what an "object", "array" or "resource" is and will be
127127
* confused by the violation message.
128128
*
129-
* @param mixed $value The value to format as string
130-
* @param int $format A bitwise combination of the format
131-
* constants in this class
129+
* @param mixed $value The value to format as string
130+
* @param int $format A bitwise combination of the format
131+
* constants in this class
132132
*
133133
* @return string The string representation of the passed value
134134
*/
@@ -197,9 +197,9 @@ protected function formatValue($value, $format = 0)
197197
* Each of the values is converted to a string using
198198
* {@link formatValue()}. The values are then concatenated with commas.
199199
*
200-
* @param array $values A list of values
201-
* @param int $format A bitwise combination of the format
202-
* constants in this class
200+
* @param array $values A list of values
201+
* @param int $format A bitwise combination of the format
202+
* constants in this class
203203
*
204204
* @return string The string representation of the value list
205205
*

Constraints/GroupSequence.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -110,9 +110,9 @@ public function getIterator()
110110
/**
111111
* Returns whether the given offset exists in the sequence.
112112
*
113-
* @param int $offset The offset
113+
* @param int $offset The offset
114114
*
115-
* @return bool Whether the offset exists
115+
* @return bool Whether the offset exists
116116
*
117117
* @deprecated Implemented for backwards compatibility with Symfony < 2.5.
118118
* To be removed in Symfony 3.0.
@@ -125,7 +125,7 @@ public function offsetExists($offset)
125125
/**
126126
* Returns the group at the given offset.
127127
*
128-
* @param int $offset The offset
128+
* @param int $offset The offset
129129
*
130130
* @return string The group a the given offset
131131
*
@@ -149,8 +149,8 @@ public function offsetGet($offset)
149149
/**
150150
* Sets the group at the given offset.
151151
*
152-
* @param int $offset The offset
153-
* @param string $value The group name
152+
* @param int $offset The offset
153+
* @param string $value The group name
154154
*
155155
* @deprecated Implemented for backwards compatibility with Symfony < 2.5.
156156
* To be removed in Symfony 3.0.
@@ -169,7 +169,7 @@ public function offsetSet($offset, $value)
169169
/**
170170
* Removes the group at the given offset.
171171
*
172-
* @param int $offset The offset
172+
* @param int $offset The offset
173173
*
174174
* @deprecated Implemented for backwards compatibility with Symfony < 2.5.
175175
* To be removed in Symfony 3.0.
@@ -182,7 +182,7 @@ public function offsetUnset($offset)
182182
/**
183183
* Returns the number of groups in the sequence.
184184
*
185-
* @return int The number of groups
185+
* @return int The number of groups
186186
*
187187
* @deprecated Implemented for backwards compatibility with Symfony < 2.5.
188188
* To be removed in Symfony 3.0.

Context/ExecutionContext.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -131,13 +131,13 @@ class ExecutionContext implements ExecutionContextInterface
131131
/**
132132
* Creates a new execution context.
133133
*
134-
* @param ValidatorInterface $validator The validator
135-
* @param mixed $root The root value of the
136-
* validated object graph
137-
* @param TranslatorInterface $translator The translator
138-
* @param string|null $translationDomain The translation domain to
139-
* use for translating
140-
* violation messages
134+
* @param ValidatorInterface $validator The validator
135+
* @param mixed $root The root value of the
136+
* validated object graph
137+
* @param TranslatorInterface $translator The translator
138+
* @param string|null $translationDomain The translation domain to
139+
* use for translating
140+
* violation messages
141141
*
142142
* @internal Called by {@link ExecutionContextFactory}. Should not be used
143143
* in user code.

Context/ExecutionContextFactory.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@ class ExecutionContextFactory implements ExecutionContextFactoryInterface
3838
/**
3939
* Creates a new context factory.
4040
*
41-
* @param TranslatorInterface $translator The translator
42-
* @param string|null $translationDomain The translation domain to
43-
* use for translating
44-
* violation messages
41+
* @param TranslatorInterface $translator The translator
42+
* @param string|null $translationDomain The translation domain to
43+
* use for translating
44+
* violation messages
4545
*/
4646
public function __construct(TranslatorInterface $translator, $translationDomain = null)
4747
{

Context/ExecutionContextInterface.php

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -150,9 +150,9 @@ public function setConstraint(Constraint $constraint);
150150
/**
151151
* Marks an object as validated in a specific validation group.
152152
*
153-
* @param string $cacheKey The hash of the object
154-
* @param string $groupHash The group's name or hash, if it is group
155-
* sequence
153+
* @param string $cacheKey The hash of the object
154+
* @param string $groupHash The group's name or hash, if it is group
155+
* sequence
156156
*
157157
* @internal Used by the validator engine. Should not be called by user
158158
* code.
@@ -162,12 +162,12 @@ public function markGroupAsValidated($cacheKey, $groupHash);
162162
/**
163163
* Returns whether an object was validated in a specific validation group.
164164
*
165-
* @param string $cacheKey The hash of the object
166-
* @param string $groupHash The group's name or hash, if it is group
167-
* sequence
165+
* @param string $cacheKey The hash of the object
166+
* @param string $groupHash The group's name or hash, if it is group
167+
* sequence
168168
*
169-
* @return bool Whether the object was already validated for that
170-
* group
169+
* @return bool Whether the object was already validated for that
170+
* group
171171
*
172172
* @internal Used by the validator engine. Should not be called by user
173173
* code.
@@ -177,7 +177,7 @@ public function isGroupValidated($cacheKey, $groupHash);
177177
/**
178178
* Marks a constraint as validated for an object.
179179
*
180-
* @param string $cacheKey The hash of the object
180+
* @param string $cacheKey The hash of the object
181181
* @param string $constraintHash The hash of the constraint
182182
*
183183
* @internal Used by the validator engine. Should not be called by user
@@ -188,10 +188,10 @@ public function markConstraintAsValidated($cacheKey, $constraintHash);
188188
/**
189189
* Returns whether a constraint was validated for an object.
190190
*
191-
* @param string $cacheKey The hash of the object
191+
* @param string $cacheKey The hash of the object
192192
* @param string $constraintHash The hash of the constraint
193193
*
194-
* @return bool Whether the constraint was already validated
194+
* @return bool Whether the constraint was already validated
195195
*
196196
* @internal Used by the validator engine. Should not be called by user
197197
* code.

Mapping/ClassMetadataInterface.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public function getConstrainedProperties();
4646
*
4747
* If it is, you can access the group sequence with {@link getGroupSequence()}.
4848
*
49-
* @return bool Returns true if the "Default" group is overridden
49+
* @return bool Returns true if the "Default" group is overridden
5050
*
5151
* @see \Symfony\Component\Validator\Constraints\GroupSequence
5252
*/
@@ -71,8 +71,8 @@ public function getGroupSequence();
7171
* This interface will be used to obtain the group sequence when an object
7272
* of this class is validated.
7373
*
74-
* @return bool Returns true if the "Default" group is overridden by
75-
* a dynamic group sequence
74+
* @return bool Returns true if the "Default" group is overridden by
75+
* a dynamic group sequence
7676
*
7777
* @see \Symfony\Component\Validator\GroupSequenceProviderInterface
7878
*/

Mapping/MetadataInterface.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ interface MetadataInterface extends LegacyMetadataInterface
3434
/**
3535
* Returns the strategy for cascading objects.
3636
*
37-
* @return int The cascading strategy
37+
* @return int The cascading strategy
3838
*
3939
* @see CascadingStrategy
4040
*/
@@ -43,7 +43,7 @@ public function getCascadingStrategy();
4343
/**
4444
* Returns the strategy for traversing traversable objects.
4545
*
46-
* @return int The traversal strategy
46+
* @return int The traversal strategy
4747
*
4848
* @see TraversalStrategy
4949
*/

Tests/Constraints/ChoiceValidatorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ public function testValidChoiceCallbackClosure()
9595
{
9696
$constraint = new Choice(array('callback' => function () {
9797
return array('foo', 'bar');
98-
}, ));
98+
}));
9999

100100
$this->validator->validate('bar', $constraint);
101101

Validator/RecursiveContextualValidator.php

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -313,17 +313,17 @@ protected function normalizeGroups($groups)
313313
* traversal, the object will be iterated and each nested object will be
314314
* validated instead.
315315
*
316-
* @param object $object The object to cascade
317-
* @param string $propertyPath The current property path
318-
* @param string[] $groups The validated groups
319-
* @param int $traversalStrategy The strategy for traversing the
320-
* cascaded object
321-
* @param ExecutionContextInterface $context The current execution context
316+
* @param object $object The object to cascade
317+
* @param string $propertyPath The current property path
318+
* @param string[] $groups The validated groups
319+
* @param int $traversalStrategy The strategy for traversing the
320+
* cascaded object
321+
* @param ExecutionContextInterface $context The current execution context
322322
*
323-
* @throws NoSuchMetadataException If the object has no associated metadata
324-
* and does not implement {@link \Traversable}
325-
* or if traversal is disabled via the
326-
* $traversalStrategy argument
323+
* @throws NoSuchMetadataException If the object has no associated metadata
324+
* and does not implement {@link \Traversable}
325+
* or if traversal is disabled via the
326+
* $traversalStrategy argument
327327
* @throws UnsupportedMetadataException If the metadata returned by the
328328
* metadata factory does not implement
329329
* {@link ClassMetadataInterface}
@@ -384,11 +384,11 @@ private function validateObject($object, $propertyPath, array $groups, $traversa
384384
* @param array|\Traversable $collection The collection
385385
* @param string $propertyPath The current property path
386386
* @param string[] $groups The validated groups
387-
* @param bool $stopRecursion Whether to disable
387+
* @param bool $stopRecursion Whether to disable
388388
* recursive iteration. For
389389
* backwards compatibility
390390
* with Symfony < 2.5.
391-
* @param ExecutionContextInterface $context The current execution context
391+
* @param ExecutionContextInterface $context The current execution context
392392
*
393393
* @see ClassNode
394394
* @see CollectionNode
@@ -832,12 +832,12 @@ private function stepThroughGroupSequence($value, $object, $cacheKey, MetadataIn
832832
/**
833833
* Validates a node's value against all constraints in the given group.
834834
*
835-
* @param mixed $value The validated value
836-
* @param string $cacheKey The key for caching the
837-
* validated value
838-
* @param MetadataInterface $metadata The metadata of the value
839-
* @param string $group The group to validate
840-
* @param ExecutionContextInterface $context The execution context
835+
* @param mixed $value The validated value
836+
* @param string $cacheKey The key for caching the
837+
* validated value
838+
* @param MetadataInterface $metadata The metadata of the value
839+
* @param string $group The group to validate
840+
* @param ExecutionContextInterface $context The execution context
841841
*/
842842
private function validateInGroup($value, $cacheKey, MetadataInterface $metadata, $group, ExecutionContextInterface $context)
843843
{

ValidatorBuilderInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ public function setPropertyAccessor(PropertyAccessorInterface $propertyAccessor)
174174
/**
175175
* Sets the API version that the returned validator should support.
176176
*
177-
* @param int $apiVersion The required API version
177+
* @param int $apiVersion The required API version
178178
*
179179
* @return ValidatorBuilderInterface The builder object
180180
*

Violation/ConstraintViolationBuilderInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public function setInvalidValue($invalidValue);
8282
* Sets the number which determines how the plural form of the violation
8383
* message is chosen when it is translated.
8484
*
85-
* @param int $number The number for determining the plural form
85+
* @param int $number The number for determining the plural form
8686
*
8787
* @return ConstraintViolationBuilderInterface This builder
8888
*

0 commit comments

Comments
 (0)