Skip to content

Commit

Permalink
removed common ns
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbakker committed Jan 30, 2023
1 parent a11ea38 commit bb7445f
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/Components/Helpers/ApiHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
namespace Afosto\ApiClient\Components\Helpers;


use Doctrine\Common\Inflector\Inflector;
use Doctrine\Inflector\Inflector;

class ApiHelper {

Expand Down
2 changes: 1 addition & 1 deletion src/Components/ModelTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use Afosto\ApiClient\Components\Helpers\ApiHelper;
use Afosto\ApiClient\Models\Products\Product;
use Afosto\ApiClient\Components\Models\Count;
use Doctrine\Common\Inflector\Inflector;
use Doctrine\Inflector\Inflector;
/**
* @property Api $api
* @property boolean $hasErrors
Expand Down
2 changes: 1 addition & 1 deletion src/Components/Models/Relation.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

use Afosto\ApiClient\Components\Component;
use Afosto\ApiClient\Components\Helpers\ApiHelper;
use Doctrine\Common\Inflector\Inflector;
use Doctrine\Inflector\Inflector;

class Relation extends Component {

Expand Down
2 changes: 1 addition & 1 deletion src/Components/WebhookTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@


use Afosto\ApiClient\Components\Exceptions\WebhookException;
use Doctrine\Common\Inflector\Inflector;
use Doctrine\Inflector\Inflector;

trait WebhookTrait {

Expand Down
2 changes: 1 addition & 1 deletion src/Generator/Definition.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Afosto\ApiClient\Generator;

use Doctrine\Common\Inflector\Inflector;
use Doctrine\Inflector\Inflector;

class Definition {

Expand Down
2 changes: 1 addition & 1 deletion src/Generator/Generator.php
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ private function _gatherPaths() {
$this->_paths = [];
foreach ($this->_swaggerSource['paths'] as $path => $pathData) {
$path = current(explode('/', substr($path, 1)));
$this->_paths[] = \Doctrine\Common\Inflector\Inflector::singularize($path);
$this->_paths[] = \Doctrine\Inflector\Inflector::singularize($path);
}
$this->_paths = array_unique($this->_paths);
}
Expand Down

0 comments on commit bb7445f

Please sign in to comment.