aboutsummaryrefslogtreecommitdiffstats
path: root/Llk
diff options
context:
space:
mode:
authorIvan Enderlin <ivan.enderlin@hoa-project.net>2016-08-12 17:08:59 +0200
committerIvan Enderlin <ivan.enderlin@hoa-project.net>2016-08-12 17:08:59 +0200
commitdc43c24d01226cf50e747e6483684138d7fda239 (patch)
treec298744b31c24c6fe52b5eeb91e134863e43991a /Llk
parent4c36d24b8a2c55b149f64c8057f376fc856889fd (diff)
downloadCompiler-dc43c24d01226cf50e747e6483684138d7fda239.zip
Compiler-dc43c24d01226cf50e747e6483684138d7fda239.tar.gz
Compiler-dc43c24d01226cf50e747e6483684138d7fda239.tar.bz2
Quality: Fix CS.
Diffstat (limited to 'Llk')
-rw-r--r--Llk/Llk.php5
-rw-r--r--Llk/Rule/Repetition.php2
2 files changed, 3 insertions, 4 deletions
diff --git a/Llk/Llk.php b/Llk/Llk.php
index 8750e60..658ed2d 100644
--- a/Llk/Llk.php
+++ b/Llk/Llk.php
@@ -268,7 +268,6 @@ class Llk
' ' . $arguments['name'] . ' => new \\' . get_class($rule) . '(' .
implode(', ', $arguments) .
'),';
-
}
foreach ($parser->getPragmas() as $pragmaName => $pragmaValue) {
@@ -279,7 +278,7 @@ class Llk
? (true === $pragmaValue ? 'true' : 'false')
: (is_int($pragmaValue)
? $pragmaValue
- : '\'' .$pragmaValue . '\'')) .
+ : '\'' . $pragmaValue . '\'')) .
',';
}
@@ -353,7 +352,7 @@ class Llk
}
$pragmas[$matches[1]] = $pragmaValue;
- } else if (0 !== preg_match('#^%skip\s+(?:([^:]+):)?([^\s]+)\s+(.*)$#u', $line, $matches)) {
+ } elseif (0 !== preg_match('#^%skip\s+(?:([^:]+):)?([^\s]+)\s+(.*)$#u', $line, $matches)) {
if (empty($matches[1])) {
$matches[1] = 'default';
}
diff --git a/Llk/Rule/Repetition.php b/Llk/Rule/Repetition.php
index 31d0d23..1264f4f 100644
--- a/Llk/Rule/Repetition.php
+++ b/Llk/Rule/Repetition.php
@@ -78,7 +78,7 @@ class Repetition extends Rule
{
parent::__construct($name, $children, $nodeId);
- $min = max( 0, (int) $min);
+ $min = max(0, (int) $min);
$max = max(-1, (int) $max);
if (-1 !== $max && $min > $max) {