@@ -11,26 +11,26 @@ discard block |
||
11 | 11 | */ |
12 | 12 | public function processHandler() |
13 | 13 | { |
14 | - return $this->errorHandler(function(){ |
|
14 | + return $this->errorHandler(function() { |
|
15 | 15 | |
16 | 16 | $results = []; |
17 | 17 | |
18 | - foreach ($this->list as $table =>$datas){ |
|
18 | + foreach ($this->list as $table =>$datas) { |
|
19 | 19 | |
20 | - foreach ($datas as $data){ |
|
20 | + foreach ($datas as $data) { |
|
21 | 21 | |
22 | - $query = $this->queryBuilder($table,$data); |
|
22 | + $query = $this->queryBuilder($table, $data); |
|
23 | 23 | |
24 | 24 | $query = $query->handle(); |
25 | 25 | |
26 | 26 | |
27 | - if($query===false){ |
|
27 | + if ($query===false) { |
|
28 | 28 | $results[] = []; |
29 | 29 | } |
30 | - else{ |
|
31 | - $status =($query['result']!==false) ? true : false; |
|
30 | + else { |
|
31 | + $status = ($query['result']!==false) ? true : false; |
|
32 | 32 | |
33 | - $results[]= [ |
|
33 | + $results[] = [ |
|
34 | 34 | 'success'=>$status, |
35 | 35 | 'file'=>$data->getFile(), |
36 | 36 | 'table'=>$table, |
@@ -60,11 +60,11 @@ discard block |
||
60 | 60 | { |
61 | 61 | $alterBinds = $object->getAlterBinds(); |
62 | 62 | |
63 | - if(!is_null($alterBinds) && count($alterBinds)>1){ |
|
63 | + if (!is_null($alterBinds) && count($alterBinds)>1) { |
|
64 | 64 | exception()->runtime('Only one command can be applied to alter groups'); |
65 | 65 | } |
66 | 66 | |
67 | - if(count($object->getError())){ |
|
67 | + if (count($object->getError())) { |
|
68 | 68 | exception()->runtime(''.$object->getFile().' -> '.$object->getError()[0].''); |
69 | 69 | } |
70 | 70 |