Skip to content

Commit

Permalink
[2.3] More cs fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
GrahamCampbell authored and fabpot committed Dec 4, 2014
1 parent cef9972 commit b034b08
Show file tree
Hide file tree
Showing 8 changed files with 26 additions and 27 deletions.
Expand Up @@ -361,7 +361,7 @@ public function testHandleClosureValidationGroups()
$object = $this->getMock('\stdClass');
$options = array('validation_groups' => function (FormInterface $form) {
return array('group1', 'group2');
},);
});
$form = $this->getBuilder('name', '\stdClass', $options)
->setData($object)
->getForm();
Expand Down
12 changes: 6 additions & 6 deletions src/Symfony/Component/Intl/ResourceBundle/CurrencyBundle.php
Expand Up @@ -52,7 +52,7 @@ public function getCurrencySymbol($currency, $displayLocale = null)
try {
return $this->getSymbol($currency, $displayLocale);
} catch (MissingResourceException $e) {
return null;
return;
}
}

Expand All @@ -64,7 +64,7 @@ public function getCurrencyName($currency, $displayLocale = null)
try {
return $this->getName($currency, $displayLocale);
} catch (MissingResourceException $e) {
return null;
return;
}
}

Expand All @@ -76,7 +76,7 @@ public function getCurrencyNames($displayLocale = null)
try {
return $this->getNames($displayLocale);
} catch (MissingResourceException $e) {
return null;
return;
}
}

Expand All @@ -88,7 +88,7 @@ public function getFractionDigits($currency)
try {
return parent::getFractionDigits($currency);
} catch (MissingResourceException $e) {
return null;
return;
}
}

Expand All @@ -100,7 +100,7 @@ public function getRoundingIncrement($currency)
try {
return parent::getRoundingIncrement($currency);
} catch (MissingResourceException $e) {
return null;
return;
}
}

Expand All @@ -112,7 +112,7 @@ public function getLocales()
try {
return $this->localeProvider->getLocales();
} catch (MissingResourceException $e) {
return null;
return;
}
}
}
10 changes: 5 additions & 5 deletions src/Symfony/Component/Intl/ResourceBundle/LanguageBundle.php
Expand Up @@ -68,7 +68,7 @@ public function getLanguageName($language, $region = null, $displayLocale = null
try {
return $this->getName($language, $displayLocale);
} catch (MissingResourceException $e) {
return null;
return;
}
}

Expand All @@ -80,7 +80,7 @@ public function getLanguageNames($displayLocale = null)
try {
return $this->getNames($displayLocale);
} catch (MissingResourceException $e) {
return null;
return;
}
}

Expand All @@ -92,7 +92,7 @@ public function getScriptName($script, $language = null, $displayLocale = null)
try {
return $this->scriptProvider->getName($script, $displayLocale);
} catch (MissingResourceException $e) {
return null;
return;
}
}

Expand All @@ -104,7 +104,7 @@ public function getScriptNames($displayLocale = null)
try {
return $this->scriptProvider->getNames($displayLocale);
} catch (MissingResourceException $e) {
return null;
return;
}
}

Expand All @@ -116,7 +116,7 @@ public function getLocales()
try {
return $this->localeProvider->getLocales();
} catch (MissingResourceException $e) {
return null;
return;
}
}
}
6 changes: 3 additions & 3 deletions src/Symfony/Component/Intl/ResourceBundle/LocaleBundle.php
Expand Up @@ -31,7 +31,7 @@ public function getLocales()
try {
return parent::getLocales();
} catch (MissingResourceException $e) {
return null;
return;
}
}

Expand All @@ -43,7 +43,7 @@ public function getLocaleName($locale, $displayLocale = null)
try {
return $this->getName($locale, $displayLocale);
} catch (MissingResourceException $e) {
return null;
return;
}
}

Expand All @@ -55,7 +55,7 @@ public function getLocaleNames($displayLocale = null)
try {
return $this->getNames($displayLocale);
} catch (MissingResourceException $e) {
return null;
return;
}
}
}
6 changes: 3 additions & 3 deletions src/Symfony/Component/Intl/ResourceBundle/RegionBundle.php
Expand Up @@ -52,7 +52,7 @@ public function getCountryName($country, $displayLocale = null)
try {
return $this->getName($country, $displayLocale);
} catch (MissingResourceException $e) {
return null;
return;
}
}

Expand All @@ -64,7 +64,7 @@ public function getCountryNames($displayLocale = null)
try {
return $this->getNames($displayLocale);
} catch (MissingResourceException $e) {
return null;
return;
}
}

Expand All @@ -76,7 +76,7 @@ public function getLocales()
try {
return $this->localeProvider->getLocales();
} catch (MissingResourceException $e) {
return null;
return;
}
}
}
1 change: 0 additions & 1 deletion src/Symfony/Component/Intl/Resources/bin/update-data.php
Expand Up @@ -76,7 +76,6 @@
? $urlVersion
: $maxVersion;


echo " $urlVersion\n";
}

Expand Down
14 changes: 7 additions & 7 deletions src/Symfony/Component/Stopwatch/Tests/StopwatchTest.php
Expand Up @@ -56,13 +56,13 @@ public function testIsNotStartedEvent()

$events = new \ReflectionProperty('Symfony\Component\Stopwatch\Section', 'events');
$events->setAccessible(true);
$events->setValue(
end($section),
array(
'foo' => $this->getMockBuilder('Symfony\Component\Stopwatch\StopwatchEvent')
->setConstructorArgs(array(microtime(true) * 1000))
->getMock())
);

$stopwatchMockEvent = $this->getMockBuilder('Symfony\Component\Stopwatch\StopwatchEvent')
->setConstructorArgs(array(microtime(true) * 1000))
->getMock()
;

$events->setValue(end($section), array('foo' => $stopwatchMockEvent));

$this->assertFalse($stopwatch->isStarted('foo'));
}
Expand Down
Expand Up @@ -89,7 +89,7 @@ public function testValidChoiceCallbackClosure()
{
$constraint = new Choice(array('callback' => function () {
return array('foo', 'bar');
}, ));
}));

$this->validator->validate('bar', $constraint);

Expand Down

0 comments on commit b034b08

Please sign in to comment.