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

Commit 867ff4e

Browse files
Merge pull request #276 from symfony-cmf/analysis-XVjgKK
Apply fixes from StyleCI
2 parents 4c67915 + 70015eb commit 867ff4e

12 files changed

+26
-27
lines changed

DependencyInjection/CmfMenuExtension.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
namespace Symfony\Cmf\Bundle\MenuBundle\DependencyInjection;
1313

1414
use Symfony\Component\Config\FileLocator;
15-
use Symfony\Component\Config\Definition\Exception\InvalidConfigurationException;
1615
use Symfony\Component\DependencyInjection\ContainerBuilder;
1716
use Symfony\Component\DependencyInjection\Loader\XmlFileLoader;
1817
use Symfony\Component\HttpKernel\DependencyInjection\Extension;

DependencyInjection/Compiler/DecorateMenuFactoryPass.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class DecorateMenuFactoryPass implements CompilerPassInterface
2121
* {@inheritdoc}
2222
*
2323
* @todo Add `decorates="knp_menu.factory"` to the service definition
24-
* instead if Symfony 2.3 support is dropped.
24+
* instead if Symfony 2.3 support is dropped
2525
*/
2626
public function process(ContainerBuilder $container)
2727
{

Doctrine/Phpcr/Menu.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class Menu extends ModelMenu implements HierarchyInterface
2020
/**
2121
* Set the parent of this menu.
2222
*
23-
* @param object $parent A mapped document.
23+
* @param object $parent A mapped document
2424
*
2525
* @return Menu - this instance
2626
*/
@@ -42,7 +42,7 @@ public function getParentDocument()
4242
/**
4343
* Convenience method to set parent and name at the same time.
4444
*
45-
* @param object $parent A mapped object.
45+
* @param object $parent A mapped object
4646
* @param string $name
4747
*
4848
* @return Menu - this instance
@@ -60,7 +60,7 @@ public function setPosition($parent, $name)
6060
*
6161
* @param NodeInterface $child
6262
*
63-
* @return NodeInterface - The newly added child node.
63+
* @return NodeInterface - The newly added child node
6464
*/
6565
public function addChild(NodeInterface $child)
6666
{

Doctrine/Phpcr/MenuNode.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class MenuNode extends ModelMenuNode implements HierarchyInterface
2020
/**
2121
* Set the parent of this menu node.
2222
*
23-
* @param object $parent A mapped document.
23+
* @param object $parent A mapped document
2424
*
2525
* @return MenuNode - this instance
2626
*/
@@ -42,7 +42,7 @@ public function getParentDocument()
4242
/**
4343
* Convenience method to set parent and name at the same time.
4444
*
45-
* @param object $parent A mapped document.
45+
* @param object $parent A mapped document
4646
* @param string $name
4747
*
4848
* @return MenuNode - this instance
@@ -60,7 +60,7 @@ public function setPosition($parent, $name)
6060
*
6161
* @param NodeInterface $child
6262
*
63-
* @return NodeInterface - The newly added child node.
63+
* @return NodeInterface - The newly added child node
6464
*/
6565
public function addChild(NodeInterface $child)
6666
{

Event/CreateMenuItemFromNodeEvent.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public function getItem()
8888
* will still be built and added after eventual children this menu item
8989
* has.
9090
*
91-
* @param ItemInterface $item Menu item to use.
91+
* @param ItemInterface $item Menu item to use
9292
*/
9393
public function setItem(ItemInterface $item = null)
9494
{
@@ -111,7 +111,7 @@ public function setSkipNode($skipNode)
111111
}
112112

113113
/**
114-
* @return bool Whether the node associated to this event is to be skipped.
114+
* @return bool Whether the node associated to this event is to be skipped
115115
*/
116116
public function isSkipNode()
117117
{
@@ -136,7 +136,7 @@ public function setSkipChildren($skipChildren)
136136

137137
/**
138138
* @return bool Whether the children of the node associated to this event
139-
* should be handled or ignored.
139+
* should be handled or ignored
140140
*/
141141
public function isSkipChildren()
142142
{

Model/MenuNodeBase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ public function getChildren()
367367
*
368368
* @param NodeInterface $child
369369
*
370-
* @return NodeInterface The newly added child node.
370+
* @return NodeInterface The newly added child node
371371
*/
372372
public function addChild(NodeInterface $child)
373373
{

Provider/PhpcrMenuProvider.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ public function setPrefetch($depth)
133133
/**
134134
* Get the depth to use. A depth <= 0 means no prefetching should be done.
135135
*
136-
* @return int The depth to use when fetching menus.
136+
* @return int The depth to use when fetching menus
137137
*/
138138
public function getPrefetch()
139139
{
@@ -158,12 +158,12 @@ public function setRequest(Request $request = null)
158158
* only load a submenu rather than a whole menu.
159159
*
160160
* @param string $name Name of the menu to load. This can be an
161-
* absolute PHPCR path or one relative to the menu root.
161+
* absolute PHPCR path or one relative to the menu root
162162
* @param array $options
163163
*
164-
* @return ItemInterface The menu (sub)tree starting with name.
164+
* @return ItemInterface The menu (sub)tree starting with name
165165
*
166-
* @throws \InvalidArgumentException if the menu can not be found.
166+
* @throws \InvalidArgumentException if the menu can not be found
167167
*/
168168
public function get($name, array $options = array())
169169
{
@@ -184,10 +184,10 @@ public function get($name, array $options = array())
184184
* an exception.
185185
*
186186
* @param string $name Name of the menu to load. This can be an
187-
* absolute PHPCR path or one relative to the menu root.
187+
* absolute PHPCR path or one relative to the menu root
188188
* @param array $options
189189
*
190-
* @return bool Whether a menu with this name can be loaded by this provider.
190+
* @return bool Whether a menu with this name can be loaded by this provider
191191
*/
192192
public function has($name, array $options = array())
193193
{
@@ -199,13 +199,13 @@ public function has($name, array $options = array())
199199
* @param array $options
200200
* @param bool $throw Whether to throw an exception if the menu is not
201201
* found or no valid menu. Returns false if $throw is false and there
202-
* is no menu at $name.
202+
* is no menu at $name
203203
*
204204
* @return object|bool The menu root found with $name or false if $throw
205-
* is false and the menu was not found.
205+
* is false and the menu was not found
206206
*
207207
* @throws \InvalidArgumentException Only if $throw is true throws this
208-
* exception if the name is empty or no menu found.
208+
* exception if the name is empty or no menu found
209209
*/
210210
protected function find($name, array $options, $throw)
211211
{

PublishWorkflow/CreateMenuItemFromNodeListener.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ class CreateMenuItemFromNodeListener
3636
private $publishWorkflowPermission;
3737

3838
/**
39-
* @param AuthorizationCheckerInterface $publishWorkflowChecker The publish workflow checker.
40-
* @param string $attribute The permission to check.
39+
* @param AuthorizationCheckerInterface $publishWorkflowChecker The publish workflow checker
40+
* @param string $attribute The permission to check
4141
*/
4242
public function __construct(AuthorizationCheckerInterface $publishWorkflowChecker, $attribute = PublishWorkflowChecker::VIEW_ATTRIBUTE)
4343
{

PublishWorkflow/Voter/MenuContentVoter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class MenuContentVoter implements VoterInterface
2727
/**
2828
* @param ContainerInterface $container to get the publish workflow checker
2929
* from. We cannot inject the publish workflow checker directly as
30-
* this would lead to a circular reference.
30+
* this would lead to a circular reference
3131
*/
3232
public function __construct(ContainerInterface $container)
3333
{

QuietFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ public function createItem($name, array $options = array())
8383
* @param ExtensionInterface $extension
8484
* @param int $priority
8585
*
86-
* @throws \Exception if the inner factory does not implement the addExtension method.
86+
* @throws \Exception if the inner factory does not implement the addExtension method
8787
*/
8888
public function addExtension(ExtensionInterface $extension, $priority = 0)
8989
{

0 commit comments

Comments
 (0)