From dc86c3f13d6e98711c1934e4eb36d591ed06129d Mon Sep 17 00:00:00 2001 From: = Date: Fri, 15 Apr 2016 10:28:39 +0200 Subject: [PATCH] Avoid namespace clashes. --- composer.json | 2 +- qtism/runtime/expressions/operators/AnyNProcessor.php | 8 ++++---- qtism/runtime/expressions/operators/EqualProcessor.php | 8 ++++---- .../expressions/operators/EqualRoundedProcessor.php | 6 +++--- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/composer.json b/composer.json index a449e64c2..557272bf7 100644 --- a/composer.json +++ b/composer.json @@ -2,7 +2,7 @@ "name": "qtism/qtism", "description": "OAT QTI Software Module Library", "type": "library", - "version": "0.9.25", + "version": "0.9.26", "authors": [ { "name": "Open Assessment Technologies S.A.", diff --git a/qtism/runtime/expressions/operators/AnyNProcessor.php b/qtism/runtime/expressions/operators/AnyNProcessor.php index 91c0d4ccf..fee159796 100644 --- a/qtism/runtime/expressions/operators/AnyNProcessor.php +++ b/qtism/runtime/expressions/operators/AnyNProcessor.php @@ -28,7 +28,7 @@ use qtism\common\datatypes\Integer; use qtism\data\expressions\operators\AnyN; use qtism\data\expressions\Expression; -use qtism\runtime\expressions\Utils; +use qtism\runtime\expressions\Utils as ProcessingUtils; use \InvalidArgumentException; /** @@ -82,7 +82,7 @@ public function process() { if (is_string($min) === true) { // variable reference for 'min' to handle. $state = $this->getState(); - $varName = Utils::sanitizeVariableRef($min); + $varName = ProcessingUtils::sanitizeVariableRef($min); $varValue = $state[$varName]; if (is_null($varValue)) { @@ -101,7 +101,7 @@ public function process() { if (is_string($max) === true) { // variable reference for 'max' to handle. $state = $this->getState(); - $varName = Utils::sanitizeVariableRef($max); + $varName = ProcessingUtils::sanitizeVariableRef($max); $varValue = $state[$varName]; if (is_null($varValue)) { @@ -151,4 +151,4 @@ public function process() { } } } -} \ No newline at end of file +} diff --git a/qtism/runtime/expressions/operators/EqualProcessor.php b/qtism/runtime/expressions/operators/EqualProcessor.php index 41b497631..d693c292f 100644 --- a/qtism/runtime/expressions/operators/EqualProcessor.php +++ b/qtism/runtime/expressions/operators/EqualProcessor.php @@ -29,7 +29,7 @@ use qtism\data\expressions\operators\ToleranceMode; use qtism\data\expressions\operators\Equal; use qtism\data\expressions\Expression; -use qtism\runtime\expressions\Utils; +use qtism\runtime\expressions\Utils as ProcessingUtils; use \InvalidArgumentException; /** @@ -116,7 +116,7 @@ public function process() { // variableRef to handle. $state = $this->getState(); - $tolerance0Name = Utils::sanitizeVariableRef($strTolerance[0]); + $tolerance0Name = ProcessingUtils::sanitizeVariableRef($strTolerance[0]); $varValue = $state[$tolerance0Name]; if (is_null($varValue)) { @@ -132,7 +132,7 @@ public function process() { if (isset($strTolerance[1]) && gettype($strTolerance[1]) === 'string') { // A second variableRef to handle. - $tolerance1Name = Utils::sanitizeVariableRef($strTolerance[1]); + $tolerance1Name = ProcessingUtils::sanitizeVariableRef($strTolerance[1]); if (($varValue = $state[$tolerance1Name]) !== null && $varValue instanceof Float) { $tolerance[] = $varValue->getValue(); @@ -163,4 +163,4 @@ public function process() { } } } -} \ No newline at end of file +} diff --git a/qtism/runtime/expressions/operators/EqualRoundedProcessor.php b/qtism/runtime/expressions/operators/EqualRoundedProcessor.php index a0e0db9d2..4b3da868c 100644 --- a/qtism/runtime/expressions/operators/EqualRoundedProcessor.php +++ b/qtism/runtime/expressions/operators/EqualRoundedProcessor.php @@ -32,7 +32,7 @@ use qtism\runtime\common\Utils as RuntimeUtils; use qtism\data\expressions\operators\EqualRounded; use qtism\data\expressions\Expression; -use qtism\runtime\expressions\Utils; +use qtism\runtime\expressions\Utils as ProcessingUtils; use \InvalidArgumentException; /** @@ -103,7 +103,7 @@ public function process() { if (gettype($figures) === 'string') { // Variable reference to deal with. $state = $this->getState(); - $varName = Utils::sanitizeVariableRef($figures); + $varName = ProcessingUtils::sanitizeVariableRef($figures); $varValue = $state[$varName]; if (is_null($varValue) === true) { @@ -137,4 +137,4 @@ public function process() { return new Boolean($rounded[0]->getValue() == $rounded[1]->getValue()); } -} \ No newline at end of file +}