Skip to content

Commit

Permalink
change namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
andersao committed Oct 14, 2021
1 parent 19bc16a commit cc2a46a
Show file tree
Hide file tree
Showing 17 changed files with 31 additions and 31 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"license": "MIT",
"autoload": {
"psr-4": {
"Prettus\\FIQL\\": "src/"
"Prettus\\FIQLParser\\": "src/"
}
},
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/Constants.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Prettus\FIQL;
namespace Prettus\FIQLParser;

/**
* @author Anderson Andrade <[email protected]>
Expand Down
6 changes: 3 additions & 3 deletions src/Constraint.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php

namespace Prettus\FIQL;
namespace Prettus\FIQLParser;

use \Prettus\FIQL\Exceptions\FIQLObjectException;
use \Prettus\FIQL\Element as BaseElement;
use \Prettus\FIQLParser\Exceptions\FIQLObjectException;
use \Prettus\FIQLParser\Element as BaseElement;

const COMPARISON_MAP = [
'==' => '==',
Expand Down
2 changes: 1 addition & 1 deletion src/Contracts/Element.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Prettus\FIQL\Contracts;
namespace Prettus\FIQLParser\Contracts;

/**
* @author Anderson Andrade <[email protected]>
Expand Down
4 changes: 2 additions & 2 deletions src/Element.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

namespace Prettus\FIQL;
namespace Prettus\FIQLParser;

use \Prettus\FIQL\Contracts\Element as ElementInterface;
use \Prettus\FIQLParser\Contracts\Element as ElementInterface;

/**
* @author Anderson Andrade <[email protected]>
Expand Down
2 changes: 1 addition & 1 deletion src/Exceptions/FIQLObjectException.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Prettus\FIQL\Exceptions;
namespace Prettus\FIQLParser\Exceptions;

/**
* @author Anderson Andrade <[email protected]>
Expand Down
2 changes: 1 addition & 1 deletion src/Exceptions/FiqlException.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Prettus\FIQL\Exceptions;
namespace Prettus\FIQLParser\Exceptions;

/**
* @author Anderson Andrade <[email protected]>
Expand Down
2 changes: 1 addition & 1 deletion src/Exceptions/FiqlFormatException.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Prettus\FIQL\Exceptions;
namespace Prettus\FIQLParser\Exceptions;

/**
* @author Anderson Andrade <[email protected]>
Expand Down
6 changes: 3 additions & 3 deletions src/Expression.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php

namespace Prettus\FIQL;
namespace Prettus\FIQLParser;

use \Prettus\FIQL\Contracts\Element;
use \Prettus\FIQL\Element as BaseElement;
use \Prettus\FIQLParser\Contracts\Element;
use \Prettus\FIQLParser\Element as BaseElement;

/**
* @author Anderson Andrade <[email protected]>
Expand Down
4 changes: 2 additions & 2 deletions src/Operator.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

namespace Prettus\FIQL;
namespace Prettus\FIQLParser;

use \Prettus\FIQL\Exceptions\FIQLObjectException;
use \Prettus\FIQLParser\Exceptions\FIQLObjectException;

const OPERATOR_MAP = [
';' => ['and', 2],
Expand Down
4 changes: 2 additions & 2 deletions src/Parser.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

namespace Prettus\FIQL;
namespace Prettus\FIQLParser;

use \Prettus\FIQL\Exceptions\FiqlFormatException;
use \Prettus\FIQLParser\Exceptions\FiqlFormatException;

/**
* @author Anderson Andrade <[email protected]>
Expand Down
2 changes: 1 addition & 1 deletion src/Utils.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Prettus\FIQL;
namespace Prettus\FIQLParser;

/**
* @author Anderson Andrade <[email protected]>
Expand Down
6 changes: 3 additions & 3 deletions tests/Unit/ConstraintTest.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

use \Prettus\FIQL\Constraint;
use \Prettus\FIQL\Expression;
use \Prettus\FIQL\Exceptions\FIQLObjectException;
use \Prettus\FIQLParser\Constraint;
use \Prettus\FIQLParser\Expression;
use \Prettus\FIQLParser\Exceptions\FIQLObjectException;

test('should init a Constraint', function() {
$constraint = new Constraint('foo', '==', 'bar');
Expand Down
6 changes: 3 additions & 3 deletions tests/Unit/ExpressionTest.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

use \Prettus\FIQL\Expression;
use \Prettus\FIQL\Constraint;
use \Prettus\FIQL\Operator;
use \Prettus\FIQLParser\Expression;
use \Prettus\FIQLParser\Constraint;
use \Prettus\FIQLParser\Operator;

test('constructor of expression', function() {
$expression = new Expression();
Expand Down
4 changes: 2 additions & 2 deletions tests/Unit/OperatorTest.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

use \Prettus\FIQL\Operator;
use \Prettus\FIQL\Exceptions\FIQLObjectException;
use \Prettus\FIQLParser\Operator;
use \Prettus\FIQLParser\Exceptions\FIQLObjectException;


test('should throws exception if pass invalid operator', function($op) {
Expand Down
6 changes: 3 additions & 3 deletions tests/Unit/ParserTest.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

use \Prettus\FIQL\Parser;
use \Prettus\FIQL\Expression;
use \Prettus\FIQL\Exceptions\FiqlException;
use \Prettus\FIQLParser\Parser;
use \Prettus\FIQLParser\Expression;
use \Prettus\FIQLParser\Exceptions\FiqlException;


test('parse str to expression constraint only', function($fiqlStr, $expectedArray = []) {
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/RegexTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

use \Prettus\FIQL\Constants;
use \Prettus\FIQLParser\Constants;

function array_flatten($array) {
if (!is_array($array)) {
Expand Down

0 comments on commit cc2a46a

Please sign in to comment.