8000 minor #17354 [2.3] Remove empty statements. (SpacePossum) · enumag/symfony@c8c9477 · GitHub
[go: up one dir, main page]

Skip to content

Commit c8c9477

Browse files
committed
minor symfony#17354 [2.3] Remove empty statements. (SpacePossum)
This PR was merged into the 2.3 branch. Discussion ---------- [2.3] Remove empty statements. | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | License | MIT Test run for new fixer to see if it would be suitable for SF. For ref.: PHP-CS-Fixer/PHP-CS-Fixer#1671 Commits ------- 4491c97 Remove empty statements.
2 parents 26af0ae + 4491c97 commit c8c9477

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

src/Symfony/Bundle/SecurityBundle/Tests/Functional/Bundle/FormLoginBundle/DependencyInjection/FormLoginExtension.php

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

1414
use Symfony\Component\DependencyInjection\Reference;
1515
use Symfony\Component\DependencyInjection\ContainerBuilder;
16-
use Symfony\Component\DependencyInjection\Extension\Extension;;
16+
use Symfony\Component\DependencyInjection\Extension\Extension;
1717

1818
class FormLoginExtension extends Extension
1919
{

src/Symfony/Bundle/WebProfilerBundle/DependencyInjection/WebProfilerExtension.php

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

1212
namespace Symfony\Bundle\WebProfilerBundle\DependencyInjection;
1313

14-
use Symfony\Component\DependencyInjection\Extension\Extension;;
14+
use Symfony\Component\DependencyInjection\Extension\Extension;
1515
use Symfony\Component\DependencyInjection\Loader\XmlFileLoader;
1616
use Symfony\Component\DependencyInjection\ContainerBuilder;
1717
use Symfony\Component\Config\FileLocator;

src/Symfony/Component/Finder/Tests/Iterator/MockSplFileInfo.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public function isFile()
5252
{
5353
if (null === $this->type) {
5454
return false !== strpos($this->getFilename(), 'file');
55-
};
55+
}
5656

5757
return self::TYPE_FILE === $this->type;
5858
}

src/Symfony/Component/HttpKernel/Tests/Debug/TraceableEventDispatcherTest.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public function testAddRemoveListener()
2727
$dispatcher = new EventDispatcher();
2828
$tdispatcher = new TraceableEventDispatcher($dispatcher, new Stopwatch());
2929

30-
$tdispatcher->addListener('foo', $listener = function () {; });
30+
$tdispatcher->addListener('foo', $listener = function () { });
3131
$listeners = $dispatcher->getListeners('foo');
3232
$this->assertCount(1, $listeners);
3333
$this->assertSame($listener, $listeners[0]);
@@ -41,7 +41,7 @@ public function testGetListeners()
4141
$dispatcher = new EventDispatcher();
4242
$tdispatcher = new TraceableEventDispatcher($dispatcher, new Stopwatch());
4343

44-
$tdispatcher->addListener('foo', $listener = function () {; });
44+
$tdispatcher->addListener('foo', $listener = function () { });
4545
$this->assertSame($dispatcher->getListeners('foo'), $tdispatcher->getListeners('foo'));
4646
}
4747

@@ -53,7 +53,7 @@ public function testHasListeners()
5353
$this->assertFalse($dispatcher->hasListeners('foo'));
5454
$this->assertFalse($tdispatcher->hasListeners('foo'));
5555

56-
$tdispatcher->addListener('foo', $listener = function () {; });
56+
$tdispatcher->addListener('foo', $listener = function () { });
5757
$this->assertTrue($dispatcher->hasListeners('foo'));
5858
$this->assertTrue($tdispatcher->hasListeners('foo'));
5959
}
@@ -78,7 +78,7 @@ public function testGetCalledListeners()
7878
{
7979
$dispatcher = new EventDispatcher();
8080
$tdispatcher = new TraceableEventDispatcher($dispatcher, new Stopwatch());
81-
$tdispatcher->addListener('foo', $listener = function () {; });
81+
$tdispatcher->addListener('foo', $listener = function () { });
8282

8383
$this->assertEquals(array(), $tdispatcher->getCalledListeners());
8484
$this->assertEquals(array('foo.closure' => array('event' => 'foo', 'type' => 'Closure', 'pretty' => 'closure')), $tdispatcher->getNotCalledListeners());
@@ -95,8 +95,8 @@ public function testLogger()
9595

9696
$dispatcher = new EventDispatcher();
9797
$tdispatcher = new TraceableEventDispatcher($dispatcher, new Stopwatch(), $logger);
98-
$tdispatcher->addListener('foo', $listener1 = function () {; });
99-
$tdispatcher->addListener('foo', $listener2 = function () {; });
98+
$tdispatcher->addListener('foo', $listener1 = function () { });
99+
$tdispatcher->addListener('foo', $listener2 = function () { });
100100

101101
$logger->expects($this->at(0))->method('debug')->with('Notified event "foo" to listener "closure".');
102102
$logger->expects($this->at(1))->method('debug')->with('Notified event "foo" to listener "closure".');
@@ -111,7 +111,7 @@ public function testLoggerWithStoppedEvent()
111111
$dispatcher = new EventDispatcher();
112112
$tdispatcher = new TraceableEventDispatcher($dispatcher, new Stopwatch(), $logger);
113113
$tdispatcher->addListener('foo', $listener1 = function (Event $event) { $event->stopPropagation(); });
114-
$tdispatcher->addListener('foo', $listener2 = function () {; });
114+
$tdispatcher->addListener('foo', $listener2 = function () { });
115115

116116
$logger->expects($this->at(0))->method('debug')->with('Notified event "foo" to listener "closure".');
117117
$logger->expects($this->at(1))->method('debug')->with('Listener "closure" stopped propagation of the event "foo".');

0 commit comments

Comments
 (0)
0