Completed
Push — master ( 551eca...962f7f )
by Angus
02:37
created
application/models/Tracker/Sites/MangaFox.php 2 patches
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
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 MangaFox extends Base_Site_Model {
4 4
 	public $titleFormat   = '/^[a-z0-9_]+$/';
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@  discard block
 block discarded – undo
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 MangaFox extends Base_Site_Model {
4 4
 	public $titleFormat   = '/^[a-z0-9_]+$/';
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
 		];
16 16
 	}
17 17
 
18
-	public function getTitleData(string $title_url, bool $firstGet = FALSE) : ?array {
18
+	public function getTitleData(string $title_url, bool $firstGet = FALSE) : ? array {
19 19
 		$titleData = [];
20 20
 
21 21
 		$fullURL = $this->getFullTitleURL($title_url);
@@ -34,8 +34,8 @@  discard block
 block discarded – undo
34 34
 
35 35
 			$link = preg_replace('/^(.*\/)(?:[0-9]+\.html)?$/', '$1', (string) $data['nodes_chapter']->getAttribute('href'));
36 36
 			$chapterURLSegments = explode('/', $link);
37
-			$titleData['latest_chapter'] = $chapterURLSegments[5] . (isset($chapterURLSegments[6]) && !empty($chapterURLSegments[6]) ? "/{$chapterURLSegments[6]}" : "");
38
-			$titleData['last_updated'] =  date("Y-m-d H:i:s", strtotime((string) $data['nodes_latest']->nodeValue));
37
+			$titleData['latest_chapter'] = $chapterURLSegments[5].(isset($chapterURLSegments[6]) && !empty($chapterURLSegments[6]) ? "/{$chapterURLSegments[6]}" : "");
38
+			$titleData['last_updated'] = date("Y-m-d H:i:s", strtotime((string) $data['nodes_latest']->nodeValue));
39 39
 
40 40
 			if($firstGet) {
41 41
 				$titleData = array_merge($titleData, $this->doCustomFollow($content['body']));
@@ -114,9 +114,9 @@  discard block
 block discarded – undo
114 114
 
115 115
 							$link = preg_replace('/^(.*\/)(?:[0-9]+\.html)?$/', '$1', (string) $nodes_chapter->item(0)->getAttribute('href'));
116 116
 							$chapterURLSegments = explode('/', $link);
117
-							$titleData['latest_chapter'] = $chapterURLSegments[5] . (isset($chapterURLSegments[6]) && !empty($chapterURLSegments[6]) ? "/{$chapterURLSegments[6]}" : "");
117
+							$titleData['latest_chapter'] = $chapterURLSegments[5].(isset($chapterURLSegments[6]) && !empty($chapterURLSegments[6]) ? "/{$chapterURLSegments[6]}" : "");
118 118
 
119
-							$titleData['last_updated'] =  date("Y-m-d H:i:s", strtotime((string) $nodes_latest->item(0)->nodeValue));
119
+							$titleData['last_updated'] = date("Y-m-d H:i:s", strtotime((string) $nodes_latest->item(0)->nodeValue));
120 120
 
121 121
 							$title_url = explode('/', $title->getAttribute('href'))[4];
122 122
 							$titleDataList[$title_url] = $titleData;
Please login to merge, or discard this patch.
application/models/Tracker/Sites/WebToons.php 3 patches
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
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 WebToons extends Base_Site_Model {
4 4
 	/* Webtoons.com has a very weird and pointless URL format.
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@  discard block
 block discarded – undo
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 WebToons extends Base_Site_Model {
4 4
 	/* Webtoons.com has a very weird and pointless URL format.
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
 		];
35 35
 	}
36 36
 
37
-	public function getTitleData(string $title_url, bool $firstGet = FALSE) : ?array {
37
+	public function getTitleData(string $title_url, bool $firstGet = FALSE) : ? array {
38 38
 		$titleData = [];
39 39
 
40 40
 		//FIXME: We don't use parseTitleDOM here due to using rss. Should probably have an alternate method for XML parsing.
@@ -52,8 +52,8 @@  discard block
 block discarded – undo
52 52
 					$titleData['title'] = trim((string) $xml->{'channel'}->title);
53 53
 
54 54
 					$chapterURLSegments = explode('/', ((string) $xml->{'channel'}->item[0]->link));
55
-					$titleData['latest_chapter'] = preg_replace('/^.*?([0-9]+)$/', '$1', $chapterURLSegments[7]) . ':--:' . $chapterURLSegments[6];
56
-					$titleData['last_updated'] =  date("Y-m-d H:i:s", strtotime((string) $xml->{'channel'}->item[0]->pubDate));
55
+					$titleData['latest_chapter'] = preg_replace('/^.*?([0-9]+)$/', '$1', $chapterURLSegments[7]).':--:'.$chapterURLSegments[6];
56
+					$titleData['last_updated'] = date("Y-m-d H:i:s", strtotime((string) $xml->{'channel'}->item[0]->pubDate));
57 57
 
58 58
 					if($firstGet) {
59 59
 						$titleData = array_merge($titleData, $this->doCustomFollow($content['body'], ['id' => $title_parts[0]]));
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,8 @@
 block discarded – undo
45 45
 
46 46
 		$content = $this->get_content($fullURL);
47 47
 		$data = $content['body'];
48
-		if($data !== 'Can\'t find the manga series.') { //FIXME: We should check for he proper error here.
48
+		if($data !== 'Can\'t find the manga series.') {
49
+//FIXME: We should check for he proper error here.
49 50
 			$xml = simplexml_load_string($data);
50 51
 			if($xml) {
51 52
 				if(isset($xml->{'channel'}->item[0])) {
Please login to merge, or discard this patch.
application/models/Tracker/Sites/KissManga.php 2 patches
Upper-Lower-Casing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@  discard block
 block discarded – undo
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 KissManga extends Base_Site_Model {
4 4
 	/* This site is a massive pain in the ass. The only reason I'm supporting it is it's one of the few aggregator sites which actually support more risqué manga.
@@ -47,9 +47,9 @@  discard block
 block discarded – undo
47 47
 				$data = preg_replace('/^[\S\s]*(<div id="leftside">[\S\s]*)<div id="rightside">[\S\s]*$/', '$1', $data);
48 48
 
49 49
 				$dom = new DOMDocument();
50
-				libxml_use_internal_errors(true);
50
+				libxml_use_internal_errors(TRUE);
51 51
 				$dom->loadHTML($data);
52
-				libxml_use_internal_errors(false);
52
+				libxml_use_internal_errors(FALSE);
53 53
 
54 54
 				$xpath = new DOMXPath($dom);
55 55
 
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@  discard block
 block discarded – undo
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 KissManga extends Base_Site_Model {
4 4
 	/* This site is a massive pain in the ass. The only reason I'm supporting it is it's one of the few aggregator sites which actually support more risqué manga.
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
 		];
31 31
 	}
32 32
 
33
-	public function getTitleData(string $title_url, bool $firstGet = FALSE) : ?array {
33
+	public function getTitleData(string $title_url, bool $firstGet = FALSE) : ? array {
34 34
 		$titleData = [];
35 35
 
36 36
 		//Check if cookiejar is a day old (so we can know if something went wrong)
@@ -59,13 +59,13 @@  discard block
 block discarded – undo
59 59
 					$titleData['title'] = $nodes_title->item(0)->textContent;
60 60
 
61 61
 					$firstRow      = $nodes_row->item(0);
62
-					$nodes_latest  = $xpath->query("td[2]",   $firstRow);
62
+					$nodes_latest  = $xpath->query("td[2]", $firstRow);
63 63
 					$nodes_chapter = $xpath->query("td[1]/a", $firstRow);
64 64
 
65 65
 					$link = (string) $nodes_chapter->item(0)->getAttribute('href');
66 66
 					$chapterURLSegments = explode('/', preg_replace('/\?.*$/', '', $link));
67
-					$titleData['latest_chapter'] = $chapterURLSegments[3] . ':--:' . preg_replace('/.*?([0-9]+)$/', '$1', $link);
68
-					$titleData['last_updated'] =  date("Y-m-d H:i:s", strtotime((string) $nodes_latest->item(0)->textContent));
67
+					$titleData['latest_chapter'] = $chapterURLSegments[3].':--:'.preg_replace('/.*?([0-9]+)$/', '$1', $link);
68
+					$titleData['last_updated'] = date("Y-m-d H:i:s", strtotime((string) $nodes_latest->item(0)->textContent));
69 69
 				}
70 70
 			} else {
71 71
 				//TODO: Throw ERRORS;
Please login to merge, or discard this patch.
application/models/Tracker/Sites/MangaStream.php 2 patches
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
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 MangaStream extends Base_Site_Model {
4 4
 	public $titleFormat   = '/^[a-z0-9_]+$/';
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@  discard block
 block discarded – undo
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 MangaStream extends Base_Site_Model {
4 4
 	public $titleFormat   = '/^[a-z0-9_]+$/';
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
 		];
16 16
 	}
17 17
 
18
-	public function getTitleData(string $title_url, bool $firstGet = FALSE) : ?array {
18
+	public function getTitleData(string $title_url, bool $firstGet = FALSE) : ? array {
19 19
 		$titleData = [];
20 20
 
21 21
 		$fullURL = $this->getFullTitleURL($title_url);
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
 
36 36
 			$titleData['latest_chapter'] = preg_replace('/^.*\/(.*?\/[0-9]+)\/[0-9]+$/', '$1', (string) $data['nodes_chapter']->getAttribute('href'));
37 37
 
38
-			$titleData['last_updated'] =  date("Y-m-d H:i:s", strtotime((string) $data['nodes_latest']->nodeValue));
38
+			$titleData['last_updated'] = date("Y-m-d H:i:s", strtotime((string) $data['nodes_latest']->nodeValue));
39 39
 		}
40 40
 
41 41
 		return (!empty($titleData) ? $titleData : NULL);
Please login to merge, or discard this patch.
application/models/Tracker/Sites/Batoto.php 2 patches
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
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 Batoto extends Base_Site_Model {
4 4
 	//Batoto is a bit tricky to track. Unlike MangaFox and MangaHere, it doesn't store anything in the title_url, which means we have to get the data via other methods.
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@  discard block
 block discarded – undo
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 Batoto extends Base_Site_Model {
4 4
 	//Batoto is a bit tricky to track. Unlike MangaFox and MangaHere, it doesn't store anything in the title_url, which means we have to get the data via other methods.
@@ -25,12 +25,12 @@  discard block
 block discarded – undo
25 25
 
26 26
 		$chapter_parts = explode(':--:', $chapter);
27 27
 		return [
28
-			'url'    => "https://bato.to/reader#" . $chapter_parts[0],
28
+			'url'    => "https://bato.to/reader#".$chapter_parts[0],
29 29
 			'number' => $chapter_parts[1]
30 30
 		];
31 31
 	}
32 32
 
33
-	public function getTitleData(string $title_url, bool $firstGet = FALSE) : ?array {
33
+	public function getTitleData(string $title_url, bool $firstGet = FALSE) : ? array {
34 34
 		$titleData = [];
35 35
 
36 36
 		$title_parts = explode(':--:', $title_url);
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
 
61 61
 			preg_match('/^(?:Vol\.(?<volume>\S+) )?(?:Ch.(?<chapter>[^\s:]+)(?:\s?-\s?(?<extra>[0-9]+))?):?.*/', trim($data['nodes_chapter']->nodeValue), $text);
62 62
 			$chapter_url = $data['nodes_chapter']->getAttribute('href');
63
-			$titleData['latest_chapter'] = substr($chapter_url, strpos($chapter_url, "reader#") + 7) . ':--:' . ((!empty($text['volume']) ? 'v'.$text['volume'].'/' : '') . 'c'.$text['chapter'] . (!empty($text['extra']) ? '-'.$text['extra'] : ''));
63
+			$titleData['latest_chapter'] = substr($chapter_url, strpos($chapter_url, "reader#") + 7).':--:'.((!empty($text['volume']) ? 'v'.$text['volume'].'/' : '').'c'.$text['chapter'].(!empty($text['extra']) ? '-'.$text['extra'] : ''));
64 64
 
65 65
 			$dateString = $data['nodes_latest']->nodeValue;
66 66
 			if($dateString == 'An hour ago') {
@@ -170,7 +170,7 @@  discard block
 block discarded – undo
170 170
 									$chapter = $nodes_chapter->item(0);
171 171
 									preg_match('/^(?:Vol\.(?<volume>\S+) )?(?:Ch.(?<chapter>[^\s:]+)(?:\s?-\s?(?<extra>[0-9]+))?):?.*/', trim($chapter->nodeValue), $text);
172 172
 									$chapter_url = $chapter->getAttribute('href');
173
-									$titleData['latest_chapter'] = substr($chapter_url, strpos($chapter_url, "reader#") + 7) . ':--:' . ((!empty($text['volume']) ? 'v'.$text['volume'].'/' : '') . 'c'.$text['chapter'] . (!empty($text['extra']) ? '-'.$text['extra'] : ''));
173
+									$titleData['latest_chapter'] = substr($chapter_url, strpos($chapter_url, "reader#") + 7).':--:'.((!empty($text['volume']) ? 'v'.$text['volume'].'/' : '').'c'.$text['chapter'].(!empty($text['extra']) ? '-'.$text['extra'] : ''));
174 174
 
175 175
 									$dateString = $nodes_latest->item(0)->nodeValue;
176 176
 									if($dateString == 'An hour ago') {
Please login to merge, or discard this patch.
application/controllers/User/History.php 2 patches
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
 
32 32
 			case 'csv':
33 33
 				$this->output->set_content_type('text/csv', 'utf-8');
34
-				$this->_render_content($this->arrayToCSVRecursive($historyData), 'csv',TRUE, 'tracker-history');
34
+				$this->_render_content($this->arrayToCSVRecursive($historyData), 'csv', TRUE, 'tracker-history');
35 35
 				break;
36 36
 
37 37
 			default:
@@ -50,15 +50,15 @@  discard block
 block discarded – undo
50 50
 		$enclosure_esc = preg_quote($enclosure, '/');
51 51
 
52 52
 		$output = array();
53
-		foreach ($fields as $field) {
54
-			if ($field === NULL && $nullToMysqlNull) {
53
+		foreach($fields as $field) {
54
+			if($field === NULL && $nullToMysqlNull) {
55 55
 				$output[] = 'NULL';
56 56
 				continue;
57 57
 			}
58 58
 
59 59
 			// Enclose fields containing $delimiter, $enclosure or whitespace
60
-			if ($encloseAll || preg_match("/(?:${delimiter_esc}|${enclosure_esc}|\s)/", $field)) {
61
-				$output[] = $enclosure . str_replace($enclosure, $enclosure . $enclosure, $field) . $enclosure;
60
+			if($encloseAll || preg_match("/(?:${delimiter_esc}|${enclosure_esc}|\s)/", $field)) {
61
+				$output[] = $enclosure.str_replace($enclosure, $enclosure.$enclosure, $field).$enclosure;
62 62
 			} else {
63 63
 				$output[] = $field;
64 64
 			}
@@ -70,10 +70,10 @@  discard block
 block discarded – undo
70 70
 		$csvArr = [
71 71
 			'Date/Time,Title,URL,Site,Status'
72 72
 		];
73
-		foreach ($fields as $field) {
74
-			$csvArr[] = $this->arrayToCSV($field, $delimiter, $enclosure,$encloseAll,$nullToMysqlNull);
73
+		foreach($fields as $field) {
74
+			$csvArr[] = $this->arrayToCSV($field, $delimiter, $enclosure, $encloseAll, $nullToMysqlNull);
75 75
 		}
76 76
 
77
-		return implode(PHP_EOL,$csvArr);
77
+		return implode(PHP_EOL, $csvArr);
78 78
 	}
79 79
 }
Please login to merge, or discard this patch.
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -6,7 +6,9 @@  discard block
 block discarded – undo
6 6
 	}
7 7
 
8 8
 	public function index(int $page = 1) : void {
9
-		if($page === 0) redirect('user/history/1');
9
+		if($page === 0) {
10
+			redirect('user/history/1');
11
+		}
10 12
 
11 13
 		$this->header_data['title'] = "History";
12 14
 		$this->header_data['page']  = "history";
@@ -16,7 +18,9 @@  discard block
 block discarded – undo
16 18
 		$this->body_data['currentPage'] = (int) $page;
17 19
 		$this->body_data['totalPages']  = $historyData['totalPages'];
18 20
 
19
-		if($page > $this->body_data['totalPages'] && $page > 1) redirect('user/history/1');
21
+		if($page > $this->body_data['totalPages'] && $page > 1) {
22
+			redirect('user/history/1');
23
+		}
20 24
 
21 25
 		$this->_render_page('User/History');
22 26
 	}
Please login to merge, or discard this patch.
application/core/MY_Security.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php defined('BASEPATH') OR exit('No direct script access allowed');
1
+<?php defined('BASEPATH') or exit('No direct script access allowed');
2 2
 
3 3
 class MY_Security extends CI_Security {
4 4
 	public function __construct() {
Please login to merge, or discard this patch.
application/controllers/AdminPanel.php 3 patches
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
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 AdminPanel extends Admin_Controller {
4 4
 	public function __construct() {
Please login to merge, or discard this patch.
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -44,12 +44,12 @@  discard block
 block discarded – undo
44 44
 
45 45
 	private function _list_complete_titles() {
46 46
 		$query = $this->db->select('tracker_titles.id, tracker_sites.site_class, tracker_titles.title, tracker_titles.title_url')
47
-		                  ->from('tracker_chapters')
48
-		                  ->join('tracker_titles', 'tracker_chapters.title_id = tracker_titles.id', 'left')
49
-		                  ->join('tracker_sites', 'tracker_sites.id = tracker_titles.site_id', 'left')
50
-		                  ->like('tracker_chapters.tags', 'complete')
51
-		                  ->where('tracker_titles.status', 0)
52
-		                  ->get();
47
+						  ->from('tracker_chapters')
48
+						  ->join('tracker_titles', 'tracker_chapters.title_id = tracker_titles.id', 'left')
49
+						  ->join('tracker_sites', 'tracker_sites.id = tracker_titles.site_id', 'left')
50
+						  ->like('tracker_chapters.tags', 'complete')
51
+						  ->where('tracker_titles.status', 0)
52
+						  ->get();
53 53
 
54 54
 		$completeList = [];
55 55
 		if($query->num_rows() > 0) {
@@ -68,10 +68,10 @@  discard block
 block discarded – undo
68 68
 
69 69
 	private function _update_mal_id() : void {
70 70
 		$query = $this->db->select('id, tags')
71
-		                  ->from('tracker_chapters')
72
-		                  ->where('tags REGEXP "[[:<:]]mal:([0-9]+|none)[[:>:]]"', NULL, FALSE)
73
-		                  ->where('mal_id', NULL)
74
-		                  ->get();
71
+						  ->from('tracker_chapters')
72
+						  ->where('tags REGEXP "[[:<:]]mal:([0-9]+|none)[[:>:]]"', NULL, FALSE)
73
+						  ->where('mal_id', NULL)
74
+						  ->get();
75 75
 
76 76
 
77 77
 		if($query->num_rows() > 0) {
@@ -83,8 +83,8 @@  discard block
 block discarded – undo
83 83
 					$new_tags = implode(',', array_diff( explode(',', $row->tags), [$matches[0]]));
84 84
 
85 85
 					$this->db->set(['mal_id' => $malID, 'tags' => $new_tags, 'last_updated' => NULL])
86
-					         ->where('id', $row->id)
87
-					         ->update('tracker_chapters');
86
+							 ->where('id', $row->id)
87
+							 ->update('tracker_chapters');
88 88
 				}
89 89
 			}
90 90
 		}
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@  discard block
 block discarded – undo
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 AdminPanel extends Admin_Controller {
4 4
 	public function __construct() {
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
 
81 81
 				if(!empty($matches)) {
82 82
 					$malID = ($matches[1] !== 'none' ? $matches[1] : '0');
83
-					$new_tags = implode(',', array_diff( explode(',', $row->tags), [$matches[0]]));
83
+					$new_tags = implode(',', array_diff(explode(',', $row->tags), [$matches[0]]));
84 84
 
85 85
 					$this->db->set(['mal_id' => $malID, 'tags' => $new_tags, 'last_updated' => NULL])
86 86
 					         ->where('id', $row->id)
Please login to merge, or discard this patch.
application/controllers/UpdateStatus.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
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 UpdateStatus extends MY_Controller {
4 4
 	public function __construct() {
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
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 UpdateStatus extends MY_Controller {
4 4
 	public function __construct() {
Please login to merge, or discard this patch.