Skip to content

Commit

Permalink
fix dto path
Browse files Browse the repository at this point in the history
  • Loading branch information
Владислав Масунов committed Jan 15, 2019
1 parent 3c428ab commit 7f76b0e
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 4 deletions.
3 changes: 1 addition & 2 deletions src/Services/DtoCreationService.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,9 @@ class DtoCreationService
*/
public function execute(string $className, string $namespace = null): bool
{

$resourseContent = file_get_contents(self::BASE_DTO_RESOURSE);

$classPath = lcfirst($namespace ?? self::DEFAULT_NAMESPACE . '/' . $className) . '.php';
$classPath = lcfirst($namespace ?? self::DEFAULT_NAMESPACE) . '/' . $className . '.php';

if (file_exists($classPath)) {
return false;
Expand Down
1 change: 0 additions & 1 deletion src/Services/DtoParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@

class DtoParser
{

/**
* @param string $class
* @return array
Expand Down
1 change: 0 additions & 1 deletion src/Services/YmlCreationService.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ class YmlCreationService
*/
public function execute(string $className, string $namespace = null): bool
{

$resourseContent = file_get_contents(self::BASE_YML_RESOURSE);

$ymlName = $namespace ?? self::DEFAULT_NAMESPACE . '.' . $className . '.yml';
Expand Down

0 comments on commit 7f76b0e

Please sign in to comment.