Passed
Pull Request — master (#7)
by Saepul
06:57 queued 02:15
created
modul/mod_home/xhome.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -126,7 +126,9 @@
 block discarded – undo
126 126
 							                       if($query && mysql_num_rows($query) > 0){
127 127
 							                          while($row = mysql_fetch_object($query)){
128 128
 							                             echo '<option value="'.$row->id_room_type.'"';
129
-							                             if($row->id_room_type == $_GET['room_type']) echo ' selected';
129
+							                             if($row->id_room_type == $_GET['room_type']) {
130
+							                                 echo ' selected';
131
+							                             }
130 132
 							                             echo '>'.$row->room_type.'</option>';
131 133
 							                          }
132 134
 							                       }        
Please login to merge, or discard this patch.
modul/mod_kasir/kasir.php 1 patch
Braces   +31 added lines, -11 removed lines patch added patch discarded remove patch
@@ -423,7 +423,7 @@  discard block
 block discarded – undo
423 423
 
424 424
                   echo"<a href='modul/mod_$module/aksi_$module.php?module=$module&act=hapus&id=$ID&id_module=$id&id_module=$id' onClick=\"return confirm('Hapus Data ?')\" title='Hapus $nmmodule'><span class='icon'><i class='fa fa-trash'></i></span></a>";
425 425
 
426
-                  }  else {
426
+                  } else {
427 427
                       echo"<i class='fa fa-trash'></i></span>";
428 428
                   }
429 429
 
@@ -671,7 +671,9 @@  discard block
 block discarded – undo
671 671
 
672 672
        echo '<option value="'.$row->id_shift.'"';
673 673
 
674
-       if($row->id_shift == $shift) echo ' selected';
674
+       if($row->id_shift == $shift) {
675
+           echo ' selected';
676
+       }
675 677
 
676 678
        echo '>'.$row->shift.'</option>';
677 679
 
@@ -907,7 +909,9 @@  discard block
 block discarded – undo
907 909
 
908 910
        echo '<option value="'.$row->id_shift.'"';
909 911
 
910
-       if($row->id_shift == $shift) echo ' selected';
912
+       if($row->id_shift == $shift) {
913
+           echo ' selected';
914
+       }
911 915
 
912 916
        echo '>'.$row->shift.'</option>';
913 917
 
@@ -1019,7 +1023,9 @@  discard block
 block discarded – undo
1019 1023
 
1020 1024
               echo '<option value="'.$row->id_jenis_transaksi.'"';
1021 1025
 
1022
-              if($row->id_jenis_transaksi == @$data->id_jenis_transaksi) echo ' selected';
1026
+              if($row->id_jenis_transaksi == @$data->id_jenis_transaksi) {
1027
+                  echo ' selected';
1028
+              }
1023 1029
 
1024 1030
               echo '>'.$row->jenis_transaksi.'</option>';
1025 1031
 
@@ -1066,7 +1072,9 @@  discard block
 block discarded – undo
1066 1072
 
1067 1073
               echo '<option value="'.$row->id_jenis_pembayaran.'"';
1068 1074
 
1069
-              if($row->id_jenis_pembayaran == @$data->id_jenis_pembayaran) echo ' selected';
1075
+              if($row->id_jenis_pembayaran == @$data->id_jenis_pembayaran) {
1076
+                  echo ' selected';
1077
+              }
1070 1078
 
1071 1079
               echo '>'.$row->jenis_pembayaran.'</option>';
1072 1080
 
@@ -1095,7 +1103,9 @@  discard block
 block discarded – undo
1095 1103
 
1096 1104
               echo '<option value="'.$row->id_penjamin.'"';
1097 1105
 
1098
-              if($row->id_penjamin == @$data->id_penjamin) echo ' selected';
1106
+              if($row->id_penjamin == @$data->id_penjamin) {
1107
+                  echo ' selected';
1108
+              }
1099 1109
 
1100 1110
               echo '>'.$row->penjamin.'</option>';
1101 1111
 
@@ -1499,7 +1509,9 @@  discard block
 block discarded – undo
1499 1509
 
1500 1510
        echo '<option value="'.$row->id_shift.'"';
1501 1511
 
1502
-       if($row->id_shift == $shift) echo ' selected';
1512
+       if($row->id_shift == $shift) {
1513
+           echo ' selected';
1514
+       }
1503 1515
 
1504 1516
        echo '>'.$row->shift.'</option>';
1505 1517
 
@@ -1829,7 +1841,9 @@  discard block
 block discarded – undo
1829 1841
 
1830 1842
        echo '<option value="'.$row->id_shift.'"';
1831 1843
 
1832
-       if($row->id_shift == $shift) echo ' selected';
1844
+       if($row->id_shift == $shift) {
1845
+           echo ' selected';
1846
+       }
1833 1847
 
1834 1848
        echo '>'.$row->shift.'</option>';
1835 1849
 
@@ -2001,7 +2015,9 @@  discard block
 block discarded – undo
2001 2015
 
2002 2016
               echo '<option value="'.$row->id_jenis_transaksi.'"';
2003 2017
 
2004
-              if($row->id_jenis_transaksi == @$d['id_jenis_transaksi']) echo ' selected';
2018
+              if($row->id_jenis_transaksi == @$d['id_jenis_transaksi']) {
2019
+                  echo ' selected';
2020
+              }
2005 2021
 
2006 2022
               echo '>'.$row->jenis_transaksi.'</option>';
2007 2023
 
@@ -2048,7 +2064,9 @@  discard block
 block discarded – undo
2048 2064
 
2049 2065
               echo '<option value="'.$row->id_jenis_pembayaran.'"';
2050 2066
 
2051
-              if($row->id_jenis_pembayaran == @$d['id_jenis_pembayaran']) echo ' selected';
2067
+              if($row->id_jenis_pembayaran == @$d['id_jenis_pembayaran']) {
2068
+                  echo ' selected';
2069
+              }
2052 2070
 
2053 2071
               echo '>'.$row->jenis_pembayaran.'</option>';
2054 2072
 
@@ -2077,7 +2095,9 @@  discard block
 block discarded – undo
2077 2095
 
2078 2096
               echo '<option value="'.$row->id_penjamin.'"';
2079 2097
 
2080
-              if($row->id_penjamin == @$d['id_penjamin']) echo ' selected';
2098
+              if($row->id_penjamin == @$d['id_penjamin']) {
2099
+                  echo ' selected';
2100
+              }
2081 2101
 
2082 2102
               echo '>'.$row->penjamin.'</option>';
2083 2103
 
Please login to merge, or discard this patch.
modul/mod_kasir/xcetak_kasir.php 1 patch
Braces   +17 added lines, -23 removed lines patch added patch discarded remove patch
@@ -315,37 +315,31 @@
 block discarded – undo
315 315
 
316 316
   $abil = array("", "satu", "dua", "tiga", "empat", "lima", "enam", "tujuh", "delapan", "sembilan", "sepuluh", "sebelas");
317 317
 
318
-  if ($x < 12)
319
-
318
+  if ($x < 12) {
319
+  
320 320
     return " " . $abil[$x];
321
-
322
-  elseif ($x < 20)
323
-
321
+  } elseif ($x < 20) {
322
+  
324 323
     return Terbilang($x - 10) . "belas";
325
-
326
-  elseif ($x < 100)
327
-
324
+  } elseif ($x < 100) {
325
+  
328 326
     return Terbilang($x / 10) . " puluh" . Terbilang($x % 10);
329
-
330
-  elseif ($x < 200)
331
-
327
+  } elseif ($x < 200) {
328
+  
332 329
     return " seratus" . Terbilang($x - 100);
333
-
334
-  elseif ($x < 1000)
335
-
330
+  } elseif ($x < 1000) {
331
+  
336 332
     return Terbilang($x / 100) . " ratus" . Terbilang($x % 100);
337
-
338
-  elseif ($x < 2000)
339
-
333
+  } elseif ($x < 2000) {
334
+  
340 335
     return " seribu" . Terbilang($x - 1000);
341
-
342
-  elseif ($x < 1000000)
343
-
336
+  } elseif ($x < 1000000) {
337
+  
344 338
     return Terbilang($x / 1000) . " ribu" . Terbilang($x % 1000);
345
-
346
-  elseif ($x < 1000000000)
347
-
339
+  } elseif ($x < 1000000000) {
340
+  
348 341
     return Terbilang($x / 1000000) . " juta" . Terbilang($x % 1000000);
342
+  }
349 343
 
350 344
 }
351 345
 
Please login to merge, or discard this patch.