aboutsummaryrefslogtreecommitdiffstats
path: root/Visitor/Interpreter.php
diff options
context:
space:
mode:
authorIvan Enderlin <ivan.enderlin@hoa-project.net>2016-01-09 09:06:35 +0100
committerIvan Enderlin <ivan.enderlin@hoa-project.net>2016-01-09 09:06:35 +0100
commita224ff4b2b4b9600c24243452ce4d92bfe376d46 (patch)
treedb9b6de99f9feec7ea13ae4e9baf2f2e87c5f8d1 /Visitor/Interpreter.php
parentc7fbacdd1b30e88593e1adfaea07a9528c5deb84 (diff)
downloadPraspel-a224ff4b2b4b9600c24243452ce4d92bfe376d46.zip
Praspel-a224ff4b2b4b9600c24243452ce4d92bfe376d46.tar.gz
Praspel-a224ff4b2b4b9600c24243452ce4d92bfe376d46.tar.bz2
Quality: Run devtools:cs.
Diffstat (limited to 'Visitor/Interpreter.php')
-rw-r--r--Visitor/Interpreter.php17
1 files changed, 9 insertions, 8 deletions
diff --git a/Visitor/Interpreter.php b/Visitor/Interpreter.php
index 407ffc7..71bec9d 100644
--- a/Visitor/Interpreter.php
+++ b/Visitor/Interpreter.php
@@ -8,7 +8,7 @@
*
* New BSD License
*
- * Copyright © 2007-2015, Hoa community. All rights reserved.
+ * Copyright © 2007-2016, Hoa community. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
@@ -51,7 +51,7 @@ if (false === Consistency::entityExists('Hoa\Realdom\Disjunction')) {
*
* Compile Praspel to model.
*
- * @copyright Copyright © 2007-2015 Hoa community
+ * @copyright Copyright © 2007-2016 Hoa community
* @license New BSD License
*/
class Interpreter implements Visitor\Visit
@@ -104,8 +104,8 @@ class Interpreter implements Visitor\Visit
switch ($id) {
case '#specification':
- $this->_clause =
- $this->_current =
+ $this->_clause =
+ $this->_current =
$this->_root =
new Praspel\Model\Specification();
@@ -149,7 +149,7 @@ class Interpreter implements Visitor\Visit
$identifier = $child0->accept($this, $handle, false);
$previous = $this->_current;
- $this->_clause =
+ $this->_clause =
$this->_current =
$this
->_current
@@ -165,9 +165,9 @@ class Interpreter implements Visitor\Visit
break;
case '#default':
- $children = $element->getChildren();
- $previous = $this->_current;
- $this->_clause =
+ $children = $element->getChildren();
+ $previous = $this->_current;
+ $this->_clause =
$this->_current =
$this
->_current
@@ -583,6 +583,7 @@ class Interpreter implements Visitor\Visit
case 'accepted':
case 'string':
case 'regex';
+
return $value;
default: