Skip to content

Commit

Permalink
Code review
Browse files Browse the repository at this point in the history
  • Loading branch information
liketomove committed Jul 14, 2019
1 parent 2aeaf03 commit 0db2f2d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions components/DoctrineComponent.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
namespace yii\doctrine\components;

use Doctrine\ORM\EntityManager;
use \Doctrine\ORM\Tools\Setup;
use Doctrine\ORM\Tools\Setup;
use yii\base\Component;
use yii\console\Exception;

class DoctrineComponent extends Component
{
private $em = null;
private $em = null;
private $isDev = false;
private $basePath;
private $proxyPath;
Expand Down
4 changes: 2 additions & 2 deletions console/DoctrineController.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public function optionAliases()
return ['o' => 'option'];
}


private function env()
{
$args = $_SERVER['argv'];
Expand All @@ -43,7 +43,7 @@ private function env()
}

if (isset($this->option)) {
$_SERVER['argv'][2] = str_replace('-o=','' , $_SERVER['argv'][2]);
$_SERVER['argv'][2] = str_replace('-o=', '', $_SERVER['argv'][2]);
}
}
}

0 comments on commit 0db2f2d

Please sign in to comment.