Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 0f6f833

Browse filesBrowse files
committed
Fix code style in DefaultChoiceListFactory
1 parent 6c923aa commit 0f6f833
Copy full SHA for 0f6f833

File tree

1 file changed

+2
-2
lines changed
Filter options

1 file changed

+2
-2
lines changed

‎src/Symfony/Component/Form/ChoiceList/Factory/DefaultChoiceListFactory.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Form/ChoiceList/Factory/DefaultChoiceListFactory.php
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public function createListFromLoader(ChoiceLoaderInterface $loader, $value = nul
5757
*/
5858
public function createView(ChoiceListInterface $list, $preferredChoices = null, $label = null, $index = null, $groupBy = null, $attr = null)
5959
{
60-
if (null !== $preferredChoices && !is_array($preferredChoices) && !\is_callable($preferredChoices)) {
60+
if (null !== $preferredChoices && !\is_array($preferredChoices) && !\is_callable($preferredChoices)) {
6161
throw new UnexpectedTypeException($preferredChoices, 'callable, array or null');
6262
}
6363

@@ -73,7 +73,7 @@ public function createView(ChoiceListInterface $list, $preferredChoices = null,
7373
throw new UnexpectedTypeException($groupBy, 'callable or null');
7474
}
7575

76-
if (null !== $attr && !is_array($attr) && !\is_callable($attr)) {
76+
if (null !== $attr && !\is_array($attr) && !\is_callable($attr)) {
7777
throw new UnexpectedTypeException($attr, 'callable, array or null');
7878
}
7979

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.