Skip to content
This repository was archived by the owner on Sep 16, 2021. It is now read-only.

Commit 03c1fe5

Browse files
committed
cs cleanup
1 parent bad1f7c commit 03c1fe5

Some content is hidden

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

50 files changed

+41
-107
lines changed

Admin/AbstractMenuNodeAdmin.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
1312
namespace Symfony\Cmf\Bundle\MenuBundle\Admin;
1413

1514
use Sonata\AdminBundle\Datagrid\ListMapper;

Admin/Extension/MenuNodeReferrersExtension.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
1312
namespace Symfony\Cmf\Bundle\MenuBundle\Admin\Extension;
1413

1514
use Sonata\AdminBundle\Admin\AdminExtension;

Admin/MenuAdmin.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
1312
namespace Symfony\Cmf\Bundle\MenuBundle\Admin;
1413

1514
use Sonata\AdminBundle\Form\FormMapper;

Admin/MenuNodeAdmin.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,10 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
1312
namespace Symfony\Cmf\Bundle\MenuBundle\Admin;
1413

1514
use Sonata\AdminBundle\Form\FormMapper;
1615
use Sonata\DoctrinePHPCRAdminBundle\Admin\Admin;
17-
use Symfony\Cmf\Bundle\MenuBundle\Model\MenuNode;
1816
use Symfony\Cmf\Bundle\MenuBundle\Model\Menu;
1917
use Knp\Menu\ItemInterface as MenuItemInterface;
2018
use Doctrine\Common\Util\ClassUtils;

CmfMenuBundle.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
1312
namespace Symfony\Cmf\Bundle\MenuBundle;
1413

1514
use Symfony\Component\HttpKernel\Bundle\Bundle;

ContentAwareFactory.php

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ class ContentAwareFactory extends MenuFactory
7272
/**
7373
* @param UrlGeneratorInterface $generator for the parent class
7474
* @param UrlGeneratorInterface $contentRouter to generate routes when
75-
* content is set
75+
* content is set
7676
* @param EventDispatcherInterface $dispatcher to dispatch the CREATE_ITEM_FROM_NODE event.
7777
* @param LoggerInterface $logger
7878
*/
@@ -136,13 +136,13 @@ private function getVoters()
136136
}
137137

138138
/**
139-
* Create a MenuItem from a NodeInterface instance
139+
* Create a MenuItem from a NodeInterface instance.
140140
*
141141
* @param NodeInterface $node
142142
*
143-
* @return MenuItem|null if allowEmptyItems is false and this node has
144-
* neither URL nor route nor a content that has a route, this method
145-
* returns null.
143+
* @return MenuItem|null If allowEmptyItems is false and this node has
144+
* neither URL nor route nor a content that has a
145+
* route, returns null.
146146
*/
147147
public function createFromNode(NodeInterface $node)
148148
{
@@ -202,9 +202,11 @@ public function addChildrenFromNode($nodes, ItemInterface $item)
202202
*
203203
* @param string $name the menu item name
204204
* @param array $options options for the menu item, we care about
205-
* 'content'
205+
* 'content'
206206
*
207-
* @return MenuItem|null returns null if no route can be built for this menu item
207+
* @return MenuItem|null Returns null if no route can be built for this menu item,
208+
*
209+
* @throws \RuntimeException If the stored link type is not known.
208210
*/
209211
public function createItem($name, array $options = array())
210212
{
@@ -303,7 +305,7 @@ protected function determineLinkType($options)
303305
* @param string $linkType
304306
*
305307
* @throws \InvalidArgumentException if $linkType is not one of the known
306-
* link types
308+
* link types
307309
*/
308310
protected function validateLinkType($linkType)
309311
{

DependencyInjection/CmfMenuExtension.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
1312
namespace Symfony\Cmf\Bundle\MenuBundle\DependencyInjection;
1413

1514
use Symfony\Component\Config\FileLocator;

DependencyInjection/Compiler/AddVotersPass.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
1312
namespace Symfony\Cmf\Bundle\MenuBundle\DependencyInjection\Compiler;
1413

1514
use Symfony\Component\DependencyInjection\ContainerBuilder;

DependencyInjection/Configuration.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
1312
namespace Symfony\Cmf\Bundle\MenuBundle\DependencyInjection;
1413

1514
use Symfony\Component\Config\Definition\Builder\TreeBuilder;

Doctrine/Phpcr/Menu.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
1312
namespace Symfony\Cmf\Bundle\MenuBundle\Doctrine\Phpcr;
1413

1514
use Symfony\Cmf\Bundle\MenuBundle\Model\Menu as BaseMenu;

0 commit comments

Comments
 (0)