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

Commit 1ce741e

Browse files
committed
Merge branch '2.7' into 2.8
* 2.7: fixes CS
2 parents b60dfa5 + 5ccfeae commit 1ce741e

20 files changed

+31
-18
lines changed

Core/Authentication/Token/Storage/TokenStorage.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
1515

1616
/**
17-
* TokenStorage contains a TokenInterface
17+
* TokenStorage contains a TokenInterface.
1818
*
1919
* It gives access to the token representing the current user authentication.
2020
*

Core/Authorization/Voter/AbstractVoter.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
1616

1717
/**
18-
* Abstract Voter implementation that reduces boilerplate code required to create a custom Voter
18+
* Abstract Voter implementation that reduces boilerplate code required to create a custom Voter.
1919
*
2020
* @author Roman Marintšenko <inoryy@gmail.com>
2121
*/
@@ -44,7 +44,7 @@ public function supportsClass($class)
4444
}
4545

4646
/**
47-
* Iteratively check all given attributes by calling isGranted
47+
* Iteratively check all given attributes by calling isGranted.
4848
*
4949
* This method terminates as soon as it is able to return ACCESS_GRANTED
5050
* If at least one attribute is supported, but access not granted, then ACCESS_DENIED is returned
@@ -83,14 +83,14 @@ public function vote(TokenInterface $token, $object, array $attributes)
8383
}
8484

8585
/**
86-
* Return an array of supported classes. This will be called by supportsClass
86+
* Return an array of supported classes. This will be called by supportsClass.
8787
*
8888
* @return array an array of supported classes, i.e. array('Acme\DemoBundle\Model\Product')
8989
*/
9090
abstract protected function getSupportedClasses();
9191

9292
/**
93-
* Return an array of supported attributes. This will be called by supportsAttribute
93+
* Return an array of supported attributes. This will be called by supportsAttribute.
9494
*
9595
* @return array an array of supported attributes, i.e. array('CREATE', 'READ')
9696
*/
@@ -101,7 +101,7 @@ abstract protected function getSupportedAttributes();
101101
* It is safe to assume that $attribute and $object's class pass supportsAttribute/supportsClass
102102
* $user can be one of the following:
103103
* a UserInterface object (fully authenticated user)
104-
* a string (anonymously authenticated user)
104+
* a string (anonymously authenticated user).
105105
*
106106
* @param string $attribute
107107
* @param object $object

Core/Encoder/UserPasswordEncoder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
use Symfony\Component\Security\Core\User\UserInterface;
1515

1616
/**
17-
* A generic password encoder
17+
* A generic password encoder.
1818
*
1919
* @author Ariel Ferrandini <arielferrandini@gmail.com>
2020
*/

Core/Encoder/UserPasswordEncoderInterface.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
interface UserPasswordEncoderInterface
2222
{
2323
/**
24-
*
2524
* Encodes the plain password.
2625
*
2726
* @param UserInterface $user The user

Core/SecurityContext.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
*
2929
* @author Fabien Potencier <fabien@symfony.com>
3030
* @author Johannes M. Schmitt <schmittjoh@gmail.com>
31+
*
3132
* @deprecated since version 2.6, to be removed in 3.0.
3233
*/
3334
class SecurityContext implements SecurityContextInterface
@@ -43,7 +44,7 @@ class SecurityContext implements SecurityContextInterface
4344
private $authorizationChecker;
4445

4546
/**
46-
* For backwards compatibility, the signature of sf <2.6 still works
47+
* For backwards compatibility, the signature of sf <2.6 still works.
4748
*
4849
* @param TokenStorageInterface|AuthenticationManagerInterface $tokenStorage
4950
* @param AuthorizationCheckerInterface|AccessDecisionManagerInterface $authorizationChecker

Core/SecurityContextInterface.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
* The SecurityContextInterface.
2121
*
2222
* @author Johannes M. Schmitt <schmittjoh@gmail.com>
23+
*
2324
* @deprecated since version 2.6, to be removed in 3.0.
2425
*/
2526
interface SecurityContextInterface extends TokenStorageInterface, AuthorizationCheckerInterface

Core/Tests/LegacySecurityContextTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public function isGrantedDelegationProvider()
8181
}
8282

8383
/**
84-
* Test dedicated to check if the backwards compatibility is still working
84+
* Test dedicated to check if the backwards compatibility is still working.
8585
*/
8686
public function testOldConstructorSignature()
8787
{

Core/Tests/Validator/Constraints/LegacyUserPasswordValidatorTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515

1616
/**
1717
* @since 2.5.4
18+
*
1819
* @author Bernhard Schussek <bschussek@gmail.com>
1920
* @group legacy
2021
*/

Csrf/CsrfTokenManagerInterface.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
* Manages CSRF tokens.
1616
*
1717
* @since 2.4
18+
*
1819
* @author Bernhard Schussek <bschussek@gmail.com>
1920
*/
2021
interface CsrfTokenManagerInterface

Csrf/Tests/TokenGenerator/UriSafeTokenGeneratorTest.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ class UriSafeTokenGeneratorTest extends \PHPUnit_Framework_TestCase
2121
const ENTROPY = 1000;
2222

2323
/**
24-
* A non alpha-numeric byte string
24+
* A non alpha-numeric byte string.
25+
*
2526
* @var string
2627
*/
2728
private static $bytes;
@@ -57,7 +58,7 @@ public function testGenerateToken()
5758
{
5859
$this->random->expects($this->once())
5960
->method('nextBytes')
60-
->with(self::ENTROPY/8)
61+
->with(self::ENTROPY / 8)
6162
->will($this->returnValue(self::$bytes));
6263

6364
$token = $this->generator->generateToken();

0 commit comments

Comments
 (0)