8000 fixed CS · symfony/symfony@7f3be5c · GitHub
[go: up one dir, main page]

Skip to content

Commit 7f3be5c

Browse files
committed
fixed CS
1 parent d2885ad commit 7f3be5c

File tree

20 files changed

+23
-31
lines changed

20 files changed

+23
-31
lines changed

src/Symfony/Bridge/Doctrine/Tests/Form/DoctrineOrmTypeGuesserTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,4 +86,4 @@ private function getGuesser(ClassMetadata $classMetadata)
8686
return new DoctrineOrmTypeGuesser($registry);
8787
}
8888

89-
}
89+
}

src/Symfony/Bridge/Doctrine/Tests/Logger/DbalLoggerTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
namespace Symfony\Bridge\Doctrine\Tests\Logger;
1313

14-
1514
class DbalLoggerTest extends \PHPUnit_Framework_TestCase
1615
{
1716
/**

src/Symfony/Component/Config/Definition/Builder/EnumNodeDefinition.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public function values(array $values)
2323
}
2424

2525
$this->values = $values;
26-
26+
2727
return $this;
2828
}
2929

@@ -40,4 +40,4 @@ protected function instantiateNode()
4040

4141
return new EnumNode($this->name, $this->parent, $this->values);
4242
}
43-
}
43+
}

src/Symfony/Component/Console/Tests/ApplicationTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,6 @@ public function testFindAlternativeExceptionMessage()
239239
$this->assertRegExp('/Did you mean this/', $e->getMessage(), '->find() thro 741A ws an \InvalidArgumentException if command does not exist, with one alternative');
240240
}
241241

242-
243242
$application->add(new \Foo1Command());
244243
$application->add(new \Foo2Command());
245244

src/Symfony/Component/Console/Tests/Formatter/OutputFormatterTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
1312
namespace Symfony\Component\Console\Tests\Formatter;
1413

1514
use Symfony\Component\Console\Formatter\OutputFormatter;

src/Symfony/Component/Filesystem/Filesystem.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -360,17 +360,17 @@ public function mirror($originDir, $targetDir, \Traversable $iterator = null, $o
360360
if ($copyOnWindows) {
361361
if (is_link($file) || is_file($file)) {
362362
$this->copy($file, $target, isset($options['override']) ? $options['override'] : false);
363-
} else if (is_dir($file)) {
363+
} elseif (is_dir($file)) {
364364
$this->mkdir($target);
365365
} else {
366366
throw new IOException(sprintf('Unable to guess "%s" file type.', $file));
367367
}
368368
} else {
369369
if (is_link($file)) {
370370
$this->symlink($file, $target);
371-
} else if (is_dir($file)) {
371+
} elseif (is_dir($file)) {
372372
$this->mkdir($target);
373-
} else if (is_file($file)) {
373+
} elseif (is_file($file)) {
374374
$this->copy($file, $target, isset($options['override']) ? $options['override'] : false);
375375
} else {
376376
throw new IOException(sprintf('Unable to guess "%s" file type.', $file));

src/Symfony/Component/Form/Extension/Core/DataTransformer/DateTimeToRfc3339Transformer.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ public function reverseTransform($rfc3339)
5353
return null;
5454
}
5555

56-
5756
$dateTime = new \DateTime($rfc3339);
5857

5958
if ($this->outputTimezone !== $this->inputTimezone) {

src/Symfony/Component/Form/Extension/Core/Type/FileType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public function setDefaultOptions(OptionsResolverInterface $resolver)
4646
{
4747
$resolver->setDefaults(array(
4848
'compound' => false,
49-
'data_class' => 'Symfony\Component\HttpFoundation\File\File'
49+
'data_class' => 'Symfony\Component\HttpFoundation\File\File'
5050
));
5151
}
5252

src/Symfony/Component/Form/Guess/Guess.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ public static function getBestGuess(array $guesses)
9090
*/
9191
public function __construct($confidence)
9292
{
93-
if (self::VERY_HIGH_CONFIDENCE !== $confidence && self::HIGH_CONFIDENCE !== $confidence &&
93+
if (self::VERY_HIGH_CONFIDENCE !== $confidence && self::HIGH_CONFIDENCE !== $confidence &&
9494
self::MEDIUM_CONFIDENCE !== $confidence && self::LOW_CONFIDENCE !== $confidence) {
9595
throw new \InvalidArgumentException('The confidence should be one of the constants defined in Guess.');
9696
}

src/Symfony/Component/Form/Tests/Extension/Core/DataTransformer/DateTimeTestCase.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,3 @@ public static function assertDateTimeEquals(\DateTime $expected, \DateTime $actu
1818
self::assertEquals($expected->format('c'), $actual->format('c'));
1919
}
2020
}
21-

0 commit comments

Comments
 (0)
0