@@ -134,9 +134,9 @@ |
||
134 | 134 | $config['composer_autoload'] = FALSE; |
135 | 135 | |
136 | 136 | //NOTE: This doesn't work in autoload.php as it is loaded after we need it. |
137 | -spl_autoload_register(function ($class) { |
|
138 | - $fileMono = APPPATH . '../vendor/monolog/monolog/src/'.strtr($class, '\\', '/').'.php'; |
|
139 | - $filePsr = APPPATH . '../vendor/psr/log/'.strtr($class, '\\', '/').'.php'; |
|
137 | +spl_autoload_register(function($class) { |
|
138 | + $fileMono = APPPATH.'../vendor/monolog/monolog/src/'.strtr($class, '\\', '/').'.php'; |
|
139 | + $filePsr = APPPATH.'../vendor/psr/log/'.strtr($class, '\\', '/').'.php'; |
|
140 | 140 | if(file_exists($fileMono)) { |
141 | 141 | require $fileMono; |
142 | 142 | return TRUE; |
@@ -31,7 +31,7 @@ |
||
31 | 31 | $config['file_multiline'] = TRUE; //add newlines to the output |
32 | 32 | |
33 | 33 | /* NEW RELIC OPTIONS */ |
34 | -$config['new_relic_app_name'] = 'APP NAME - ' . ENVIRONMENT; |
|
34 | +$config['new_relic_app_name'] = 'APP NAME - '.ENVIRONMENT; |
|
35 | 35 | |
36 | 36 | /* HIPCHAT OPTIONS */ |
37 | 37 | $config['hipchat_app_token'] = ''; //HipChat API Token |
@@ -6,7 +6,7 @@ discard block |
||
6 | 6 | protected $footer_data = array(); |
7 | 7 | public $global_data = array(); |
8 | 8 | |
9 | - public function __construct(){ |
|
9 | + public function __construct() { |
|
10 | 10 | parent::__construct(); |
11 | 11 | |
12 | 12 | //FIXME: This is pretty much a phpUnit hack. Without it phpUnit fails here. We need a proper way to fake user/admin testing. |
@@ -18,10 +18,10 @@ discard block |
||
18 | 18 | |
19 | 19 | $this->global_data['theme'] = $this->User_Options->get('theme'); |
20 | 20 | $css_path = "css/main.{$this->User_Options->get('theme')}"; |
21 | - $this->global_data['complied_css_path'] = asset_url()."{$css_path}.".filemtime(APPPATH . "../public/assets/{$css_path}.css").".css"; |
|
21 | + $this->global_data['complied_css_path'] = asset_url()."{$css_path}.".filemtime(APPPATH."../public/assets/{$css_path}.css").".css"; |
|
22 | 22 | |
23 | 23 | $js_path = 'js/compiled.min'; |
24 | - $this->global_data['complied_js_path'] = asset_url()."{$js_path}.".filemtime(APPPATH . "../public/assets/{$js_path}.js").".js"; |
|
24 | + $this->global_data['complied_js_path'] = asset_url()."{$js_path}.".filemtime(APPPATH."../public/assets/{$js_path}.js").".js"; |
|
25 | 25 | } |
26 | 26 | |
27 | 27 | public function _render_page(/*(array) $paths*/) : void { |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | $json = is_array($json_input) ? json_encode($json_input) : $json_input; |
46 | 46 | |
47 | 47 | $this->output->set_content_type('application/json', 'utf-8'); |
48 | - $this->_render_content($json ?? '{}','json', $download, $filenamePrefix); |
|
48 | + $this->_render_content($json ?? '{}', 'json', $download, $filenamePrefix); |
|
49 | 49 | } |
50 | 50 | public function _render_content(string $content, string $filenameExt, bool $download = FALSE, string $filenamePrefix = 'tracker') : void { |
51 | 51 | if($download) { |
@@ -149,7 +149,7 @@ |
||
149 | 149 | | |
150 | 150 | <a href="#" class="set-mal-id" data-mal-id="<?=$row['mal_id']?>" data-mal-type="<?=$row['mal_type']?>">Set MAL ID</a> <?php if(!is_null($row['mal_id']) && $row['mal_type'] == 'chapter') { ?><span>(<small><?=($row['mal_id'] !== '0' ? $row['mal_id'] : 'none')?></small>)</span><?php } ?> |
151 | 151 | | |
152 | - Tags (<a href="#" class="edit-tags small">Edit</a>): <span class="text-lowercase tag-list"><?=($row['has_tags'] ? implode("", array_map(function ($str) { return "<i class='tag'>{$str}</i>"; }, explode(",", $row['tag_list']))) : "none")?></span> |
|
152 | + Tags (<a href="#" class="edit-tags small">Edit</a>): <span class="text-lowercase tag-list"><?=($row['has_tags'] ? implode("", array_map(function($str) { return "<i class='tag'>{$str}</i>"; }, explode(",", $row['tag_list']))) : "none")?></span> |
|
153 | 153 | <div class="input-group tag-edit" hidden> |
154 | 154 | <input type="text" class="form-control" placeholder="tag1,tag2,tag3" maxlength="255" pattern='[a-z0-9-_,]{0,255}' value="<?=$row['tag_list']?>"> |
155 | 155 | <span class="input-group-btn"> |