aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIvan Enderlin <ivan.enderlin@hoa-project.net>2015-12-08 21:39:21 +0100
committerIvan Enderlin <ivan.enderlin@hoa-project.net>2015-12-08 21:39:21 +0100
commit3c92894fb24a3689143ef00a48f4f3934f27d48a (patch)
treecb214220d967b8f8394c5fe41dc87949a3ea1934
parenteac7c9a86ea5c94a55b1b99b04b851243410073d (diff)
downloadPraspel-3c92894fb24a3689143ef00a48f4f3934f27d48a.zip
Praspel-3c92894fb24a3689143ef00a48f4f3934f27d48a.tar.gz
Praspel-3c92894fb24a3689143ef00a48f4f3934f27d48a.tar.bz2
Consistency: Use `Hoa\Consistency`.
-rw-r--r--AssertionChecker/AssertionChecker.php18
-rw-r--r--AssertionChecker/Runtime.php18
-rw-r--r--Bin/Shell.php1
-rw-r--r--Exception/Exception.php4
-rw-r--r--Exception/Failure/Failure.php4
-rw-r--r--Iterator/Coverage/Coverage.php4
-rw-r--r--Model/Variable/Variable.php4
-rw-r--r--Praspel.php4
-rw-r--r--Preambler/Handler.php16
-rw-r--r--composer.json17
10 files changed, 45 insertions, 45 deletions
diff --git a/AssertionChecker/AssertionChecker.php b/AssertionChecker/AssertionChecker.php
index 90c7f2d..05e9c22 100644
--- a/AssertionChecker/AssertionChecker.php
+++ b/AssertionChecker/AssertionChecker.php
@@ -36,7 +36,7 @@
namespace Hoa\Praspel\AssertionChecker;
-use Hoa\Core;
+use Hoa\Consistency;
use Hoa\Praspel;
/**
@@ -73,7 +73,7 @@ abstract class AssertionChecker
/**
* Callable to validate and verify.
*
- * @var \Hoa\Core\Consistency\Xcallable
+ * @var \Hoa\Consistency\Xcallable
*/
protected $_callable = null;
@@ -83,13 +83,13 @@ abstract class AssertionChecker
* Construct.
*
* @param \Hoa\Praspel\Model\Specification $specification Specification.
- * @param \Hoa\Core\Consistency\Xcallable $callable Callable.
+ * @param \Hoa\Consistency\Xcallable $callable Callable.
* @param bool $genrateData Generate data.
* @return void
*/
public function __construct(
Praspel\Model\Specification $specification,
- Core\Consistency\Xcallable $callable,
+ Consistency\Xcallable $callable,
$generateData = false
) {
$this->setSpecification($specification);
@@ -238,10 +238,10 @@ abstract class AssertionChecker
/**
* Set callable.
*
- * @param \Hoa\Core\Consistency\Xcallable $callable Callable.
- * @return \Hoa\Core\Consistency\Xcallable
+ * @param \Hoa\Consistency\Xcallable $callable Callable.
+ * @return \Hoa\Consistency\Xcallable
*/
- protected function setCallable(Core\Consistency\Xcallable $callable)
+ protected function setCallable(Consistency\Xcallable $callable)
{
$old = $this->_callable;
$this->_callable = $callable;
@@ -252,7 +252,7 @@ abstract class AssertionChecker
/**
* Get callable.
*
- * @return \Hoa\Core\Consistency\Xcallable
+ * @return \Hoa\Consistency\Xcallable
*/
public function getCallable()
{
@@ -277,4 +277,4 @@ abstract class AssertionChecker
/**
* Flex entity.
*/
-Core\Consistency::flexEntity('Hoa\Praspel\AssertionChecker\AssertionChecker');
+Consistency::flexEntity('Hoa\Praspel\AssertionChecker\AssertionChecker');
diff --git a/AssertionChecker/Runtime.php b/AssertionChecker/Runtime.php
index 4e4504a..7358fd7 100644
--- a/AssertionChecker/Runtime.php
+++ b/AssertionChecker/Runtime.php
@@ -343,10 +343,10 @@ class Runtime extends AssertionChecker
/**
* Get attribute data.
*
- * @param \Hoa\Core\Consistency\Xcallable $callable Callable.
+ * @param \Hoa\Consistency\Xcallable $callable Callable.
* @return array
*/
- protected function getAttributeData(Core\Consistency\Xcallable $callable)
+ protected function getAttributeData(Consistency\Xcallable $callable)
{
$callback = $callable->getValidCallback();
@@ -375,17 +375,17 @@ class Runtime extends AssertionChecker
* Invoke.
*
* @acccess protected
- * @param \Hoa\Core\Consistency\Xcallable &$reflection Callable.
- * @param \ReflectionFunctionAbstract &$reflection Reflection.
- * @param array &$arguments Arguments.
- * @param bool $isConstructor Whether
- * it is a
- * constructor.
+ * @param \Hoa\Consistency\Xcallable &$reflection Callable.
+ * @param \ReflectionFunctionAbstract &$reflection Reflection.
+ * @param array &$arguments Arguments.
+ * @param bool $isConstructor Whether
+ * it is a
+ * constructor.
* @return mixed
* @throws \Exception
*/
protected function invoke(
- Core\Consistency\Xcallable &$callable,
+ Consistency\Xcallable &$callable,
\ReflectionFunctionAbstract &$reflection,
Array &$arguments,
$isConstructor
diff --git a/Bin/Shell.php b/Bin/Shell.php
index 8a338ec..c3ee788 100644
--- a/Bin/Shell.php
+++ b/Bin/Shell.php
@@ -38,7 +38,6 @@ namespace Hoa\Praspel\Bin;
use Hoa\Compiler;
use Hoa\Console;
-use Hoa\Core;
use Hoa\File;
use Hoa\Math;
use Hoa\Praspel;
diff --git a/Exception/Exception.php b/Exception/Exception.php
index ee837d8..5023a97 100644
--- a/Exception/Exception.php
+++ b/Exception/Exception.php
@@ -36,7 +36,7 @@
namespace Hoa\Praspel\Exception;
-use Hoa\Core;
+use Hoa\Consistency;
/**
* Interface \Hoa\Praspel\Exception.
@@ -53,4 +53,4 @@ interface Exception
/**
* Flex entity.
*/
-Core\Consistency::flexEntity('Hoa\Praspel\Exception\Exception');
+Consistency::flexEntity('Hoa\Praspel\Exception\Exception');
diff --git a/Exception/Failure/Failure.php b/Exception/Failure/Failure.php
index d26815e..3f512cf 100644
--- a/Exception/Failure/Failure.php
+++ b/Exception/Failure/Failure.php
@@ -36,7 +36,7 @@
namespace Hoa\Praspel\Exception\Failure;
-use Hoa\Core;
+use Hoa\Consistency;
use Hoa\Praspel;
/**
@@ -54,4 +54,4 @@ class Failure extends Praspel\Exception\AssertionChecker
/**
* Flex entity.
*/
-Core\Consistency::flexEntity('Hoa\Praspel\Exception\Failure\Failure');
+Consistency::flexEntity('Hoa\Praspel\Exception\Failure\Failure');
diff --git a/Iterator/Coverage/Coverage.php b/Iterator/Coverage/Coverage.php
index 21957de..7d0f4b0 100644
--- a/Iterator/Coverage/Coverage.php
+++ b/Iterator/Coverage/Coverage.php
@@ -36,7 +36,7 @@
namespace Hoa\Praspel\Iterator\Coverage;
-use Hoa\Core;
+use Hoa\Consistency;
use Hoa\Iterator;
use Hoa\Praspel;
@@ -119,4 +119,4 @@ class Coverage implements Iterator\Aggregate
/**
* Flex entity.
*/
-Core\Consistency::flexEntity('Hoa\Praspel\Iterator\Coverage\Coverage');
+Consistency::flexEntity('Hoa\Praspel\Iterator\Coverage\Coverage');
diff --git a/Model/Variable/Variable.php b/Model/Variable/Variable.php
index 8c16410..3e52081 100644
--- a/Model/Variable/Variable.php
+++ b/Model/Variable/Variable.php
@@ -36,7 +36,7 @@
namespace Hoa\Praspel\Model\Variable;
-use Hoa\Core;
+use Hoa\Consistency;
use Hoa\Math;
use Hoa\Praspel;
use Hoa\Realdom;
@@ -464,4 +464,4 @@ class Variable
/**
* Flex entity.
*/
-Core\Consistency::flexEntity('Hoa\Praspel\Model\Variable\Variable');
+Consistency::flexEntity('Hoa\Praspel\Model\Variable\Variable');
diff --git a/Praspel.php b/Praspel.php
index 1531aad..f92bce1 100644
--- a/Praspel.php
+++ b/Praspel.php
@@ -37,7 +37,7 @@
namespace Hoa\Praspel {
use Hoa\Compiler;
-use Hoa\Core;
+use Hoa\Consistency;
use Hoa\File;
/**
@@ -131,7 +131,7 @@ class Praspel
/**
* Flex entity.
*/
-Core\Consistency::flexEntity('Hoa\Praspel\Praspel');
+Consistency::flexEntity('Hoa\Praspel\Praspel');
}
diff --git a/Preambler/Handler.php b/Preambler/Handler.php
index 64877fa..5c559c4 100644
--- a/Preambler/Handler.php
+++ b/Preambler/Handler.php
@@ -36,7 +36,7 @@
namespace Hoa\Praspel\Preambler;
-use Hoa\Core;
+use Hoa\Consistency;
use Hoa\Praspel;
/**
@@ -52,7 +52,7 @@ class Handler
/**
* Callable to validate and verify.
*
- * @var \Hoa\Core\Consistency\Xcallable
+ * @var \Hoa\Consistency\Xcallable
*/
protected $__callable = null;
@@ -61,10 +61,10 @@ class Handler
/**
* Construct.
*
- * @param \Hoa\Core\Consistency\Xcallable $callable Callable.
+ * @param \Hoa\Consistency\Xcallable $callable Callable.
* @return void
*/
- public function __construct(Core\Consistency\Xcallable $callable)
+ public function __construct(Consistency\Xcallable $callable)
{
$this->__setCallable($callable);
@@ -158,10 +158,10 @@ class Handler
/**
* Set callable.
*
- * @param \Hoa\Core\Consistency\Xcallable $callable Callable.
- * @return \Hoa\Core\Consistency\Xcallable
+ * @param \Hoa\Consistency\Xcallable $callable Callable.
+ * @return \Hoa\Consistency\Xcallable
*/
- public function __setCallable(Core\Consistency\Xcallable $callable)
+ public function __setCallable(Consistency\Xcallable $callable)
{
$old = $this->__callable;
$this->__callable = $callable;
@@ -172,7 +172,7 @@ class Handler
/**
* Get callable.
*
- * @return \Hoa\Core\Consistency\Xcallable
+ * @return \Hoa\Consistency\Xcallable
*/
public function __getCallable()
{
diff --git a/composer.json b/composer.json
index 8989ba9..4afe1a9 100644
--- a/composer.json
+++ b/composer.json
@@ -23,14 +23,15 @@
"source": "http://git.hoa-project.net/"
},
"require": {
- "hoa/compiler" : "~2.0",
- "hoa/core" : "~2.0",
- "hoa/exception": "~0.0",
- "hoa/file" : "~0.0",
- "hoa/iterator" : "~1.0",
- "hoa/realdom" : "~0.0",
- "hoa/ustring" : "~3.0",
- "hoa/visitor" : "~1.0"
+ "hoa/compiler" : "~2.0",
+ "hoa/consistency": "~0.0",
+ "hoa/core" : "~2.0",
+ "hoa/exception" : "~0.0",
+ "hoa/file" : "~0.0",
+ "hoa/iterator" : "~1.0",
+ "hoa/realdom" : "~0.0",
+ "hoa/ustring" : "~3.0",
+ "hoa/visitor" : "~1.0"
},
"require-dev": {
"hoa/math": "~0.0"