-
Notifications
You must be signed in to change notification settings - Fork 8
Perbaikan duplikasi data config #583
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@@ -57,8 +58,11 @@ | |||
|
|||
public function index($p = 1) | |||
{ | |||
$config = new Config(); |
Check warning
Code scanning / PHPMD
Clean Code Rules: MissingImport
@@ -90,11 +93,14 @@ | |||
|
|||
public function mandiri($p = 1, $m = 0) | |||
{ | |||
$config = new Config(); |
Check warning
Code scanning / PHPMD
Clean Code Rules: MissingImport
@@ -129,10 +134,12 @@ | |||
|
|||
public function artikel($id = '', $p = 1) | |||
{ | |||
$config = new Config(); |
Check warning
Code scanning / PHPMD
Clean Code Rules: MissingImport
view('layouts/artikel.tpl.php', $data); | ||
} | ||
|
||
public function arsip($p = 1) | ||
{ | ||
$config = new Config(); |
Check warning
Code scanning / PHPMD
Clean Code Rules: MissingImport
|
||
view('layouts/arsip.tpl.php', $data); | ||
} | ||
|
||
public function gallery($p = 1) | ||
{ | ||
$data['p'] = $p; | ||
$config = new Config(); |
Check warning
Code scanning / PHPMD
Clean Code Rules: MissingImport
|
||
view('layouts/stat.tpl.php', $data); | ||
} | ||
|
||
public function data_analisis($stat = '', $sb = 0, $per = 0) | ||
{ | ||
$config = new Config(); |
Check warning
Code scanning / PHPMD
Clean Code Rules: MissingImport
view('layouts/analisis.tpl.php', $data); | ||
} | ||
|
||
public function wilayah() | ||
{ | ||
$config = new Config(); |
Check warning
Code scanning / PHPMD
Clean Code Rules: MissingImport
view('layouts/stat.tpl.php', $data); | ||
} | ||
|
||
public function statistik_k($tipex = 0) | ||
{ | ||
$config = new Config(); |
Check warning
Code scanning / PHPMD
Clean Code Rules: MissingImport
$data['sosmed'] = $this->first_artikel_m->list_sosmed(); | ||
$data['stat'] = $this->first_penduduk_m->list_data(4); | ||
$data['data_config'] = $this->config_model->get_data(); | ||
$config = new Config(); |
Check warning
Code scanning / PHPMD
Clean Code Rules: MissingImport
|
||
view('layouts/main.tpl.php', $data); | ||
} | ||
|
||
public function kategori($kat = 0, $p = 0) | ||
{ | ||
$data['p'] = $p; | ||
$data['desa'] = $this->config_model->get_data(); | ||
$config = new Config(); |
Check warning
Code scanning / PHPMD
Clean Code Rules: MissingImport
Deskripsi
Duplikasi pemanggilan config.
Sebelumnya terdapat
$data['desa']
dan$data['data_config']
,Karena menggunakan fungsi yang sama, maka
$data['data_config']
dihapus.