Skip to content

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
leeqvip authored and StyleCIBot committed Oct 8, 2019
1 parent e82d8dd commit 5400545
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions src/Effect/DefaultEffector.php
Expand Up @@ -17,8 +17,8 @@ class DefaultEffector extends Effector
* merges all matching results collected by the enforcer into a single decision.
*
* @param string $expr
* @param array $effects
* @param array $results
* @param array $effects
* @param array $results
*
* @return bool
*
Expand Down
4 changes: 2 additions & 2 deletions src/Effect/Effector.php
Expand Up @@ -19,8 +19,8 @@ abstract class Effector

/**
* @param string $expr
* @param array $effects
* @param array $results
* @param array $effects
* @param array $results
*
* @return bool
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Model/FunctionMap.php
Expand Up @@ -29,7 +29,7 @@ public function addFunction(string $name, \Closure $func): void
*
* @return FunctionMap
*/
public static function loadFunctionMap(): FunctionMap
public static function loadFunctionMap(): self
{
$fm = new self();

Expand Down
8 changes: 4 additions & 4 deletions src/Model/Model.php
Expand Up @@ -103,7 +103,7 @@ private function getKeySuffix(int $i): string
private function loadSection(ConfigContract $cfg, string $sec): void
{
$i = 1;
for (;;) {
for (; ;) {
if (!$this->loadAssertion($cfg, $sec, $sec.$this->getKeySuffix($i))) {
break;
} else {
Expand All @@ -117,7 +117,7 @@ private function loadSection(ConfigContract $cfg, string $sec): void
*
* @return Model
*/
public static function newModel(): Model
public static function newModel(): self
{
return new self();
}
Expand All @@ -129,7 +129,7 @@ public static function newModel(): Model
*
* @return Model
*/
public static function newModelFromFile(string $path): Model
public static function newModelFromFile(string $path): self
{
$m = self::newModel();

Expand All @@ -145,7 +145,7 @@ public static function newModelFromFile(string $path): Model
*
* @return Model
*/
public static function newModelFromString(string $text): Model
public static function newModelFromString(string $text): self
{
$m = self::newModel();

Expand Down
4 changes: 2 additions & 2 deletions src/Util/BuiltinOperations.php
Expand Up @@ -64,7 +64,7 @@ public static function keyMatch2(string $key1, string $key2): bool
$key2 = str_replace(['/*'], ['/.*'], $key2);

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

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

0 comments on commit 5400545

Please sign in to comment.