Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit dac934a

Browse files
DanielDaniel
Daniel
authored and
Daniel
committed
Added Code Standart
1 parent ffeab06 commit dac934a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/Symfony/Component/Form/Extension/Core/ChoiceList/ObjectChoiceList.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -88,13 +88,13 @@ class ObjectChoiceList extends ChoiceList
8888
public function __construct($choices, $labelPath = null, array $preferredChoices = array(), $groupPath = null, $valuePath = null, PropertyAccessorInterface $propertyAccessor = null)
8989
{
9090
$this->propertyAccessor = $propertyAccessor ?: PropertyAccess::createPropertyAccessor();
91-
if($labelPath !== null){
92-
if($labelPath instanceof \Closure){
91+
if ($labelPath !== null) {
92+
if ($labelPath instanceof \Closure) {
9393
$this->labelPath = $labelPath;
94-
}else{
94+
} else {
9595
$this->labelPath = new PropertyPath($labelPath);
9696
}
97-
}else{
97+
} else {
9898
$this->labelPath = null;
9999
}
100100
$this->groupPath = null !== $groupPath ? new PropertyPath($groupPath) : null;
@@ -259,7 +259,7 @@ private function extractLabels($choices, array &$labels)
259259
} elseif ($this->labelPath instanceof \Closure) {
260260
$clousure = $this->labelPath;
261261
$labels[$i] = $clousure($choice);
262-
}elseif ($this->labelPath) {
262+
} elseif ($this->labelPath) {
263263
$labels[$i] = $this->propertyAccessor->getValue($choice, $this->labelPath);
264264
} elseif (method_exists($choice, '__toString')) {
265265
$labels[$i] = (string) $choice;

0 commit comments

Comments
 (0)