| @@ -9,12 +9,14 @@ | ||
| 9 | 9 | |
| 10 | 10 | /** |
| 11 | 11 | * |
| 12 | 12 | */ |
| 13 | -class ReportsModel extends Model { | |
| 13 | +class ReportsModel extends Model | |
| 14 | +{ | |
| 14 | 15 | protected static $table = 'bitforms_reports'; |
| 15 | 16 | |
| 16 | - public function validateReportFields($reportData, $fieldNames) { | |
| 17 | + public function validateReportFields($reportData, $fieldNames) | |
| 18 | + { | |
| 17 | 19 | $reportDetails = []; |
| 18 | 20 | switch ($reportData->type) { |
| 19 | 21 | case 'table': |
| 20 | 22 | $tableAction = 'table_ac'; |
| @@ -55,9 +57,10 @@ | ||
| 55 | 57 | } |
| 56 | 58 | return $reportDetails; |
| 57 | 59 | } |
| 58 | 60 | |
| 59 | - public function bulkDelete(array $condition = null, $check_operator = null) { | |
| 61 | + public function bulkDelete(array $condition = null, $check_operator = null) | |
| 62 | + { | |
| 60 | 63 | if ( |
| 61 | 64 | !\is_null($condition) |
| 62 | 65 | && \is_array($condition) |
| 63 | 66 | && array_keys($condition) !== range(0, count($condition) - 1) |