Skip to content

Commit

Permalink
fix sf2 coding standards
Browse files Browse the repository at this point in the history
  • Loading branch information
Charley Maillot committed Aug 30, 2011
1 parent 9fe9f73 commit a74c274
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cache/EsiCache.php
Expand Up @@ -145,7 +145,7 @@ public function cacheAction()
);

if ($recorder) {
foreach($recorder->get() as $name => $keys) {
foreach ($recorder->get() as $name => $keys) {
$keys = array_map('strval', $keys);
$headers[$this->normalize($name)] = json_encode($keys);
}
Expand Down
2 changes: 1 addition & 1 deletion Cache/Invalidation/ModelCollectionIdentifiers.php
Expand Up @@ -43,7 +43,7 @@ public function getMethod($object)
return false;
}

foreach($this->classes as $class => $identifier) {
foreach ($this->classes as $class => $identifier) {
if ($object instanceof $class) {
return $identifier;
}
Expand Down
2 changes: 1 addition & 1 deletion DependencyInjection/SonataPageExtension.php
Expand Up @@ -88,7 +88,7 @@ public function configureTemplate(ContainerBuilder $container, $configs)
foreach ($configs['templates'] as $code => $info) {
$info = array_merge($defaults, $info);
$definition = new Definition('Sonata\PageBundle\Model\Template');
foreach($defaults as $key => $value) {
foreach ($defaults as $key => $value) {
$method = 'set' . ucfirst($key);
$definition->addMethodCall($method, array($info[$key]));
}
Expand Down
2 changes: 1 addition & 1 deletion Form/Type/PageSelectorType.php
Expand Up @@ -48,7 +48,7 @@ public function getDefaultOptions(array $options)

$options = array_replace($defaultOptions, $options);

if(!isset($options['choices'])) {
if (!isset($options['choices'])) {
$options['filter_choice'] = isset($options['filter_choice']) ? array_replace($defaultOptions['filter_choice'], $options['filter_choice']) : $defaultOptions['filter_choice'];
$options['choices'] = $this->getChoices($options);
}
Expand Down

0 comments on commit a74c274

Please sign in to comment.