@@ -11,19 +11,19 @@ discard block |
||
| 11 | 11 | */ |
| 12 | 12 | public function processHandler() |
| 13 | 13 | { |
| 14 | - return $this->errorHandler(function(){ |
|
| 14 | + return $this->errorHandler(function() { |
|
| 15 | 15 | |
| 16 | - foreach ($this->list as $table =>$datas){ |
|
| 16 | + foreach ($this->list as $table =>$datas) { |
|
| 17 | 17 | |
| 18 | - foreach ($datas as $data){ |
|
| 18 | + foreach ($datas as $data) { |
|
| 19 | 19 | |
| 20 | - $query = $this->queryBuilder($table,$data); |
|
| 20 | + $query = $this->queryBuilder($table, $data); |
|
| 21 | 21 | |
| 22 | 22 | $query = $query->handle(); |
| 23 | 23 | |
| 24 | - $status =($query['result']!==false) ? true : false; |
|
| 24 | + $status = ($query['result']!==false) ? true : false; |
|
| 25 | 25 | |
| 26 | - $results[]= [ |
|
| 26 | + $results[] = [ |
|
| 27 | 27 | 'success'=>$status, |
| 28 | 28 | 'file'=>$data->getFile(), |
| 29 | 29 | 'table'=>$table, |
@@ -50,7 +50,7 @@ discard block |
||
| 50 | 50 | { |
| 51 | 51 | foreach ($objects as $object) |
| 52 | 52 | { |
| 53 | - if(count($object->getError())){ |
|
| 53 | + if (count($object->getError())) { |
|
| 54 | 54 | return 'error : '.$object->getFile().' -> '.$object->getError()[0].''; |
| 55 | 55 | } |
| 56 | 56 | } |