Passed
Pull Request — master (#8)
by Saepul
04:20
created
js/datatables/unit_testing/templates/complex_header_2.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
 		<script type="text/javascript" src="../unit_test.js"></script>
21 21
 		<?php
22 22
             $aScripts = explode(':', $_GET['scripts']);
23
-            for ($i = 0; $i < count($aScripts); $i++) {
23
+            for ($i = 0; $i<count($aScripts); $i++) {
24 24
                 echo '<script type="text/javascript" src="../'.$aScripts[$i].'?rand='.rand().'"></script>'."\n";
25 25
             }
26 26
         ?>
Please login to merge, or discard this patch.
js/datatables/unit_testing/templates/dom_data_two_headers.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
 		<script type="text/javascript" src="../unit_test.js"></script>
21 21
 		<?php
22 22
             $aScripts = explode(':', $_GET['scripts']);
23
-            for ($i = 0; $i < count($aScripts); $i++) {
23
+            for ($i = 0; $i<count($aScripts); $i++) {
24 24
                 echo '<script type="text/javascript" src="../'.$aScripts[$i].'?rand='.rand().'"></script>'."\n";
25 25
             }
26 26
         ?>
Please login to merge, or discard this patch.
modul/mod_pasien/cetak_pasien.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -387,7 +387,7 @@
 block discarded – undo
387 387
 
388 388
 $tgl_lahir = date('d/m/Y', strtotime($r[tgl_lahir]));
389 389
 
390
-if ($r['gender'] == 'L') {
390
+if ($r['gender']=='L') {
391 391
     $gender = 'Laki-laki';
392 392
 } else {
393 393
     $gender = 'Perempuan';
Please login to merge, or discard this patch.
modul/mod_report_stok/print_report_stok.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
 $id = $r['id_modul'];
13 13
 $fa_icon = $r['fa_icon'];
14 14
 
15
-if ($r[orientation] == 'P') {
15
+if ($r[orientation]=='P') {
16 16
     $orientation = 'portrait';
17 17
 } else {
18 18
     $orientation = 'landscape';
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
 
140 140
 <!--<body onload="cetakspk()">-->
141 141
 
142
-<?php if ($_GET['printto'] == '2') {
142
+<?php if ($_GET['printto']=='2') {
143 143
     ?>
144 144
 <body onload="icetak()">
145 145
 <?php
Please login to merge, or discard this patch.
modul/mod_report_rujukan_pasien/print_report_rujukan_pasien.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
 $id = $r['id_modul'];
13 13
 $fa_icon = $r['fa_icon'];
14 14
 
15
-if ($r[orientation] == 'P') {
15
+if ($r[orientation]=='P') {
16 16
     $orientation = 'portrait';
17 17
 } else {
18 18
     $orientation = 'landscape';
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
 
140 140
 <!--<body onload="cetakspk()">-->
141 141
 
142
-<?php if ($_GET['printto'] == '2') {
142
+<?php if ($_GET['printto']=='2') {
143 143
     ?>
144 144
 <body onload="icetak()">
145 145
 <?php
Please login to merge, or discard this patch.
modul/mod_report_kunjungan_pasien/print_report_kunjungan_pasien.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
 $id = $r['id_modul'];
13 13
 $fa_icon = $r['fa_icon'];
14 14
 
15
-if ($r[orientation] == 'P') {
15
+if ($r[orientation]=='P') {
16 16
     $orientation = 'portrait';
17 17
 } else {
18 18
     $orientation = 'landscape';
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
 
140 140
 <!--<body onload="cetakspk()">-->
141 141
 
142
-<?php if ($_GET['printto'] == '2') {
142
+<?php if ($_GET['printto']=='2') {
143 143
     ?>
144 144
 <body onload="icetak()">
145 145
 <?php
Please login to merge, or discard this patch.
aksi_approval_diskon_penjualan_barang.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -15,12 +15,12 @@  discard block
 block discarded – undo
15 15
     $datetime = date('Y-m-d G:i:s', $hour);
16 16
     $userid = $_SESSION['userid'];
17 17
 
18
-    if ($module == 'approval_diskon_penjualan_barang' and $act == 'approve') {
18
+    if ($module=='approval_diskon_penjualan_barang' and $act=='approve') {
19 19
         $id_module = $_POST['id_module'];
20 20
 
21 21
         $jum = $_POST['jum'] - 1;
22 22
 
23
-        for ($i = 1; $i <= $jum; $i++) {
23
+        for ($i = 1; $i<=$jum; $i++) {
24 24
             $id = $_POST['id'.$i];
25 25
             $p_status = $_POST['p_status'.$i];
26 26
             $status = $_POST['status'.$i];
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
             $notrans = $_POST['notrans'.$i];
31 31
             $outlet = $_POST['outlet'.$i];
32 32
 
33
-            if ($p_status == '1') {
33
+            if ($p_status=='1') {
34 34
                 mysql_query("UPDATE penjualan_barang_detail

35 35
                     SET disc       = disc1

36 36
                       , disc_value = disc_value1      

Please login to merge, or discard this patch.
config/bar128.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
     $onChar = 1;
41 41
     for ($x = 0; $x < strlen($text); $x++) {								// GO THRU TEXT GET LETTERS
42 42
     if (!(($pos = strpos($char128asc, $text[$x])) === false)) {	// SKIP NOT FOUND CHARS
43
-      $w .= $char128wid[$pos];
43
+        $w .= $char128wid[$pos];
44 44
         $sum += $onChar++ * $pos;
45 45
     }
46 46
     }
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -38,8 +38,8 @@  discard block
 block discarded – undo
38 38
     global $char128asc, $char128wid;
39 39
     $w = $char128wid[$sum = 104]; // START symbol
40 40
     $onChar = 1;
41
-    for ($x = 0; $x < strlen($text); $x++) {								// GO THRU TEXT GET LETTERS
42
-    if (!(($pos = strpos($char128asc, $text[$x])) === false)) {	// SKIP NOT FOUND CHARS
41
+    for ($x = 0; $x<strlen($text); $x++) {								// GO THRU TEXT GET LETTERS
42
+    if (!(($pos = strpos($char128asc, $text[$x]))===false)) {	// SKIP NOT FOUND CHARS
43 43
       $w .= $char128wid[$pos];
44 44
         $sum += $onChar++ * $pos;
45 45
     }
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
     $w .= $char128wid[$sum % 103].$char128wid[106]; //Check Code, then END
48 48
     //Part 2, Write rows
49 49
     $html = '<table cellpadding=0 cellspacing=0><tr>';
50
-    for ($x = 0; $x < strlen($w); $x += 2) {   						// code 128 widths: black border, then white space
50
+    for ($x = 0; $x<strlen($w); $x += 2) {   						// code 128 widths: black border, then white space
51 51
         $html .= "<td><div class=\"b128\" style=\"border-left-width:{$w[$x]};width:{$w[$x + 1]}\"></div>";
52 52
     }
53 53
 
Please login to merge, or discard this patch.
modul/mod_rujukan/rujukan.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
             $no = 1;
50 50
 
51 51
             while ($r = mysql_fetch_array($tampil)) {
52
-                if ($r[tipe] == 'R') {
52
+                if ($r[tipe]=='R') {
53 53
                     $tipe = 'RS/Klinik';
54 54
                 } else {
55 55
                     $tipe = 'Lab';
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
                 echo"<td style='text-align:center;'>$r[aktif]</td>";
62 62
                 echo" <td  style='text-align:center;'>";
63 63
 
64
-                if ($r_edit == 'Y') {
64
+                if ($r_edit=='Y') {
65 65
                     echo"<a class='thickbox' href='modul/mod_$module/form_$module.php?id_rujukan=$r[id_rujukan]&id_module=$id&width=720&height=560&module=$module&TB_iframe=true' title='Update $nmmodule'><span class='icon'><i class='fa fa-pencil'></i></span></a>";
66 66
                 }
67 67
 
Please login to merge, or discard this patch.