Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixed CS

  • Loading branch information...
commit 737187dbdc4d141217f2396d4ebb2e048fe25005 1 parent 2ed8e0a
Fabien Potencier fabpot authored
1  Extension/Core/DataTransformer/DateTimeToRfc3339Transformer.php
View
@@ -53,7 +53,6 @@ public function reverseTransform($rfc3339)
return null;
}
-
$dateTime = new \DateTime($rfc3339);
if ($this->outputTimezone !== $this->inputTimezone) {
2  Extension/Core/Type/FileType.php
View
@@ -46,7 +46,7 @@ public function setDefaultOptions(OptionsResolverInterface $resolver)
{
$resolver->setDefaults(array(
'compound' => false,
- 'data_class' => 'Symfony\Component\HttpFoundation\File\File'
+ 'data_class' => 'Symfony\Component\HttpFoundation\File\File'
));
}
2  Guess/Guess.php
View
@@ -90,7 +90,7 @@ public static function getBestGuess(array $guesses)
*/
public function __construct($confidence)
{
- if (self::VERY_HIGH_CONFIDENCE !== $confidence && self::HIGH_CONFIDENCE !== $confidence &&
+ if (self::VERY_HIGH_CONFIDENCE !== $confidence && self::HIGH_CONFIDENCE !== $confidence &&
self::MEDIUM_CONFIDENCE !== $confidence && self::LOW_CONFIDENCE !== $confidence) {
throw new \InvalidArgumentException('The confidence should be one of the constants defined in Guess.');
}
1  Tests/Extension/Core/DataTransformer/DateTimeTestCase.php
View
@@ -18,4 +18,3 @@ public static function assertDateTimeEquals(\DateTime $expected, \DateTime $actu
self::assertEquals($expected->format('c'), $actual->format('c'));
}
}
-
2  Tests/Extension/Validator/ViolationMapper/ViolationMapperTest.php
View
@@ -227,7 +227,6 @@ public function provideDefaultTests()
{
// The mapping must be deterministic! If a child has the property path "[street]",
// "data[street]" should be mapped, but "data.street" should not!
-
return array(
// mapping target, child name, its property path, grand child name, its property path, violation path
array(self::LEVEL_0, 'address', 'address', 'street', 'street', ''),
@@ -1260,7 +1259,6 @@ public function provideCustomFormErrorTests()
// 1) the error actually maps to an existing child and
// 2) the property path of that child (relative to the form providing
// the mapping) matches the left side of the mapping
-
return array(
// mapping target, map from, map to, child name, its property path, grand child name, its property path, violation path
array(self::LEVEL_1, 'foo', 'address', 'foo', 'foo', 'address', 'address', 'street', 'street', 'children[foo].children[street].data'),
Please sign in to comment.
Something went wrong with that request. Please try again.