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