Skip to content

Commit 4316595

Browse files
committed
fixed CS
1 parent 8d7a6e5 commit 4316595

File tree

60 files changed

+109
-108
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+109
-108
lines changed

src/Symfony/Bridge/Doctrine/Form/ChoiceList/EntityChoiceList.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ protected function load()
142142

143143
if (is_array($this->choices)) {
144144
$entities = $this->choices;
145-
} else if ($qb = $this->queryBuilder) {
145+
} elseif ($qb = $this->queryBuilder) {
146146
$entities = $qb->getQuery()->execute();
147147
} else {
148148
$entities = $this->em->getRepository($this->class)->findAll();
@@ -269,9 +269,9 @@ public function getEntity($key)
269269
$entities = $this->getEntities();
270270

271271
return isset($entities[$key]) ? $entities[$key] : null;
272-
} else if ($this->entities) {
272+
} elseif ($this->entities) {
273273
return isset($this->entities[$key]) ? $this->entities[$key] : null;
274-
} else if ($qb = $this->queryBuilder) {
274+
} elseif ($qb = $this->queryBuilder) {
275275
// should we clone the builder?
276276
$alias = $qb->getRootAlias();
277277
$where = $qb->expr()->eq($alias.'.'.current($this->identifier), $key);

src/Symfony/Bridge/Doctrine/Form/EventListener/MergeCollectionListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public function onBindNormData(FilterDataEvent $event)
3838

3939
if (!$collection) {
4040
$collection = $data;
41-
} else if (count($data) === 0) {
41+
} elseif (count($data) === 0) {
4242
$collection->clear();
4343
} else {
4444
// merge $data into $collection

src/Symfony/Bundle/DoctrineAbstractBundle/DependencyInjection/AbstractDoctrineExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ protected function registerMappingDrivers($objectManager, ContainerBuilder $cont
196196
$args[0] = array_merge(array_values($driverPaths), $args[0]);
197197
}
198198
$mappingDriverDef->setArguments($args);
199-
} else if ($driverType == 'annotation') {
199+
} elseif ($driverType == 'annotation') {
200200
$mappingDriverDef = new Definition('%'.$this->getObjectManagerElementName('metadata.'.$driverType.'.class%'), array(
201201
new Reference($this->getObjectManagerElementName('metadata.annotation_reader')),
202202
array_values($driverPaths)

src/Symfony/Bundle/FrameworkBundle/Templating/Helper/CodeHelper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public function abbrMethod($method)
8888
if (false !== strpos($method, '::')) {
8989
list($class, $method) = explode('::', $method, 2);
9090
$result = sprintf("%s::%s()", $this->abbrClass($class), $method);
91-
} else if ('Closure' === $method) {
91+
} elseif ('Closure' === $method) {
9292
$result = sprintf("<abbr title=\"%s\">%s</abbr>", $method, $method);
9393
} else {
9494
$result = sprintf("<abbr title=\"%s\">%s</abbr>()", $method, $method);

src/Symfony/Bundle/FrameworkBundle/Templating/TemplateNameParser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public function parse($name)
4545
{
4646
if ($name instanceof TemplateReferenceInterface) {
4747
return $name;
48-
} else if (isset($this->cache[$name])) {
48+
} elseif (isset($this->cache[$name])) {
4949
return $this->cache[$name];
5050
}
5151

src/Symfony/Bundle/FrameworkBundle/Tests/Functional/Bundle/TestBundle/Controller/SessionController.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ public function welcomeAction($name=null)
4545
public function logoutAction()
4646
{
4747
$request = $this->container->get('request')->getSession('session')->clear();
48+
4849
return new Response('Session cleared.');
4950
}
5051

src/Symfony/Bundle/SecurityBundle/DependencyInjection/SecurityExtension.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ private function createFirewall(ContainerBuilder $container, $id, $firewall, &$a
241241
$matcher = null;
242242
if (isset($firewall['request_matcher'])) {
243243
$matcher = new Reference($firewall['request_matcher']);
244-
} else if (isset($firewall['pattern'])) {
244+
} elseif (isset($firewall['pattern'])) {
245245
$matcher = $this->createRequestMatcher($container, $firewall['pattern']);
246246
}
247247

@@ -515,7 +515,7 @@ private function createExceptionListener($container, $config, $id, $defaultEntry
515515
// access denied handler setup
516516
if (isset($config['access_denied_handler'])) {
517517
$listener->replaceArgument(5, new Reference($config['access_denied_handler']));
518-
} else if (isset($config['access_denied_url'])) {
518+
} elseif (isset($config['access_denied_url'])) {
519519
$listener->replaceArgument(4, $config['access_denied_url']);
520520
}
521521

src/Symfony/Bundle/SecurityBundle/Tests/DependencyInjection/SecurityExtensionTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ public function testAccess()
112112
if (1 === $i) {
113113
$this->assertEquals(array('ROLE_USER'), $roles);
114114
$this->assertEquals('https', $channel);
115-
} else if (2 === $i) {
115+
} elseif (2 === $i) {
116116
$this->assertEquals(array('IS_AUTHENTICATED_ANONYMOUSLY'), $roles);
117117
$this->assertNull($channel);
118118
}

src/Symfony/Component/Config/Definition/PrototypedArrayNode.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ protected function normalizeValue($value)
197197
$ex->setPath($this->getPath());
198198

199199
throw $ex;
200-
} else if (isset($v[$this->keyAttribute])) {
200+
} elseif (isset($v[$this->keyAttribute])) {
201201
$k = $v[$this->keyAttribute];
202202

203203
// remove the key attribute when required

src/Symfony/Component/Console/Input/InputArgument.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public function __construct($name, $mode = null, $description = '', $default = n
4545
{
4646
if (null === $mode) {
4747
$mode = self::OPTIONAL;
48-
} else if (is_string($mode) || $mode > 7) {
48+
} elseif (is_string($mode) || $mode > 7) {
4949
throw new \InvalidArgumentException(sprintf('Argument mode "%s" is not valid.', $mode));
5050
}
5151

@@ -102,7 +102,7 @@ public function setDefault($default = null)
102102
if ($this->isArray()) {
103103
if (null === $default) {
104104
$default = array();
105-
} else if (!is_array($default)) {
105+
} elseif (!is_array($default)) {
106106
throw new \LogicException('A default value for an array argument must be an array.');
107107
}
108108
}

0 commit comments

Comments
 (0)