Skip to content

Commit 2106e94

Browse files
committed
fixed CS
1 parent 16d8fa6 commit 2106e94

File tree

7 files changed

+6
-7
lines changed

7 files changed

+6
-7
lines changed

src/Symfony/Component/Cache/Adapter/FilesystemAdapterTrait.php

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
namespace Symfony\Component\Cache\Adapter;
1313

14-
use Symfony\Component\Cache\Exception\CacheException;
1514
use Symfony\Component\Cache\Exception\InvalidArgumentException;
1615

1716
/**

src/Symfony/Component/Console/Tester/CommandTester.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ private static function createStream(array $inputs)
155155
{
156156
$stream = fopen('php://memory', 'r+', false);
157157

158-
fputs($stream, implode(PHP_EOL, $inputs));
158+
fwrite($stream, implode(PHP_EOL, $inputs));
159159
rewind($stream);
160160

161161
return $stream;

src/Symfony/Component/Console/Tests/Fixtures/Style/SymfonyStyle/command/interactive_command_1.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
$output = new SymfonyStyle($input, $output);
1010
$stream = fopen('php://memory', 'r+', false);
1111

12-
fputs($stream, "Foo\nBar\nBaz");
12+
fwrite($stream, "Foo\nBar\nBaz");
1313
rewind($stream);
1414
$input->setStream($stream);
1515

src/Symfony/Component/Debug/Exception/FlattenException.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ private function flattenArgs($args, $level = 0, &$count = 0)
237237
$result[$key] = array('null', null);
238238
} elseif (is_bool($value)) {
239239
$result[$key] = array('boolean', $value);
240-
} elseif (is_integer($value)) {
240+
} elseif (is_int($value)) {
241241
$result[$key] = array('integer', $value);
242242
} elseif (is_float($value)) {
243243
$result[$key] = array('float', $value);

src/Symfony/Component/Debug/Tests/Exception/FlattenExceptionTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ function () {},
249249

250250
// assertEquals() does not like NAN values.
251251
$this->assertEquals($array[$i][0], 'float');
252-
$this->assertTrue(is_nan($array[$i++][1]));
252+
$this->assertNan($array[$i++][1]);
253253
}
254254

255255
public function testRecursionInArguments()

src/Symfony/Component/Validator/Tests/Constraints/EmailValidatorTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ public function testStrictWithInvalidEmails($email)
123123
}
124124

125125
/**
126-
* @link https://github.com/egulias/EmailValidator/blob/1.2.8/tests/egulias/Tests/EmailValidator/EmailValidatorTest.php
126+
* @see https://github.com/egulias/EmailValidator/blob/1.2.8/tests/egulias/Tests/EmailValidator/EmailValidatorTest.php
127127
*/
128128
public function getInvalidEmailsForStrictChecks()
129129
{

src/Symfony/Component/VarDumper/Cloner/Data.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ private function dumpChildren($dumper, $parentCursor, &$refs, $children, $hashCu
256256
$cursor->hashCut = $hashCut;
257257
foreach ($children as $key => $child) {
258258
$cursor->hashKeyIsBinary = isset($key[0]) && !preg_match('//u', $key);
259-
$cursor->hashKey = $dumpKeys ? $key : null;
259+
$cursor->hashKey = $dumpKeys ? $key : null;
260260
$this->dumpItem($dumper, $cursor, $refs, $child);
261261
if (++$cursor->hashIndex === $this->maxItemsPerDepth || $cursor->stop) {
262262
$parentCursor->stop = true;

0 commit comments

Comments
 (0)