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

Commit a542abc

Browse files
GrahamCampbellfabpot
authored andcommitted
[2.3] CS And DocBlock Fixes
1 parent 3b19935 commit a542abc

File tree

56 files changed

+155
-150
lines changed

Some content is hidden

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

56 files changed

+155
-150
lines changed

Acl/Dbal/MutableAclProvider.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ public function findAcls(array $oids, array $sids = array())
138138
}
139139

140140
/**
141-
* Implementation of PropertyChangedListener
141+
* Implementation of PropertyChangedListener.
142142
*
143143
* This allows us to keep track of which values have been changed, so we don't
144144
* have to do a full introspection when ->updateAcl() is called.
@@ -674,7 +674,7 @@ protected function getUpdateAccessControlEntrySql($pk, array $sets)
674674
}
675675

676676
/**
677-
* Creates the ACL for the passed object identity
677+
* Creates the ACL for the passed object identity.
678678
*
679679
* @param ObjectIdentityInterface $oid
680680
*/

Acl/Dbal/Schema.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ final class Schema extends BaseSchema
2424
protected $options;
2525

2626
/**
27-
* Constructor
27+
* Constructor.
2828
*
2929
* @param array $options the names for tables
3030
* @param Connection $connection
@@ -61,7 +61,7 @@ public function addToSchema(BaseSchema $schema)
6161
}
6262

6363
/**
64-
* Adds the class table to the schema
64+
* Adds the class table to the schema.
6565
*/
6666
protected function addClassTable()
6767
{
@@ -73,7 +73,7 @@ protected function addClassTable()
7373
}
7474

7575
/**
76-
* Adds the entry table to the schema
76+
* Adds the entry table to the schema.
7777
*/
7878
protected function addEntryTable()
7979
{
@@ -101,7 +101,7 @@ protected function addEntryTable()
101101
}
102102

103103
/**
104-
* Adds the object identity table to the schema
104+
* Adds the object identity table to the schema.
105105
*/
106106
protected function addObjectIdentitiesTable()
107107
{
@@ -121,7 +121,7 @@ protected function addObjectIdentitiesTable()
121121
}
122122

123123
/**
124-
* Adds the object identity relation table to the schema
124+
* Adds the object identity relation table to the schema.
125125
*/
126126
protected function addObjectIdentityAncestorsTable()
127127
{
@@ -138,7 +138,7 @@ protected function addObjectIdentityAncestorsTable()
138138
}
139139

140140
/**
141-
* Adds the security identity table to the schema
141+
* Adds the security identity table to the schema.
142142
*/
143143
protected function addSecurityIdentitiesTable()
144144
{

Acl/Domain/Acl.php

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class Acl implements AuditableAclInterface, NotifyPropertyChanged
4747
private $listeners;
4848

4949
/**
50-
* Constructor
50+
* Constructor.
5151
*
5252
* @param int $id
5353
* @param ObjectIdentityInterface $objectIdentity
@@ -71,7 +71,7 @@ public function __construct($id, ObjectIdentityInterface $objectIdentity, Permis
7171
}
7272

7373
/**
74-
* Adds a property changed listener
74+
* Adds a property changed listener.
7575
*
7676
* @param PropertyChangedListener $listener
7777
*/
@@ -256,7 +256,7 @@ public function isSidLoaded($sids)
256256
}
257257

258258
/**
259-
* Implementation for the \Serializable interface
259+
* Implementation for the \Serializable interface.
260260
*
261261
* @return string
262262
*/
@@ -276,7 +276,7 @@ public function serialize()
276276
}
277277

278278
/**
279-
* Implementation for the \Serializable interface
279+
* Implementation for the \Serializable interface.
280280
*
281281
* @param string $serialized
282282
*/
@@ -395,7 +395,7 @@ public function updateObjectFieldAuditing($index, $field, $auditSuccess, $auditF
395395
}
396396

397397
/**
398-
* Deletes an ACE
398+
* Deletes an ACE.
399399
*
400400
* @param string $property
401401
* @param int $index
@@ -420,7 +420,7 @@ private function deleteAce($property, $index)
420420
}
421421

422422
/**
423-
* Deletes a field-based ACE
423+
* Deletes a field-based ACE.
424424
*
425425
* @param string $property
426426
* @param int $index
@@ -446,7 +446,7 @@ private function deleteFieldAce($property, $index, $field)
446446
}
447447

448448
/**
449-
* Inserts an ACE
449+
* Inserts an ACE.
450450
*
451451
* @param string $property
452452
* @param int $index
@@ -495,7 +495,7 @@ private function insertAce($property, $index, $mask, SecurityIdentityInterface $
495495
}
496496

497497
/**
498-
* Inserts a field-based ACE
498+
* Inserts a field-based ACE.
499499
*
500500
* @param string $property
501501
* @param int $index
@@ -553,7 +553,7 @@ private function insertFieldAce($property, $index, $field, $mask, SecurityIdenti
553553
}
554554

555555
/**
556-
* Updates an ACE
556+
* Updates an ACE.
557557
*
558558
* @param string $property
559559
* @param int $index
@@ -581,7 +581,7 @@ private function updateAce($property, $index, $mask, $strategy = null)
581581
}
582582

583583
/**
584-
* Updates auditing for an ACE
584+
* Updates auditing for an ACE.
585585
*
586586
* @param array &$aces
587587
* @param int $index
@@ -608,7 +608,7 @@ private function updateAuditing(array &$aces, $index, $auditSuccess, $auditFailu
608608
}
609609

610610
/**
611-
* Updates a field-based ACE
611+
* Updates a field-based ACE.
612612
*
613613
* @param string $property
614614
* @param int $index
@@ -642,7 +642,7 @@ private function updateFieldAce($property, $index, $field, $mask, $strategy = nu
642642
}
643643

644644
/**
645-
* Called when a property of the ACL changes
645+
* Called when a property of the ACL changes.
646646
*
647647
* @param string $name
648648
* @param mixed $oldValue
@@ -656,7 +656,7 @@ private function onPropertyChanged($name, $oldValue, $newValue)
656656
}
657657

658658
/**
659-
* Called when a property of an ACE associated with this ACL changes
659+
* Called when a property of an ACE associated with this ACL changes.
660660
*
661661
* @param EntryInterface $entry
662662
* @param string $name

Acl/Domain/AuditLogger.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@
1616
use Symfony\Component\Security\Acl\Model\AuditLoggerInterface;
1717

1818
/**
19-
* Base audit logger implementation
19+
* Base audit logger implementation.
2020
*
2121
* @author Johannes M. Schmitt <[email protected]>
2222
*/
2323
abstract class AuditLogger implements AuditLoggerInterface
2424
{
2525
/**
26-
* Performs some checks if logging was requested
26+
* Performs some checks if logging was requested.
2727
*
2828
* @param bool $granted
2929
* @param EntryInterface $ace
@@ -42,7 +42,7 @@ public function logIfNeeded($granted, EntryInterface $ace)
4242
}
4343

4444
/**
45-
* This method is only called when logging is needed
45+
* This method is only called when logging is needed.
4646
*
4747
* @param bool $granted
4848
* @param EntryInterface $ace

Acl/Domain/DoctrineAclCache.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class DoctrineAclCache implements AclCacheInterface
3232
private $permissionGrantingStrategy;
3333

3434
/**
35-
* Constructor
35+
* Constructor.
3636
*
3737
* @param Cache $cache
3838
* @param PermissionGrantingStrategyInterface $permissionGrantingStrategy
@@ -203,7 +203,7 @@ private function unserializeAcl($serialized)
203203
}
204204

205205
/**
206-
* Returns the key for the object identity
206+
* Returns the key for the object identity.
207207
*
208208
* @param ObjectIdentityInterface $oid
209209
*
@@ -216,7 +216,7 @@ private function getDataKeyByIdentity(ObjectIdentityInterface $oid)
216216
}
217217

218218
/**
219-
* Returns the alias key for the object identity key
219+
* Returns the alias key for the object identity key.
220220
*
221221
* @param string $aclId
222222
*

Acl/Domain/Entry.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
use Symfony\Component\Security\Acl\Model\SecurityIdentityInterface;
1717

1818
/**
19-
* Auditable ACE implementation
19+
* Auditable ACE implementation.
2020
*
2121
* @author Johannes M. Schmitt <[email protected]>
2222
*/
@@ -32,7 +32,7 @@ class Entry implements AuditableEntryInterface
3232
private $granting;
3333

3434
/**
35-
* Constructor
35+
* Constructor.
3636
*
3737
* @param int $id
3838
* @param AclInterface $acl
@@ -146,7 +146,7 @@ public function setAuditSuccess($boolean)
146146
}
147147

148148
/**
149-
* Sets the permission mask
149+
* Sets the permission mask.
150150
*
151151
* Do never call this method directly. Use the respective methods on the
152152
* AclInterface instead.
@@ -159,7 +159,7 @@ public function setMask($mask)
159159
}
160160

161161
/**
162-
* Sets the mask comparison strategy
162+
* Sets the mask comparison strategy.
163163
*
164164
* Do never call this method directly. Use the respective methods on the
165165
* AclInterface instead.
@@ -172,7 +172,7 @@ public function setStrategy($strategy)
172172
}
173173

174174
/**
175-
* Implementation of \Serializable
175+
* Implementation of \Serializable.
176176
*
177177
* @return string
178178
*/
@@ -190,7 +190,7 @@ public function serialize()
190190
}
191191

192192
/**
193-
* Implementation of \Serializable
193+
* Implementation of \Serializable.
194194
*
195195
* @param string $serialized
196196
*/

Acl/Domain/FieldEntry.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
use Symfony\Component\Security\Acl\Model\SecurityIdentityInterface;
1717

1818
/**
19-
* Field-aware ACE implementation which is auditable
19+
* Field-aware ACE implementation which is auditable.
2020
*
2121
* @author Johannes M. Schmitt <[email protected]>
2222
*/
@@ -25,7 +25,7 @@ class FieldEntry extends Entry implements FieldEntryInterface
2525
private $field;
2626

2727
/**
28-
* Constructor
28+
* Constructor.
2929
*
3030
* @param int $id
3131
* @param AclInterface $acl

Acl/Domain/ObjectIdentity.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
use Symfony\Component\Security\Acl\Model\ObjectIdentityInterface;
1818

1919
/**
20-
* ObjectIdentity implementation
20+
* ObjectIdentity implementation.
2121
*
2222
* @author Johannes M. Schmitt <[email protected]>
2323
*/
@@ -48,7 +48,7 @@ public function __construct($identifier, $type)
4848
}
4949

5050
/**
51-
* Constructs an ObjectIdentity for the given domain object
51+
* Constructs an ObjectIdentity for the given domain object.
5252
*
5353
* @param object $domainObject
5454
*
@@ -103,7 +103,7 @@ public function equals(ObjectIdentityInterface $identity)
103103
}
104104

105105
/**
106-
* Returns a textual representation of this object identity
106+
* Returns a textual representation of this object identity.
107107
*
108108
* @return string
109109
*/

Acl/Domain/ObjectIdentityRetrievalStrategy.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
use Symfony\Component\Security\Acl\Model\ObjectIdentityRetrievalStrategyInterface;
1616

1717
/**
18-
* Strategy to be used for retrieving object identities from domain objects
18+
* Strategy to be used for retrieving object identities from domain objects.
1919
*
2020
* @author Johannes M. Schmitt <[email protected]>
2121
*/

Acl/Domain/PermissionGrantingStrategy.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class PermissionGrantingStrategy implements PermissionGrantingStrategyInterface
3232
private $auditLogger;
3333

3434
/**
35-
* Sets the audit logger
35+
* Sets the audit logger.
3636
*
3737
* @param AuditLoggerInterface $auditLogger
3838
*/

0 commit comments

Comments
 (0)