Skip to content

Commit 1c73fa4

Browse files
authored
Enhancement: Enable and configure list_syntax fixer (#220)
* Enhancement: Enable and configure list_syntax fixer * Fix: Run 'make cs'
1 parent cfee524 commit 1c73fa4

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

.php_cs.dist

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,9 @@ return $config
7070
'increment_style' => true,
7171
'is_null' => true,
7272
'lambda_not_used_import' => true,
73+
'list_syntax' => [
74+
'syntax' => 'short',
75+
],
7376
'lowercase_cast' => true,
7477
'lowercase_static_reference' => true,
7578
'magic_constant_casing' => true,

src/Faker/Provider/Payment.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ public static function iban($countryCode = null, $prefix = '', $length = null)
250250
$length = 0;
251251

252252
foreach ($format as $part) {
253-
list($class, $groupCount) = $part;
253+
[$class, $groupCount] = $part;
254254
$length += $groupCount;
255255
}
256256
}
@@ -263,7 +263,7 @@ public static function iban($countryCode = null, $prefix = '', $length = null)
263263
$expandedFormat = '';
264264

265265
foreach ($format as $item) {
266-
list($class, $length) = $item;
266+
[$class, $length] = $item;
267267
$expandedFormat .= str_repeat($class, $length);
268268
}
269269

test/Faker/Provider/ImageTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ public function testDownloadWithDefaults()
101101
self::assertFileExists($file);
102102

103103
if (function_exists('getimagesize')) {
104-
list($width, $height, $type, $attr) = getimagesize($file);
104+
[$width, $height, $type, $attr] = getimagesize($file);
105105
self::assertEquals(640, $width);
106106
self::assertEquals(480, $height);
107107
self::assertEquals(constant('IMAGETYPE_PNG'), $type);

0 commit comments

Comments
 (0)