|
@@ -121,9 +121,8 @@ class AclProviderBenchmarkTest extends \PHPUnit_Framework_TestCase
|
|
|
|
|
|
return $id-1;
|
|
|
}
|
|
|
- else {
|
|
|
- return rand(1000, $id-1);
|
|
|
- }
|
|
|
+
|
|
|
+ return rand(1000, $id-1);
|
|
|
}
|
|
|
|
|
|
protected function generateAcl($classId, $parentId, $ancestors)
|
|
@@ -163,9 +162,8 @@ class AclProviderBenchmarkTest extends \PHPUnit_Framework_TestCase
|
|
|
|
|
|
return $id-1;
|
|
|
}
|
|
|
- else {
|
|
|
- return rand(1000, $id-1);
|
|
|
- }
|
|
|
+
|
|
|
+ return rand(1000, $id-1);
|
|
|
}
|
|
|
|
|
|
protected function generateAces($classId, $objectId)
|
|
@@ -192,11 +190,9 @@ class AclProviderBenchmarkTest extends \PHPUnit_Framework_TestCase
|
|
|
$strategy = rand(0, 2);
|
|
|
if ($strategy === 0) {
|
|
|
$strategy = PermissionGrantingStrategy::ALL;
|
|
|
- }
|
|
|
- else if ($strategy === 1) {
|
|
|
+ } else if ($strategy === 1) {
|
|
|
$strategy = PermissionGrantingStrategy::ANY;
|
|
|
- }
|
|
|
- else {
|
|
|
+ } else {
|
|
|
$strategy = PermissionGrantingStrategy::EQUAL;
|
|
|
}
|
|
|
|
|
@@ -264,4 +260,4 @@ class AclProviderBenchmarkTest extends \PHPUnit_Framework_TestCase
|
|
|
{
|
|
|
return new AclProvider($this->con, $this->getStrategy(), $this->getOptions());
|
|
|
}
|
|
|
-}
|
|
|
+}
|