| Conditions | 4 |
| Paths | 8 |
| Total Lines | 23 |
| Code Lines | 15 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 10 |
| CRAP Score | 4.1967 |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); defined('BASEPATH') OR exit('No direct script access allowed'); |
||
| 7 | 112 | public function __construct() { |
|
| 8 | 112 | parent::__construct(); |
|
| 9 | |||
| 10 | 112 | $this->load->database(); |
|
| 11 | |||
| 12 | 112 | $this->enabledCategories = [ |
|
| 13 | 'reading' => 'Reading', |
||
| 14 | 'on-hold' => 'On-Hold', |
||
| 15 | 'plan-to-read' => 'Plan to Read' |
||
| 16 | ]; |
||
| 17 | 112 | if($this->User_Options->get('category_custom_1') == 'enabled') { |
|
| 18 | $this->enabledCategories['custom1'] = $this->User_Options->get('category_custom_1_text'); |
||
| 19 | } |
||
| 20 | 112 | if($this->User_Options->get('category_custom_2') == 'enabled') { |
|
| 21 | $this->enabledCategories['custom2'] = $this->User_Options->get('category_custom_2_text'); |
||
| 22 | } |
||
| 23 | 112 | if($this->User_Options->get('category_custom_3') == 'enabled') { |
|
| 24 | $this->enabledCategories['custom3'] = $this->User_Options->get('category_custom_3_text'); |
||
| 25 | } |
||
| 26 | |||
| 27 | 112 | require_once(APPPATH.'models/Site_Model.php'); |
|
| 28 | 112 | $this->sites = new Sites_Model; |
|
| 29 | 112 | } |
|
| 30 | } |
||
| 31 |