| Conditions | 6 |
| Paths | 1 |
| Total Lines | 38 |
| Code Lines | 20 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 3 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 15 | public function processHandler() |
||
| 16 | { |
||
| 17 | return $this->errorHandler(function(){ |
||
| 18 | |||
| 19 | $results = []; |
||
| 20 | |||
| 21 | foreach ($this->list as $table =>$datas){ |
||
| 22 | |||
| 23 | foreach ($datas as $data){ |
||
| 24 | |||
| 25 | $query = $this->queryBuilder($table,$data); |
||
|
|
|||
| 26 | |||
| 27 | $query = $query->handle(); |
||
| 28 | |||
| 29 | |||
| 30 | if($query===false){ |
||
| 31 | $results[] = []; |
||
| 32 | } |
||
| 33 | else{ |
||
| 34 | $status =($query['result']!==false) ? true : false; |
||
| 35 | |||
| 36 | if($status){ |
||
| 37 | $this->schema->getConnection()->generateEntity($table); |
||
| 38 | } |
||
| 39 | |||
| 40 | $results[]= [ |
||
| 41 | 'success'=>$status, |
||
| 42 | 'file'=>$data->getFile(), |
||
| 43 | 'table'=>$table, |
||
| 44 | 'type'=>$query['type'], |
||
| 45 | 'syntax'=>$query['syntax'], |
||
| 46 | 'message'=>$query['message'] |
||
| 47 | ]; |
||
| 48 | } |
||
| 49 | } |
||
| 50 | } |
||
| 51 | |||
| 52 | return $results; |
||
| 53 | }); |
||
| 83 | } |