| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php defined('BASEPATH') OR exit('No direct script access allowed'); |
||
| 8 | public function index(int $titleID, int $page = 1) { |
||
| 9 | $this->header_data['title'] = "Title History"; |
||
| 10 | $this->header_data['page'] = "title-history"; |
||
| 11 | |||
| 12 | //CHECK: Should we only allow people to see history for series they are tracking? |
||
| 13 | $historyData = $this->History->getTitleHistory((int) $titleID, $page); |
||
|
|
|||
| 14 | $this->body_data['historyData'] = $historyData['rows']; |
||
| 15 | $this->body_data['currentPage'] = $page; |
||
| 16 | $this->body_data['totalPages'] = $historyData['totalPages']; |
||
| 17 | |||
| 18 | $this->_render_page("TitleHistory"); |
||
| 19 | } |
||
| 20 | } |
||
| 21 |
This check looks for multiple assignments in successive lines of code. It will report an issue if the operators are not in a straight line.
To visualize
will produce issues in the first and second line, while this second example
will produce no issues.