Skip to content

Commit 399e71a

Browse files
authored
Merge pull request #202 from symfony-cmf/analysis-8KoVaQ
Applied fixes from StyleCI
2 parents 18cb464 + 6aae709 commit 399e71a

File tree

5 files changed

+33
-33
lines changed

5 files changed

+33
-33
lines changed

Admin/Extension/TranslatableExtension.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
*
2323
* @author David Buchmann <[email protected]>
2424
*
25-
* @deprecated Since version 1.3, to be removed in 2.0. Use the SonataTranslationBundle instead.
25+
* @deprecated Since version 1.3, to be removed in 2.0. Use the SonataTranslationBundle instead
2626
*/
2727
class TranslatableExtension extends AdminExtension
2828
{
@@ -37,8 +37,8 @@ class TranslatableExtension extends AdminExtension
3737
protected $locales;
3838

3939
/**
40-
* @param array $locales Available locales to select.
41-
* @param string $formGroup The group name to use for form mapper.
40+
* @param array $locales Available locales to select
41+
* @param string $formGroup The group name to use for form mapper
4242
*/
4343
public function __construct($locales, $formGroup = 'form.group_general')
4444
{

DependencyInjection/Compiler/DoctrineOrmMappingsPass.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,14 @@ class DoctrineOrmMappingsPass implements CompilerPassInterface
3535
* Usually, you should not need to directly instantiate this class but use
3636
* one of the factory methods.
3737
*
38-
* @param Definition|Reference $driver The driver to use.
39-
* @param array $namespaces List of namespaces this driver should handle.
38+
* @param Definition|Reference $driver The driver to use
39+
* @param array $namespaces List of namespaces this driver should handle
4040
* @param string[] $managerParameters Ordered list of container parameters that may
4141
* provide the name of the manager to register
4242
* the mappings for. The first non-empty name
43-
* is used, the others skipped.
43+
* is used, the others skipped
4444
* @param bool $enabledParameter if specified, the compiler pass only executes
45-
* if this parameter exists in the service container.
45+
* if this parameter exists in the service container
4646
*/
4747
public function __construct($driver, $namespaces, array $managerParameters, $enabledParameter = false)
4848
{
@@ -102,10 +102,10 @@ protected function getChainDriverServiceName(ContainerBuilder $container)
102102
* @param string[] $managerParameters List of parameters that could tell which object manager name
103103
* your bundle uses. This compiler pass will automatically
104104
* append the parameter name for the default entity manager
105-
* to this list.
105+
* to this list
106106
* @param bool|string $enabledParameter Service container parameter that must be present to
107107
* enable the mapping. Set to false to not do any check,
108-
* optional.
108+
* optional
109109
*/
110110
public static function createXmlMappingDriver(array $mappings, array $managerParameters = array(), $enabledParameter = false)
111111
{

PublishWorkflow/PublishWorkflowChecker.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ class PublishWorkflowChecker implements SecurityContextInterface
6363

6464
/**
6565
* @var bool|string Role allowed to bypass the published check if the
66-
* VIEW attribute is used, or false to never bypass.
66+
* VIEW attribute is used, or false to never bypass
6767
*/
6868
private $bypassingRole;
6969

@@ -88,12 +88,12 @@ class PublishWorkflowChecker implements SecurityContextInterface
8888
private $authorizationChecker = false;
8989

9090
/**
91-
* @param ContainerInterface $container To get the security context from.
92-
* @param AccessDecisionManagerInterface $accessDecisionManager Service to do the actual decision.
91+
* @param ContainerInterface $container To get the security context from
92+
* @param AccessDecisionManagerInterface $accessDecisionManager Service to do the actual decision
9393
* @param bool|string $bypassingRole A role that is allowed to bypass
9494
* the published check if we ask for
9595
* the VIEW permission. Ignored on
96-
* VIEW_ANONYMOUS.
96+
* VIEW_ANONYMOUS
9797
*/
9898
public function __construct(ContainerInterface $container, AccessDecisionManagerInterface $accessDecisionManager, $bypassingRole = false)
9999
{

Templating/Helper/CmfHelper.php

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ class CmfHelper extends Helper
5656
*
5757
* @param SecurityContextInterface $publishWorkflowChecker
5858
* @param ManagerRegistry $registry For loading PHPCR-ODM documents from
59-
* Doctrine.
59+
* Doctrine
6060
* @param string $managerName
6161
*/
6262
public function __construct(SecurityContextInterface $publishWorkflowChecker = null, $registry = null, $managerName = null)
@@ -174,7 +174,7 @@ public function find($path)
174174
* object itself
175175
* @param bool|null $ignoreRole whether the bypass role should be
176176
* ignored (leading to only show published content regardless of the
177-
* current user) or null to skip the published check completely.
177+
* current user) or null to skip the published check completely
178178
* @param null|string $class class name to filter on
179179
*
180180
* @return null|object
@@ -294,7 +294,7 @@ public function getLocalesFor($document, $includeFallbacks = false)
294294
*
295295
* @return bool|null|object child or null if the child cannot be found
296296
* or false if the parent is not managed by
297-
* the configured document manager.
297+
* the configured document manager
298298
*/
299299
public function getChild($parent, $name)
300300
{
@@ -312,9 +312,9 @@ public function getChild($parent, $name)
312312
/**
313313
* Gets child documents.
314314
*
315-
* @param string|object $parent parent id or document.
315+
* @param string|object $parent parent id or document
316316
* @param int|bool $limit maximum number of children to get or
317-
* false for no limit.
317+
* false for no limit
318318
* @param string|bool $offset node name to which to skip to or false
319319
* @param null|string $filter child name filter (optional)
320320
* @param bool|null $ignoreRole whether the role should be ignored or
@@ -381,15 +381,15 @@ public function getChildren($parent, $limit = false, $offset = false, $filter =
381381
*
382382
* This has the same semantics as the isLinkable method.
383383
*
384-
* @param string|object $parent parent path/document.
385-
* @param int|bool $limit limit or false for no limit.
384+
* @param string|object $parent parent path/document
385+
* @param int|bool $limit limit or false for no limit
386386
* @param string|bool $offset node name to which to skip to or false
387387
* to not skip any elements
388388
* @param null|string $filter child name filter
389389
* @param bool|null $ignoreRole whether the role should be ignored or
390390
* null if publish workflow should be
391-
* ignored (defaults to false).
392-
* @param string|null $class class name to filter on.
391+
* ignored (defaults to false)
392+
* @param string|null $class class name to filter on
393393
*
394394
* @return array
395395
*
@@ -461,9 +461,9 @@ private function getChildrenPaths($path, array &$children, $depth)
461461
}
462462

463463
/**
464-
* @param string|object $parent parent path/document.
464+
* @param string|object $parent parent path/document
465465
* @param null|int $depth null denotes no limit, depth of 1 means
466-
* direct children only.
466+
* direct children only
467467
*
468468
* @return array
469469
*/
@@ -776,13 +776,13 @@ public function getNext($current, $anchor = null, $depth = null, $ignoreRole = f
776776
* This has the same semantics as the isLinkable method.
777777
*
778778
* @param string|object $current Document instance or path from
779-
* which to search.
779+
* which to search
780780
* @param null|string|object $anchor Document instance or path which
781781
* serves as an anchor from which to
782-
* flatten the hierarchy.
782+
* flatten the hierarchy
783783
* @param null|int $depth Depth up to which to traverse down
784784
* the tree when an anchor is
785-
* provided.
785+
* provided
786786
* @param bool $ignoreRole Whether to ignore the role,
787787
*
788788
* @return null|object
@@ -808,14 +808,14 @@ public function getPrevLinkable($current, $anchor = null, $depth = null, $ignore
808808
* This has the same semantics as the isLinkable method.
809809
*
810810
* @param string|object $current Document instance or path from
811-
* which to search.
811+
* which to search
812812
* @param null|string|object $anchor Document instance or path which
813813
* serves as an anchor from which to
814-
* flatten the hierarchy.
814+
* flatten the hierarchy
815815
* @param null|int $depth Depth up to which to traverse down
816816
* the tree when an anchor is
817-
* provided.
818-
* @param bool $ignoreRole Whether to ignore the role.
817+
* provided
818+
* @param bool $ignoreRole Whether to ignore the role
819819
*
820820
* @return null|object
821821
*

Translatable/TranslatableInterface.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ interface TranslatableInterface
2121
{
2222
/**
2323
* @return string|bool The locale of this model or false if
24-
* translations are disabled in this project.
24+
* translations are disabled in this project
2525
*/
2626
public function getLocale();
2727

2828
/**
2929
* @param string|bool $locale The local for this model, or false if
30-
* translations are disabled in this project.
30+
* translations are disabled in this project
3131
*/
3232
public function setLocale($locale);
3333
}

0 commit comments

Comments
 (0)