Skip to content

Commit 72e854e

Browse files
committed
fixed CS
1 parent 0a585b7 commit 72e854e

File tree

14 files changed

+89
-91
lines changed

14 files changed

+89
-91
lines changed

src/Symfony/Bridge/Doctrine/Form/ChoiceList/EntityChoiceList.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@ public function getChoicesForValues(array $values)
178178
if (empty($values)) {
179179
return array();
180180
}
181+
181182
return $this->entityLoader->getEntitiesByIds(current($this->identifier), $values);
182183
}
183184

src/Symfony/Bridge/Doctrine/Tests/Form/ChoiceList/EntityChoiceListTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ public function testPossibleToProvideShorthandEntityName()
251251
$this->assertEquals(array(1, 2), $choiceList->getValuesForChoices(array($item1, $item2)));
252252
$this->assertEquals(array(1, 2), $choiceList->getIndicesForChoices(array($item1, $item2)));
253253
}
254-
254+
255255
// Ticket #3446
256256
public function testGetEmptyArrayChoicesForEmptyValues()
257257
{
@@ -263,7 +263,7 @@ public function testGetEmptyArrayChoicesForEmptyValues()
263263
null,
264264
$entityLoader
265265
);
266-
266+
267267
$this->assertEquals(array(), $choiceList->getChoicesForValues(array()));
268268
}
269269
}

src/Symfony/Bridge/Twig/TwigEngine.php

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

1212
namespace Symfony\Bridge\Twig;
1313

14-
use Symfony\Component\HttpFoundation\Response;
1514
use Symfony\Component\Templating\EngineInterface;
1615
use Symfony\Component\Templating\StreamingEngineInterface;
1716
use Symfony\Component\Templating\TemplateNameParserInterface;

src/Symfony/Component/ClassLoader/ApcClassLoader.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ public function loadClass($class)
9494
{
9595
if ($file = $this->findFile($class)) {
9696
require $file;
97+
9798
return true;
9899
}
99100
}

src/Symfony/Component/ClassLoader/ClassLoader.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ public function addPrefix($prefix, $paths)
7272
foreach ((array) $paths as $path) {
7373
$this->fallbackDirs[] = $path;
7474
}
75+
7576
return;
7677
}
7778
if (isset($this->prefixes[$prefix])) {
@@ -133,6 +134,7 @@ public function loadClass($class)
133134
{
134135
if ($file = $this->findFile($class)) {
135136
require $file;
137+
136138
return true;
137139
}
138140
}

src/Symfony/Component/Form/Tests/Extension/Core/Type/FieldTypeTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
use Symfony\Component\Form\Form;
1616
use Symfony\Component\Form\Tests\Fixtures\Author;
1717
use Symfony\Component\Form\Tests\Fixtures\FixedDataTransformer;
18-
use Symfony\Component\Form\Tests\Fixtures\FixedFilterListener;
1918

2019
class FieldTypeTest extends TypeTestCase
2120
{

src/Symfony/Component/HttpFoundation/Session/Session.php

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

1212
namespace Symfony\Component\HttpFoundation\Session;
1313

14-
use Symfony\Component\HttpFoundation\Session\Storage\MetadataBag;
1514
use Symfony\Component\HttpFoundation\Session\Storage\SessionStorageInterface;
1615
use Symfony\Component\HttpFoundation\Session\Attribute\AttributeBag;
1716
use Symfony\Component\HttpFoundation\Session\Attribute\AttributeBagInterface;

src/Symfony/Component/HttpKernel/DependencyInjection/ConfigurableExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,4 @@ public final function load(array $configs, ContainerBuilder $container)
4242
* @param ContainerBuilder $container
4343
*/
4444
abstract protected function loadInternal(array $mergedConfig, ContainerBuilder $container);
45-
}
45+
}

src/Symfony/Component/HttpKernel/Tests/DataCollector/EventDataCollectorTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
use Symfony\Component\HttpKernel\DataCollector\EventDataCollector;
1515
use Symfony\Component\HttpFoundation\Request;
1616
use Symfony\Component\HttpFoundation\Response;
17-
use Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcherInterface;
1817
use Symfony\Component\EventDispatcher\EventDispatcher;
1918
use Symfony\Component\HttpKernel\Tests\Fixtures\TestEventDispatcher;
2019

src/Symfony/Component/HttpKernel/Tests/KernelTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
use Symfony\Component\HttpKernel\HttpKernelInterface;
1818
use Symfony\Component\HttpFoundation\Request;
1919
use Symfony\Component\HttpFoundation\Response;
20-
use Symfony\Component\Config\Loader\LoaderInterface;
2120
use Symfony\Component\HttpKernel\Tests\Fixtures\KernelForTest;
2221
use Symfony\Component\HttpKernel\Tests\Fixtures\FooBarBundle;
2322

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
<?php
2-
3-
/*
4-
* This file is part of the Symfony package.
5-
*
6-
* (c) Fabien Potencier <[email protected]>
7-
*
8-
* For the full copyright and license information, please view the LICENSE
9-
* file that was distributed with this source code.
10-
*/
11-
12-
namespace Symfony\Component\Process\Exception;
13-
14-
/**
15-
* Marker Interface for the Process Component.
16-
*
17-
* @author Johannes M. Schmitt <[email protected]>
18-
*/
19-
interface ExceptionInterface
20-
{
21-
}
1+
<?php
2+
3+
/*
4+
* This file is part of the Symfony package.
5+
*
6+
* (c) Fabien Potencier <[email protected]>
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
12+
namespace Symfony\Component\Process\Exception;
13+
14+
/**
15+
* Marker Interface for the Process Component.
16+
*
17+
* @author Johannes M. Schmitt <[email protected]>
18+
*/
19+
interface ExceptionInterface
20+
{
21+
}
Lines changed: 40 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,40 @@
1-
<?php
2-
3-
/*
4-
* This file is part of the Symfony package.
5-
*
6-
* (c) Fabien Potencier <[email protected]>
7-
*
8-
* For the full copyright and license information, please view the LICENSE
9-
* file that was distributed with this source code.
10-
*/
11-
12-
namespace Symfony\Component\Process\Exception;
13-
14-
use Symfony\Component\Process\Process;
15-
16-
/**
17-
* Exception for failed processes.
18-
*
19-
* @author Johannes M. Schmitt <[email protected]>
20-
*/
21-
class ProcessFailedException extends RuntimeException
22-
{
23-
private $process;
24-
25-
public function __construct(Process $process)
26-
{
27-
if ($process->isSuccessful()) {
28-
throw new \InvalidArgumentException('Expected a failed process, but the given process was successful.');
29-
}
30-
31-
parent::__construct(sprintf('The command "%s" failed.'."\n\nOutput:\n================\n".$process->getOutput()."\n\nError Output:\n================\n".$process->getErrorOutput()));
32-
33-
$this->process = $process;
34-
}
35-
36-
public function getProcess()
37-
{
38-
return $this->process;
39-
}
40-
}
1+
<?php
2+
3+
/*
4+
* This file is part of the Symfony package.
5+
*
6+
* (c) Fabien Potencier <[email protected]>
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
12+
namespace Symfony\Component\Process\Exception;
13+
14+
use Symfony\Component\Process\Process;
15+
16+
/**
17+
* Exception for failed processes.
18+
*
19+
* @author Johannes M. Schmitt <[email protected]>
20+
*/
21+
class ProcessFailedException extends RuntimeException
22+
{
23+
private $process;
24+
25+
public function __construct(Process $process)
26+
{
27+
if ($process->isSuccessful()) {
28+
throw new \InvalidArgumentException('Expected a failed process, but the given process was successful.');
29+
}
30+
31+
parent::__construct(sprintf('The command "%s" failed.'."\n\nOutput:\n================\n".$process->getOutput()."\n\nError Output:\n================\n".$process->getErrorOutput()));
32+
33+
$this->process = $process;
34+
}
35+
36+
public function getProcess()
37+
{
38+
return $this->process;
39+
}
40+
}
Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
<?php
2-
3-
/*
4-
* This file is part of the Symfony package.
5-
*
6-
* (c) Fabien Potencier <[email protected]>
7-
*
8-
* For the full copyright and license information, please view the LICENSE
9-
* file that was distributed with this source code.
10-
*/
11-
12-
namespace Symfony\Component\Process\Exception;
13-
14-
/**
15-
* RuntimeException for the Process Component.
16-
*
17-
* @author Johannes M. Schmitt <[email protected]>
18-
*/
19-
class RuntimeException extends \RuntimeException implements ExceptionInterface
20-
{
21-
}
1+
<?php
2+
3+
/*
4+
* This file is part of the Symfony package.
5+
*
6+
* (c) Fabien Potencier <[email protected]>
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
12+
namespace Symfony\Component\Process\Exception;
13+
14+
/**
15+
* RuntimeException for the Process Component.
16+
*
17+
* @author Johannes M. Schmitt <[email protected]>
18+
*/
19+
class RuntimeException extends \RuntimeException implements ExceptionInterface
20+
{
21+
}

src/Symfony/Component/Validator/Tests/Mapping/ClassMetadataFactoryTest.php

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

1414
use Symfony\Component\Validator\Tests\Fixtures\Entity;
1515
use Symfony\Component\Validator\Tests\Fixtures\ConstraintA;
16-
use Symfony\Component\Validator\Tests\Fixtures\ConstraintB;
1716
use Symfony\Component\Validator\Mapping\ClassMetadataFactory;
1817
use Symfony\Component\Validator\Mapping\ClassMetadata;
1918
use Symfony\Component\Validator\Mapping\Loader\LoaderInterface;

0 commit comments

Comments
 (0)