Skip to content

Commit feae2c3

Browse files
committedFeb 16, 2013
Apply PHP-CS-Fixer
1 parent 5bf16db commit feae2c3

File tree

142 files changed

+571
-624
lines changed

Some content is hidden

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

142 files changed

+571
-624
lines changed
 

‎Admin/BaseMediaAdmin.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -174,4 +174,4 @@ public function getPool()
174174
{
175175
return $this->pool;
176176
}
177-
}
177+
}

‎Admin/GalleryAdmin.php

+3-4
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
use Sonata\AdminBundle\Datagrid\DatagridMapper;
1717
use Sonata\AdminBundle\Datagrid\ListMapper;
1818
use Sonata\MediaBundle\Provider\Pool;
19-
use Sonata\AdminBundle\Validator\ErrorElement;
2019

2120
class GalleryAdmin extends Admin
2221
{
@@ -47,12 +46,12 @@ protected function configureFormFields(FormMapper $formMapper)
4746
}
4847

4948
$formats = array();
50-
foreach((array)$this->pool->getFormatNamesByContext($context) as $name => $options) {
49+
foreach ((array) $this->pool->getFormatNamesByContext($context) as $name => $options) {
5150
$formats[$name] = $name;
5251
}
5352

5453
$contexts = array();
55-
foreach((array)$this->pool->getContexts() as $contextItem => $format) {
54+
foreach ((array) $this->pool->getContexts() as $contextItem => $format) {
5655
$contexts[$contextItem] = $contextItem;
5756
}
5857

@@ -150,4 +149,4 @@ public function getNewInstance()
150149

151150
return $gallery;
152151
}
153-
}
152+
}

0 commit comments

Comments
 (0)
Please sign in to comment.