| Conditions | 4 |
| Paths | 1 |
| Total Lines | 28 |
| Code Lines | 15 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | public function processHandler() |
||
| 13 | { |
||
| 14 | $results = []; |
||
|
|
|||
| 15 | |||
| 16 | return $this->errorHandler(function(){ |
||
| 17 | |||
| 18 | foreach ($this->list as $table =>$datas){ |
||
| 19 | |||
| 20 | foreach ($datas as $data){ |
||
| 21 | |||
| 22 | $queryBuilder = $this->schema->getGrammarPath().'\QueryBuilder'; |
||
| 23 | |||
| 24 | $query = (new $queryBuilder($this->schema,$table,$data))->handle(); |
||
| 25 | |||
| 26 | $status =($query['result']!==false) ? true : false; |
||
| 27 | |||
| 28 | $results[]= [ |
||
| 29 | 'success'=>$status, |
||
| 30 | 'file'=>$data->getFile(), |
||
| 31 | 'table'=>$table, |
||
| 32 | 'type'=>$query['type'], |
||
| 33 | 'syntax'=>$query['syntax'], |
||
| 34 | 'message'=>$query['message'] |
||
| 35 | ]; |
||
| 36 | } |
||
| 37 | } |
||
| 38 | |||
| 39 | return $results; |
||
| 40 | }); |
||
| 60 | } |