Skip to content

Commit 2e040d4

Browse files
committed
cleanup
1 parent b080456 commit 2e040d4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+42
-97
lines changed

src/Constraint/Constraint.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,15 @@
22

33
namespace Yaoi\Schema\Constraint;
44

5-
use Yaoi\Schema\NG\Schema;
5+
use Yaoi\Schema\Schema;
66

77
interface Constraint
88
{
9+
/**
10+
* @param Schema $schema
11+
* @return mixed
12+
* @todo justify existence
13+
*/
914
public function setToSchema(Schema $schema);
1015

1116
}

src/Constraint/Definitions.php

Lines changed: 0 additions & 18 deletions
This file was deleted.

src/Constraint/Properties.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
namespace Yaoi\Schema\Constraint;
44

5-
use Yaoi\Schema\NG\MagicMap;
6-
use Yaoi\Schema\NG\Schema;
7-
use Yaoi\Schema\NG\SchemaLoader;
5+
use Yaoi\Schema\MagicMap;
6+
use Yaoi\Schema\Schema;
7+
use Yaoi\Schema\SchemaLoader;
88
use Yaoi\Schema\Structure\ObjectItem;
99

1010
/**

src/Constraint/Ref.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace Yaoi\Schema\Constraint;
44

5-
use Yaoi\Schema\NG\Schema;
5+
use Yaoi\Schema\Schema;
66

77
class Ref implements Constraint
88
{

src/Constraint/Type.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
namespace Yaoi\Schema\Constraint;
44

55

6-
use Yaoi\Schema\NG\Schema;
6+
use Yaoi\Schema\Schema;
77

88
class Type implements Constraint
99
{

src/Exception.php

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,6 @@ public function __construct($message = "", $code = 0, Exception $previous = null
1616
parent::__construct($message, $code, $previous);
1717
}
1818

19-
public function pushStructureTrace($prefix)
20-
{
21-
array_unshift($this->structureTrace, $prefix);
22-
$this->message = $this->originalMessage . ' (' . implode('->', $this->structureTrace) . ')';
23-
}
24-
25-
public function getStructureTrace()
26-
{
27-
return $this->structureTrace;
28-
}
29-
3019
public $constraint;
3120
public function setConstraint(Constraint $constraint)
3221
{
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)