Skip to content

Commit

Permalink
Merge pull request #17 from php-casbin/analysis-86rJWN
Browse files Browse the repository at this point in the history
Apply fixes from StyleCI
  • Loading branch information
leeqvip committed Feb 24, 2019
2 parents 85a2321 + a4ce7f9 commit 477f830
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Model/Model.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ private function getKeySuffix($i)
private function loadSection($cfg, $sec)
{
$i = 1;
for (;;) {
for (; ;) {
if (!$this->loadAssertion($cfg, $sec, $sec.$this->getKeySuffix($i))) {
break;
} else {
Expand Down
2 changes: 1 addition & 1 deletion src/Rbac/DefaultRoleManager/RoleManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class RoleManager implements RoleManagerContract
protected $allRoles;

/**
* @var integer
* @var int
*/
protected $maxHierarchyLevel;

Expand Down
4 changes: 2 additions & 2 deletions src/Util/BuiltinOperations.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public static function keyMatch2($key1, $key2)
$key2 = str_replace(['/*'], ['/.*'], $key2);

$pattern = '/(.*):[^\/]+(.*)/';
for (;;) {
for (; ;) {
if (false === strpos($key2, '/:')) {
break;
}
Expand Down Expand Up @@ -108,7 +108,7 @@ public static function keyMatch3($key1, $key2)
$key2 = str_replace(['/*'], ['/.*'], $key2);

$pattern = '/(.*)\{[^\/]+\}(.*)/';
for (;;) {
for (; ;) {
if (false === strpos($key2, '/{')) {
break;
}
Expand Down

0 comments on commit 477f830

Please sign in to comment.