| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Code Lines | 6 |
| Lines | 8 |
| Ratio | 100 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); defined('BASEPATH') OR exit('No direct script access allowed'); |
||
| 8 | View Code Duplication | public function setByID(int $userID, int $chapterID, string $category) : bool { |
|
| 9 | $success = $this->db->set(['category' => $category, 'active' => 'Y', 'last_updated' => NULL]) |
||
| 10 | ->where('user_id', $userID) |
||
| 11 | ->where('id', $chapterID) |
||
| 12 | ->update('tracker_chapters'); |
||
| 13 | |||
| 14 | return (bool) $success; |
||
| 15 | } |
||
| 16 | |||
| 52 |