Skip to content

Commit fd97278

Browse files
committed
Fix CS according to new rules
1 parent 00125cc commit fd97278

File tree

3 files changed

+186
-186
lines changed

3 files changed

+186
-186
lines changed

src/Symfony/Component/Validator/Constraints/Collection.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@ class Collection extends Composite
2424
const MISSING_FIELD_ERROR = '2fa2158c-2a7f-484b-98aa-975522539ff8';
2525
const NO_SUCH_FIELD_ERROR = '7703c766-b5d5-4cef-ace7-ae0dd82304e9';
2626

27-
protected static $errorNames = array(
27+
protected static $errorNames = [
2828
self::MISSING_FIELD_ERROR => 'MISSING_FIELD_ERROR',
2929
self::NO_SUCH_FIELD_ERROR => 'NO_SUCH_FIELD_ERROR',
30-
);
30+
];
3131

32-
public $fields = array();
32+
public $fields = [];
3333
public $allowExtraFields = false;
3434
public $allowMissingFields = false;
3535
public $extraFieldsMessage = 'This field was not expected.';
@@ -42,8 +42,8 @@ public function __construct($options = null)
4242
{
4343
// no known options set? $options is the fields array
4444
if (\is_array($options)
45-
&& !array_intersect(array_keys($options), array('groups', 'fields', 'allowExtraFields', 'allowMissingFields', 'extraFieldsMessage', 'missingFieldsMessage'))) {
46-
$options = array('fields' => $options);
45+
&& !array_intersect(array_keys($options), ['groups', 'fields', 'allowExtraFields', 'allowMissingFields', 'extraFieldsMessage', 'missingFieldsMessage'])) {
46+
$options = ['fields' => $options];
4747
}
4848

4949
parent::__construct($options);
@@ -75,7 +75,7 @@ protected function initializeNestedConstraints()
7575

7676
public function getRequiredOptions()
7777
{
78-
return array('fields');
78+
return ['fields'];
7979
}
8080

8181
protected function getCompositeOption()

0 commit comments

Comments
 (0)