aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIvan Enderlin <ivan.enderlin@hoa-project.net>2016-08-15 11:23:34 +0200
committerIvan Enderlin <ivan.enderlin@hoa-project.net>2016-08-15 11:23:34 +0200
commit6258bdcbae16db5ac776728c4a11cbf2895f6113 (patch)
tree5e0c5c789e27f29bda2c48c6b83d219b197f093c
parent2461a5240d644497918eb25706b84770ed1583e2 (diff)
downloadCompiler-6258bdcbae16db5ac776728c4a11cbf2895f6113.zip
Compiler-6258bdcbae16db5ac776728c4a11cbf2895f6113.tar.gz
Compiler-6258bdcbae16db5ac776728c4a11cbf2895f6113.tar.bz2
Quality: Run `hoa devtools:cs`.
-rw-r--r--Exception/IllegalToken.php1
-rw-r--r--Exception/UnrecognizedToken.php1
-rw-r--r--Ll1.php1
-rw-r--r--Llk/Lexer.php1
-rw-r--r--Llk/Parser.php1
-rw-r--r--Llk/Rule/Analyzer.php1
-rw-r--r--Llk/Rule/Invocation.php1
-rw-r--r--Llk/Rule/Repetition.php1
-rw-r--r--Llk/Rule/Rule.php1
-rw-r--r--Llk/Rule/Token.php1
-rw-r--r--Llk/Sampler/BoundedExhaustive.php1
-rw-r--r--Llk/Sampler/Sampler.php1
-rw-r--r--Llk/Sampler/Uniform.php1
-rw-r--r--Llk/TreeNode.php1
-rw-r--r--Test/Unit/Llk/Llk.php4
15 files changed, 2 insertions, 16 deletions
diff --git a/Exception/IllegalToken.php b/Exception/IllegalToken.php
index 25406c6..a2c1321 100644
--- a/Exception/IllegalToken.php
+++ b/Exception/IllegalToken.php
@@ -63,7 +63,6 @@ class IllegalToken extends Exception
* @param array $arg RaiseError string arguments.
* @param int $line Line.
* @param int $column Column.
- * @return void
*/
public function __construct($message, $code, $arg, $line, $column)
{
diff --git a/Exception/UnrecognizedToken.php b/Exception/UnrecognizedToken.php
index 0762cb7..fb307ea 100644
--- a/Exception/UnrecognizedToken.php
+++ b/Exception/UnrecognizedToken.php
@@ -63,7 +63,6 @@ class UnrecognizedToken extends Exception
* @param array $arg RaiseError string arguments.
* @param int $line Line.
* @param int $column Column.
- * @return void
*/
public function __construct($message, $code, $arg, $line, $column)
{
diff --git a/Ll1.php b/Ll1.php
index 98ed1c4..49bf281 100644
--- a/Ll1.php
+++ b/Ll1.php
@@ -330,7 +330,6 @@ abstract class Ll1
* @param array $transitions Transitions table.
* @param array $actions Actions table.
* @param array $names Names of automata.
- * @return void
*/
public function __construct(
array $skip,
diff --git a/Llk/Lexer.php b/Llk/Lexer.php
index c2b42c5..3901838 100644
--- a/Llk/Lexer.php
+++ b/Llk/Lexer.php
@@ -89,7 +89,6 @@ class Lexer
* Constructor.
*
* @param array $pragmas Pragmas.
- * @return void
*/
public function __construct(array $pragmas = [])
{
diff --git a/Llk/Parser.php b/Llk/Parser.php
index 77e247c..5ae933b 100644
--- a/Llk/Parser.php
+++ b/Llk/Parser.php
@@ -128,7 +128,6 @@ class Parser
* @param array $tokens Tokens.
* @param array $rules Rules.
* @param array $pragmas Pragmas.
- * @return void
*/
public function __construct(
array $tokens = [],
diff --git a/Llk/Rule/Analyzer.php b/Llk/Rule/Analyzer.php
index 73a8248..a07ca2e 100644
--- a/Llk/Rule/Analyzer.php
+++ b/Llk/Rule/Analyzer.php
@@ -120,7 +120,6 @@ class Analyzer
* Constructor.
*
* @param array $tokens Tokens.
- * @return void
*/
public function __construct(array $tokens)
{
diff --git a/Llk/Rule/Invocation.php b/Llk/Rule/Invocation.php
index 08499ef..3df95bc 100644
--- a/Llk/Rule/Invocation.php
+++ b/Llk/Rule/Invocation.php
@@ -91,7 +91,6 @@ abstract class Invocation
* @param mixed $data Data.
* @param array $todo Todo.
* @param int $depth Depth.
- * @return void
*/
public function __construct(
$rule,
diff --git a/Llk/Rule/Repetition.php b/Llk/Rule/Repetition.php
index 1264f4f..374ea72 100644
--- a/Llk/Rule/Repetition.php
+++ b/Llk/Rule/Repetition.php
@@ -72,7 +72,6 @@ class Repetition extends Rule
* @param int $max Maximum bound.
* @param mixed $children Children.
* @param string $nodeId Node ID.
- * @return void
*/
public function __construct($name, $min, $max, $children, $nodeId)
{
diff --git a/Llk/Rule/Rule.php b/Llk/Rule/Rule.php
index 03a5b8b..142bfa6 100644
--- a/Llk/Rule/Rule.php
+++ b/Llk/Rule/Rule.php
@@ -113,7 +113,6 @@ abstract class Rule
* @param string $name Rule name.
* @param mixed $children Children.
* @param string $nodeId Node ID.
- * @return void
*/
public function __construct($name, $children, $nodeId = null)
{
diff --git a/Llk/Rule/Token.php b/Llk/Rule/Token.php
index 68ae3cb..40d45b5 100644
--- a/Llk/Rule/Token.php
+++ b/Llk/Rule/Token.php
@@ -115,7 +115,6 @@ class Token extends Rule
* @param string $nodeId Node ID.
* @param int $unification Unification index.
* @param bool $kept Whether the token is kept or not in the AST.
- * @return void
*/
public function __construct(
$name,
diff --git a/Llk/Sampler/BoundedExhaustive.php b/Llk/Sampler/BoundedExhaustive.php
index 51e74a8..1532d31 100644
--- a/Llk/Sampler/BoundedExhaustive.php
+++ b/Llk/Sampler/BoundedExhaustive.php
@@ -98,7 +98,6 @@ class BoundedExhaustive
* @param \Hoa\Compiler\Llk\Parser $compiler Compiler/parser.
* @param \Hoa\Visitor\Visit $tokenSampler Token sampler.
* @param int $length Max data length.
- * @return void
*/
public function __construct(
Compiler\Llk\Parser $compiler,
diff --git a/Llk/Sampler/Sampler.php b/Llk/Sampler/Sampler.php
index 9a09111..43d6c1d 100644
--- a/Llk/Sampler/Sampler.php
+++ b/Llk/Sampler/Sampler.php
@@ -105,7 +105,6 @@ abstract class Sampler
*
* @param \Hoa\Compiler\Llk\Parser $compiler Compiler/parser.
* @param \Hoa\Visitor\Visit $tokenSampler Token sampler.
- * @return void
*/
public function __construct(
Compiler\Llk\Parser $compiler,
diff --git a/Llk/Sampler/Uniform.php b/Llk/Sampler/Uniform.php
index 8aee0ba..a119bb9 100644
--- a/Llk/Sampler/Uniform.php
+++ b/Llk/Sampler/Uniform.php
@@ -75,7 +75,6 @@ class Uniform extends Sampler
*
* @param \Hoa\Compiler\Llk\Parser $compiler Compiler/parser.
* @param \Hoa\Visitor\Visit $tokenSampler Token sampler.
- * @return void
*/
public function __construct(
Compiler\Llk\Parser $compiler,
diff --git a/Llk/TreeNode.php b/Llk/TreeNode.php
index 8f2e09f..a8a7fbc 100644
--- a/Llk/TreeNode.php
+++ b/Llk/TreeNode.php
@@ -92,7 +92,6 @@ class TreeNode implements Visitor\Element
* @param array $value Value.
* @param array $children Children.
* @param \Hoa\Compiler\Llk\TreeNode $parent Parent.
- * @return void
*/
public function __construct(
$id,
diff --git a/Test/Unit/Llk/Llk.php b/Test/Unit/Llk/Llk.php
index 416c96b..266425a 100644
--- a/Test/Unit/Llk/Llk.php
+++ b/Test/Unit/Llk/Llk.php
@@ -330,8 +330,8 @@ OUTPUT
' single space' . "\n" .
' single space' . "\n" .
'ruleB:' . "\n" .
- ' many spaces'. "\n" .
- "\t" . 'single tab'. "\n" .
+ ' many spaces' . "\n" .
+ "\t" . 'single tab' . "\n" .
'ruleC:' . "\n" .
"\t\t" . 'many tabs' . "\n"
)