Skip to content

Commit

Permalink
fix style code
Browse files Browse the repository at this point in the history
  • Loading branch information
pedro151 committed Apr 27, 2016
1 parent 2b8f20d commit fd3b953
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 0 additions & 1 deletion build/Classes/AdapterConfig/AbstractAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ abstract class AbstractAdapter
'database' => true ,
'host' => true ,
'username' => true ,
// 'password' => true ,
'path' => true
);

Expand Down
8 changes: 5 additions & 3 deletions build/Classes/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

use Classes\AdapterConfig\None;
use Classes\AdapterConfig\ZendFrameworkOne;
use Classes\AdapterMakerFile\AbstractAdapter;
use Classes\AdaptersDriver\Dblib;
use Classes\AdaptersDriver\Mssql;
use Classes\AdaptersDriver\Mysql;
Expand Down Expand Up @@ -211,15 +212,16 @@ protected function loadIniFile ( $filename )
* analisa a opção e cria a instancia do Atapter do determinado framework
*
* @return \Classes\AdapterConfig\AbstractAdapter
*
*/
private function factoryConfig ()
{
switch ( strtolower ( $this->argv[ 'framework' ] ) )
{
case 'none':
return new None( $this->argv );
case 'zend_framework':
return new ZendFrameworkOne( $this->argv );
default:
return new None( $this->argv );
}

}
Expand Down Expand Up @@ -255,7 +257,7 @@ private function factoryDriver ()
*/
public function getAdapterConfig ()
{
if ( ! $this->adapterConfig )
if ( ! $this->adapterConfig instanceof AbstractAdapter )
{
$this->adapterConfig = $this->factoryConfig ();
}
Expand Down

0 comments on commit fd3b953

Please sign in to comment.