Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
totoprayogo1916 committed Dec 14, 2023
1 parent 30cfa8c commit bf2a907
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions donjo-app/models/Keluarga_model.php
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,7 @@ public function list_data_statistik($tipe = 21, $o = 0, $offset = 0, $limit = 50

public function insert()
{
$x = [];

Check warning

Code scanning / PHPMD

Naming Rules: ShortVariable Warning

Avoid variables with short names like $x. Configured minimum length is 3.
$data = $_POST;
$temp = $data['nik_kepala'];
$outp = $this->db->insert('tweb_keluarga', penetration($data));
Expand Down Expand Up @@ -426,6 +427,7 @@ public function insert_new()
$tipe_file = $_FILES['foto']['type'];
$nama_file = $_FILES['foto']['name'];
$old_foto = '';
$x = [];

Check warning

Code scanning / PHPMD

Naming Rules: ShortVariable Warning

Avoid variables with short names like $x. Configured minimum length is 3.
if (! empty($lokasi_file)) {
if ($tipe_file !== 'image/jpeg' && $tipe_file !== 'image/pjpeg' && $tipe_file !== 'image/png') {
unset($data['foto']);
Expand Down

0 comments on commit bf2a907

Please sign in to comment.