Skip to content
This repository was archived by the owner on May 31, 2024. It is now read-only.

Commit 3d7eddb

Browse files
@throws annotations should go after @return
1 parent 1eebd2b commit 3d7eddb

File tree

5 files changed

+18
-18
lines changed

5 files changed

+18
-18
lines changed

Acl/Dbal/MutableAclProvider.php

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -554,9 +554,9 @@ protected function getInsertObjectIdentitySql($identifier, $classId, $entriesInh
554554
*
555555
* @param SecurityIdentityInterface $sid
556556
*
557-
* @throws \InvalidArgumentException
558-
*
559557
* @return string
558+
*
559+
* @throws \InvalidArgumentException
560560
*/
561561
protected function getInsertSecurityIdentitySql(SecurityIdentityInterface $sid)
562562
{
@@ -626,9 +626,9 @@ protected function getSelectClassIdSql($classType)
626626
*
627627
* @param SecurityIdentityInterface $sid
628628
*
629-
* @throws \InvalidArgumentException
630-
*
631629
* @return string
630+
*
631+
* @throws \InvalidArgumentException
632632
*/
633633
protected function getSelectSecurityIdentityIdSql(SecurityIdentityInterface $sid)
634634
{
@@ -655,9 +655,9 @@ protected function getSelectSecurityIdentityIdSql(SecurityIdentityInterface $sid
655655
*
656656
* @param SecurityIdentityInterface $sid
657657
*
658-
* @throws \InvalidArgumentException
659-
*
660658
* @return string
659+
*
660+
* @throws \InvalidArgumentException
661661
*/
662662
protected function getDeleteSecurityIdentityIdSql(SecurityIdentityInterface $sid)
663663
{
@@ -673,9 +673,9 @@ protected function getDeleteSecurityIdentityIdSql(SecurityIdentityInterface $sid
673673
* @param int $pk
674674
* @param array $changes
675675
*
676-
* @throws \InvalidArgumentException
677-
*
678676
* @return string
677+
*
678+
* @throws \InvalidArgumentException
679679
*/
680680
protected function getUpdateObjectIdentitySql($pk, array $changes)
681681
{
@@ -723,9 +723,9 @@ protected function getUpdateUserSecurityIdentitySql(UserSecurityIdentity $usid,
723723
* @param int $pk
724724
* @param array $sets
725725
*
726-
* @throws \InvalidArgumentException
727-
*
728726
* @return string
727+
*
728+
* @throws \InvalidArgumentException
729729
*/
730730
protected function getUpdateAccessControlEntrySql($pk, array $sets)
731731
{

Acl/Domain/ObjectIdentity.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ public function __construct($identifier, $type)
5252
*
5353
* @param object $domainObject
5454
*
55-
* @throws InvalidDomainObjectException
56-
*
5755
* @return ObjectIdentity
56+
*
57+
* @throws InvalidDomainObjectException
5858
*/
5959
public static function fromDomainObject($domainObject)
6060
{

Acl/Model/AclInterface.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,9 @@ public function isFieldGranted($field, array $masks, array $securityIdentities,
9797
* @param array $securityIdentities
9898
* @param bool $administrativeMode
9999
*
100-
* @throws NoAceFoundException when no ACE was applicable for this request
101-
*
102100
* @return bool
101+
*
102+
* @throws NoAceFoundException when no ACE was applicable for this request
103103
*/
104104
public function isGranted(array $masks, array $securityIdentities, $administrativeMode = false);
105105

Acl/Model/MutableAclProviderInterface.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ interface MutableAclProviderInterface extends AclProviderInterface
2525
*
2626
* @param ObjectIdentityInterface $oid
2727
*
28+
* @return MutableAclInterface
29+
*
2830
* @throws AclAlreadyExistsException when there already is an ACL for the given
2931
* object identity
30-
*
31-
* @return MutableAclInterface
3232
*/
3333
public function createAcl(ObjectIdentityInterface $oid);
3434

Acl/Permission/MaskBuilder.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,10 @@ public function getPattern()
9696
*
9797
* @param int $mask
9898
*
99+
* @return string
100+
*
99101
* @throws \InvalidArgumentException
100102
* @throws \RuntimeException
101-
*
102-
* @return string
103103
*/
104104
public static function getCode($mask)
105105
{

0 commit comments

Comments
 (0)