@@ -192,7 +192,7 @@ discard block |
||
| 192 | 192 | $configIni = isset( $argv[ 'name-ini' ] ) |
| 193 | 193 | ? $argv[ 'name-ini' ] |
| 194 | 194 | : $this->_basePath |
| 195 | - . $this->configIniDefault; |
|
| 195 | + . $this->configIniDefault; |
|
| 196 | 196 | |
| 197 | 197 | $configTemp = $this->loadIniFile ( realpath ( $configIni ) ); |
| 198 | 198 | $configCurrent = self::parseConfigEnv ( $configTemp , $argv ); |
@@ -206,7 +206,7 @@ discard block |
||
| 206 | 206 | { |
| 207 | 207 | $frameworks = implode ( "\n\t" , $this->frameworkList ); |
| 208 | 208 | throw new \Exception( "list of frameworks: \n\t\033[1;33m" . $frameworks |
| 209 | - . "\n\033[0m" ); |
|
| 209 | + . "\n\033[0m" ); |
|
| 210 | 210 | } |
| 211 | 211 | |
| 212 | 212 | return $argv + array_filter ( $configCurrent ); |
@@ -115,32 +115,32 @@ discard block |
||
| 115 | 115 | if ( $table->hasColumn ( $constrant[ "column_name" ] ) ) |
| 116 | 116 | { |
| 117 | 117 | $objConstrant = Constrant::getInstance () |
| 118 | - ->populate ( |
|
| 119 | - array ( |
|
| 120 | - 'constrant' => $constrant[ 'constraint_name' ] , |
|
| 121 | - 'schema' => $constrant[ 'foreign_schema' ] , |
|
| 122 | - 'table' => $constrant[ 'foreign_table' ] , |
|
| 123 | - 'column' => $constrant[ 'foreign_column' ] , |
|
| 124 | - 'database' => $this->database |
|
| 125 | - ) |
|
| 126 | - ); |
|
| 118 | + ->populate ( |
|
| 119 | + array ( |
|
| 120 | + 'constrant' => $constrant[ 'constraint_name' ] , |
|
| 121 | + 'schema' => $constrant[ 'foreign_schema' ] , |
|
| 122 | + 'table' => $constrant[ 'foreign_table' ] , |
|
| 123 | + 'column' => $constrant[ 'foreign_column' ] , |
|
| 124 | + 'database' => $this->database |
|
| 125 | + ) |
|
| 126 | + ); |
|
| 127 | 127 | |
| 128 | 128 | switch ( $constrant[ 'constraint_type' ] ) |
| 129 | 129 | { |
| 130 | 130 | case "FOREIGN KEY": |
| 131 | 131 | $table->getColumn ( $constrant[ "column_name" ] ) |
| 132 | - ->addRefFk ( $objConstrant ); |
|
| 132 | + ->addRefFk ( $objConstrant ); |
|
| 133 | 133 | break; |
| 134 | 134 | case"PRIMARY KEY": |
| 135 | 135 | $table->getColumn ( $constrant[ "column_name" ] ) |
| 136 | - ->setPrimaryKey ( $objConstrant ) |
|
| 137 | - ->setSequence ( |
|
| 138 | - $this->getSequence ( |
|
| 139 | - $table_name , |
|
| 140 | - $constrant[ "column_name" ] , |
|
| 141 | - $schema |
|
| 142 | - ) |
|
| 143 | - ); |
|
| 136 | + ->setPrimaryKey ( $objConstrant ) |
|
| 137 | + ->setSequence ( |
|
| 138 | + $this->getSequence ( |
|
| 139 | + $table_name , |
|
| 140 | + $constrant[ "column_name" ] , |
|
| 141 | + $schema |
|
| 142 | + ) |
|
| 143 | + ); |
|
| 144 | 144 | break; |
| 145 | 145 | } |
| 146 | 146 | } |
@@ -160,13 +160,13 @@ discard block |
||
| 160 | 160 | if ( $table->hasColumn ( $constrant[ "foreign_column" ] ) ) |
| 161 | 161 | { |
| 162 | 162 | $table->getColumn ( $constrant[ "foreign_column" ] ) |
| 163 | - ->createDependece ( |
|
| 164 | - $constrant[ 'constraint_name' ] , |
|
| 165 | - $constrant[ 'table_name' ] , |
|
| 166 | - $constrant[ 'column_name' ] , |
|
| 167 | - $this->database , |
|
| 168 | - $constrant[ 'table_schema' ] |
|
| 169 | - ); |
|
| 163 | + ->createDependece ( |
|
| 164 | + $constrant[ 'constraint_name' ] , |
|
| 165 | + $constrant[ 'table_name' ] , |
|
| 166 | + $constrant[ 'column_name' ] , |
|
| 167 | + $this->database , |
|
| 168 | + $constrant[ 'table_schema' ] |
|
| 169 | + ); |
|
| 170 | 170 | } |
| 171 | 171 | } |
| 172 | 172 | } |
@@ -201,10 +201,10 @@ discard block |
||
| 201 | 201 | ); |
| 202 | 202 | |
| 203 | 203 | $this->getTable ( $key , $schema ) |
| 204 | - ->addColumn ( $column ) |
|
| 205 | - ->setNamespace ( |
|
| 206 | - $this->config->createClassNamespace ( $this->getTable ( $key , $schema ) ) |
|
| 207 | - ); |
|
| 204 | + ->addColumn ( $column ) |
|
| 205 | + ->setNamespace ( |
|
| 206 | + $this->config->createClassNamespace ( $this->getTable ( $key , $schema ) ) |
|
| 207 | + ); |
|
| 208 | 208 | } |
| 209 | 209 | } |
| 210 | 210 | |
@@ -279,13 +279,13 @@ discard block |
||
| 279 | 279 | } |
| 280 | 280 | |
| 281 | 281 | $this->objDbTables[ $schema ][ trim ( $nameTable ) ] = DbTable::getInstance () |
| 282 | - ->populate ( |
|
| 283 | - array ( |
|
| 284 | - 'table' => $nameTable , |
|
| 285 | - 'schema' => $schema , |
|
| 286 | - 'database' => $this->database |
|
| 287 | - ) |
|
| 288 | - ); |
|
| 282 | + ->populate ( |
|
| 283 | + array ( |
|
| 284 | + 'table' => $nameTable , |
|
| 285 | + 'schema' => $schema , |
|
| 286 | + 'database' => $this->database |
|
| 287 | + ) |
|
| 288 | + ); |
|
| 289 | 289 | |
| 290 | 290 | return $this; |
| 291 | 291 | } |