Skip to content

Commit a23330b

Browse files
committed
fixed CS
1 parent ae3d88c commit a23330b

File tree

11 files changed

+16
-18
lines changed

11 files changed

+16
-18
lines changed

src/Symfony/Bundle/FrameworkBundle/Command/AssetsInstallCommand.php

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

1212
namespace Symfony\Bundle\FrameworkBundle\Command;
1313

14-
use Symfony\Component\Console\Helper\Table;
1514
use Symfony\Component\Console\Input\InputArgument;
1615
use Symfony\Component\Console\Input\InputInterface;
1716
use Symfony\Component\Console\Input\InputOption;

src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Resources/views/translation.html.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,18 +32,18 @@
3232
array('%count%' => 10)
3333
) ?>
3434

35-
<?php echo $view['translator']->trans('other-domain-test-no-params-short-array', [], 'not_messages'); ?>
35+
<?php echo $view['translator']->trans('other-domain-test-no-params-short-array', array(), 'not_messages'); ?>
3636

3737
<?php echo $view['translator']->trans('other-domain-test-no-params-long-array', array(), 'not_messages'); ?>
3838

39-
<?php echo $view['translator']->trans('other-domain-test-params-short-array', ['foo' => 'bar'], 'not_messages'); ?>
39+
<?php echo $view['translator']->trans('other-domain-test-params-short-array', array('foo' => 'bar'), 'not_messages'); ?>
4040

4141
<?php echo $view['translator']->trans('other-domain-test-params-long-array', array('foo' => 'bar'), 'not_messages'); ?>
4242

43-
<?php echo $view['translator']->transChoice('other-domain-test-trans-choice-short-array-%count%', 10, ['%count%' => 10], 'not_messages'); ?>
43+
<?php echo $view['translator']->transChoice('other-domain-test-trans-choice-short-array-%count%', 10, array('%count%' => 10), 'not_messages'); ?>
4444

4545
<?php echo $view['translator']->transChoice('other-domain-test-trans-choice-long-array-%count%', 10, array('%count%' => 10), 'not_messages'); ?>
4646

47-
<?php echo $view['translator']->trans('typecast', ['a' => (int) '123'], 'not_messages'); ?>
48-
<?php echo $view['translator']->transChoice('msg1', 10 + 1, [], 'not_messages'); ?>
49-
<?php echo $view['translator']->transChoice('msg2', ceil(4.5), [], 'not_messages'); ?>
47+
<?php echo $view['translator']->trans('typecast', array('a' => (int) '123'), 'not_messages'); ?>
48+
<?php echo $view['translator']->transChoice('msg1', 10 + 1, array(), 'not_messages'); ?>
49+
<?php echo $view['translator']->transChoice('msg2', ceil(4.5), array(), 'not_messages'); ?>

src/Symfony/Component/Console/Helper/Table.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ public function getStyle()
149149
*/
150150
public function setColumnStyle($columnIndex, $name)
151151
{
152-
$columnIndex = intval($columnIndex);
152+
$columnIndex = (int) $columnIndex;
153153

154154
$this->columnStyles[$columnIndex] = $this->resolveStyle($name);
155155

src/Symfony/Component/Form/Tests/Extension/Csrf/EventListener/CsrfValidationListenerTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
namespace Symfony\Component\Form\Tests\Extension\Csrf\EventListener;
1313

1414
use PHPUnit\Framework\TestCase;
15-
use Symfony\Component\Form\Form;
1615
use Symfony\Component\Form\FormBuilder;
1716
use Symfony\Component\Form\FormEvent;
1817
use Symfony\Component\Form\Extension\Csrf\EventListener\CsrfValidationListener;

src/Symfony/Component/HttpFoundation/Tests/RequestTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1008,7 +1008,7 @@ public function testGetContentReturnsResourceWhenContentSetInConstructor()
10081008
$req = new Request(array(), array(), array(), array(), array(), array(), 'MyContent');
10091009
$resource = $req->getContent(true);
10101010

1011-
$this->assertTrue(is_resource($resource));
1011+
$this->assertInternalType('resource', $resource);
10121012
$this->assertEquals('MyContent', stream_get_contents($resource));
10131013
}
10141014

src/Symfony/Component/Intl/Tests/Data/Provider/AbstractCurrencyDataProviderTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -676,15 +676,15 @@ function ($currency) { return array($currency); },
676676
*/
677677
public function testGetFractionDigits($currency)
678678
{
679-
$this->assertTrue(is_numeric($this->dataProvider->getFractionDigits($currency)));
679+
$this->assertInternalType('numeric', $this->dataProvider->getFractionDigits($currency));
680680
}
681681

682682
/**
683683
* @dataProvider provideCurrencies
684684
*/
685685
public function testGetRoundingIncrement($currency)
686686
{
687-
$this->assertTrue(is_numeric($this->dataProvider->getRoundingIncrement($currency)));
687+
$this->assertInternalType('numeric', $this->dataProvider->getRoundingIncrement($currency));
688688
}
689689

690690
public function provideCurrenciesWithNumericEquivalent()

src/Symfony/Component/Process/Tests/ProcessTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -725,8 +725,8 @@ public function testRestart()
725725
// Ensure that both processed finished and the output is numeric
726726
$this->assertFalse($process1->isRunning());
727727
$this->assertFalse($process2->isRunning());
728-
$this->assertTrue(is_numeric($process1->getOutput()));
729-
$this->assertTrue(is_numeric($process2->getOutput()));
728+
$this->assertInternalType('numeric', $process1->getOutput());
729+
$this->assertInternalType('numeric', $process2->getOutput());
730730

731731
// Ensure that restart returned a new process by check that the output is different
732732
$this->assertNotEquals($process1->getOutput(), $process2->getOutput());

src/Symfony/Component/Security/Core/Authentication/Token/AnonymousToken.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public function getCredentials()
5151
*/
5252
public function getKey()
5353
{
54-
@trigger_error(__method__.'() is deprecated since version 2.8 and will be removed in 3.0. Use getSecret() instead.', E_USER_DEPRECATED);
54+
@trigger_error(__METHOD__.'() is deprecated since version 2.8 and will be removed in 3.0. Use getSecret() instead.', E_USER_DEPRECATED);
5555

5656
return $this->getSecret();
5757
}

src/Symfony/Component/Security/Core/Authentication/Token/RememberMeToken.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public function getProviderKey()
7878
*/
7979
public function getKey()
8080
{
81-
@trigger_error(__method__.'() is deprecated since version 2.8 and will be removed in 3.0. Use getSecret() instead.', E_USER_DEPRECATED);
81+
@trigger_error(__METHOD__.'() is deprecated since version 2.8 and will be removed in 3.0. Use getSecret() instead.', E_USER_DEPRECATED);
8282

8383
return $this->getSecret();
8484
}

src/Symfony/Component/Security/Http/EntryPoint/DigestAuthenticationEntryPoint.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public function start(Request $request, AuthenticationException $authException =
6969
*/
7070
public function getKey()
7171
{
72-
@trigger_error(__method__.'() is deprecated since version 2.8 and will be removed in 3.0. Use getSecret() instead.', E_USER_DEPRECATED);
72+
@trigger_error(__METHOD__.'() is deprecated since version 2.8 and will be removed in 3.0. Use getSecret() instead.', E_USER_DEPRECATED);
7373

7474
return $this->getSecret();
7575
}

0 commit comments

Comments
 (0)