@@ -1,4 +1,4 @@ discard block |
||
1 | -<?php declare(strict_types=1); defined('BASEPATH') OR exit('No direct script access allowed'); |
|
1 | +<?php declare(strict_types = 1); defined('BASEPATH') OR exit('No direct script access allowed'); |
|
2 | 2 | |
3 | 3 | //http://english.stackexchange.com/a/141735 |
4 | 4 | class Tracker_Portation_Model extends Tracker_Base_Model { |
@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | |
56 | 56 | $arr = []; |
57 | 57 | if($query->num_rows() > 0) { |
58 | - foreach ($query->result() as $row) { |
|
58 | + foreach($query->result() as $row) { |
|
59 | 59 | $arr[$row->category][] = [ |
60 | 60 | 'site' => $row->site, |
61 | 61 | 'title_url' => $row->title_url, |
@@ -1,4 +1,4 @@ discard block |
||
1 | -<?php declare(strict_types=1); defined('BASEPATH') OR exit('No direct script access allowed'); |
|
1 | +<?php declare(strict_types = 1); defined('BASEPATH') OR exit('No direct script access allowed'); |
|
2 | 2 | |
3 | 3 | class Tracker_Favourites_Model extends Tracker_Base_Model { |
4 | 4 | public function __construct() { |
@@ -14,8 +14,8 @@ discard block |
||
14 | 14 | tf.chapter, tf.updated_at', FALSE) |
15 | 15 | ->from('tracker_favourites AS tf') |
16 | 16 | ->join('tracker_chapters AS tc', 'tf.chapter_id = tc.id', 'left') |
17 | - ->join('tracker_titles AS tt', 'tc.title_id = tt.id', 'left') |
|
18 | - ->join('tracker_sites AS ts', 'tt.site_id = ts.id', 'left') |
|
17 | + ->join('tracker_titles AS tt', 'tc.title_id = tt.id', 'left') |
|
18 | + ->join('tracker_sites AS ts', 'tt.site_id = ts.id', 'left') |
|
19 | 19 | ->where('tc.user_id', $this->User->id) //CHECK: Is this inefficient? Would it be better to have a user_id column in tracker_favourites? |
20 | 20 | ->order_by('tf.id DESC') |
21 | 21 | ->limit($rowsPerPage, ($rowsPerPage * ($page - 1))) |
@@ -19,7 +19,7 @@ |
||
19 | 19 | |
20 | 20 | <div class="row"> |
21 | 21 | <div class="col-xs-12 col-md-12"> |
22 | - <?=form_submit($form_submit);?> |
|
22 | + <?=form_submit($form_submit); ?> |
|
23 | 23 | </div> |
24 | 24 | </div> |
25 | 25 | </form> |
@@ -19,7 +19,7 @@ |
||
19 | 19 | |
20 | 20 | <div class="row"> |
21 | 21 | <div class="col-xs-12 col-md-12"> |
22 | - <?=form_submit($form_submit);?> |
|
22 | + <?=form_submit($form_submit); ?> |
|
23 | 23 | </div> |
24 | 24 | </div> |
25 | 25 | </form> |
@@ -12,10 +12,10 @@ |
||
12 | 12 | $this->header_data['page'] = "report-bug"; |
13 | 13 | |
14 | 14 | $this->form_validation->set_rules('bug_description', 'Description', 'required|max_length[255]'); |
15 | - $this->form_validation->set_rules('bug_url', 'URL', ''); |
|
15 | + $this->form_validation->set_rules('bug_url', 'URL', ''); |
|
16 | 16 | |
17 | 17 | $this->body_data['bug_submitted'] = FALSE; |
18 | - if ($isValid = $this->form_validation->run() === TRUE) { |
|
18 | + if($isValid = $this->form_validation->run() === TRUE) { |
|
19 | 19 | //send report |
20 | 20 | $this->body_data['bug_submitted'] = $this->Tracker->bug->report("USERID:".$this->User->id." ||| ".$this->input->post('bug_description'), NULL, $this->input->post('bug_url')); |
21 | 21 | } |
@@ -1,4 +1,4 @@ |
||
1 | -<?php declare(strict_types=1); defined('BASEPATH') OR exit('No direct script access allowed'); |
|
1 | +<?php declare(strict_types = 1); defined('BASEPATH') OR exit('No direct script access allowed'); |
|
2 | 2 | |
3 | 3 | class Tracker_Bug_Model extends Tracker_Base_Model { |
4 | 4 | public function __construct() { |
@@ -1,4 +1,4 @@ |
||
1 | -<?php declare(strict_types=1); defined('BASEPATH') OR exit('No direct script access allowed'); |
|
1 | +<?php declare(strict_types = 1); defined('BASEPATH') OR exit('No direct script access allowed'); |
|
2 | 2 | |
3 | 3 | class Tracker_Tag_Model extends Tracker_Base_Model { |
4 | 4 | public function __construct() { |
@@ -1,4 +1,4 @@ |
||
1 | -<?php declare(strict_types=1); defined('BASEPATH') OR exit('No direct script access allowed'); |
|
1 | +<?php declare(strict_types = 1); defined('BASEPATH') OR exit('No direct script access allowed'); |
|
2 | 2 | |
3 | 3 | class Tracker_Category_Model extends Tracker_Base_Model { |
4 | 4 | public function __construct() { |
@@ -1,4 +1,4 @@ |
||
1 | -<?php declare(strict_types=1); defined('BASEPATH') OR exit('No direct script access allowed'); |
|
1 | +<?php declare(strict_types = 1); defined('BASEPATH') OR exit('No direct script access allowed'); |
|
2 | 2 | |
3 | 3 | class Tracker_Title_Model extends Tracker_Base_Model { |
4 | 4 | public function __construct() { |