summaryrefslogtreecommitdiffstats
path: root/Tests/Core/Encoder
diff options
context:
space:
mode:
authorFabien Potencier <fabien.potencier@gmail.com>2015-05-15 15:28:34 +0200
committerFabien Potencier <fabien.potencier@gmail.com>2015-05-15 15:28:34 +0200
commitc29b2f6d4618d6366d6e5fb3770169c7e1773bf3 (patch)
tree0590e954cc2ecc984a70105855fb319701239122 /Tests/Core/Encoder
parentffa3efde95d20fb8840f47c26de3bbc6425e1277 (diff)
parent9278dfa5dd6dfbcda01e947459b34fdd0e2e68bb (diff)
downloadsymfony-security-c29b2f6d4618d6366d6e5fb3770169c7e1773bf3.zip
symfony-security-c29b2f6d4618d6366d6e5fb3770169c7e1773bf3.tar.gz
symfony-security-c29b2f6d4618d6366d6e5fb3770169c7e1773bf3.tar.bz2
minor #14121 CS: Pre incrementation/decrementation should be used if possible (gharlan)
This PR was merged into the 2.3 branch. Discussion ---------- CS: Pre incrementation/decrementation should be used if possible | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | n/a | License | MIT | Doc PR | n/a Fixes provided by new fixer: https://github.com/FriendsOfPHP/PHP-CS-Fixer/pull/1113 If this pr is merged I would change the level of the fixer to `symfony`. Commits ------- c5123d6 CS: Pre incrementation/decrementation should be used if possible
Diffstat (limited to 'Tests/Core/Encoder')
-rw-r--r--Tests/Core/Encoder/BCryptPasswordEncoderTest.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/Tests/Core/Encoder/BCryptPasswordEncoderTest.php b/Tests/Core/Encoder/BCryptPasswordEncoderTest.php
index 61e2afe..3f8ba86 100644
--- a/Tests/Core/Encoder/BCryptPasswordEncoderTest.php
+++ b/Tests/Core/Encoder/BCryptPasswordEncoderTest.php
@@ -40,7 +40,7 @@ class BCryptPasswordEncoderTest extends \PHPUnit_Framework_TestCase
public function testCostInRange()
{
- for ($cost = 4; $cost <= 31; $cost++) {
+ for ($cost = 4; $cost <= 31; ++$cost) {
new BCryptPasswordEncoder($cost);
}
}