Passed
Pull Request — master (#7)
by Saepul
04:54
created
config/functions.php 1 patch
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -84,28 +84,28 @@
 block discarded – undo
84 84
     }
85 85
 
86 86
     switch ($size[2]) {
87
-       case 1:       //GIF
87
+        case 1:       //GIF
88 88
            $src = imagecreatefromgif($srcFile);
89
-           break;
90
-       case 2:       //JPEG
89
+            break;
90
+        case 2:       //JPEG
91 91
            $src = imagecreatefromjpeg($srcFile);
92
-           break;
93
-       case 3:       //PNG
92
+            break;
93
+        case 3:       //PNG
94 94
            $src = imagecreatefrompng($srcFile);
95
-           break;
96
-       default:
95
+            break;
96
+        default:
97 97
            return false;
98
-           break;
98
+            break;
99 99
     }
100 100
 
101 101
     imagecopyresampled($dest, $src, 0, 0, 0, 0, $w, $h, $size[0], $size[1]);
102 102
 
103 103
     switch ($size[2]) {
104
-       case 1:
104
+        case 1:
105 105
        case 2:
106 106
            imagejpeg($dest, $destFile, $quality);
107
-           break;
108
-       case 3:
107
+            break;
108
+        case 3:
109 109
            imagepng($dest, $destFile);
110 110
     }
111 111
 
Please login to merge, or discard this patch.
config/barcode_gen.php 1 patch
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.
config/bar128.php 1 patch
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.
modul/mod_report_pengeluaran_obat/report_pengeluaran_obat.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
 $prd   = date("Y-m");
65 65
 
66 66
 $userid   = $_SESSION['userid'];  
67
-  ?>
67
+    ?>
68 68
 
69 69
  <div class="">
70 70
                    
@@ -115,12 +115,12 @@  discard block
 block discarded – undo
115 115
 
116 116
              <?php
117 117
 
118
-             $module = '?module='.$_GET['module'];          
119
-             $tampil=mysql_query("SELECT id_modul as id FROM modul WHERE link='".$module."'");                       
120
-             $r=mysql_fetch_array($tampil);
118
+                $module = '?module='.$_GET['module'];          
119
+                $tampil=mysql_query("SELECT id_modul as id FROM modul WHERE link='".$module."'");                       
120
+                $r=mysql_fetch_array($tampil);
121 121
 
122
-             echo"<input type='hidden' name='report_id' id='report_id' value=".$r[id].">"; 
123
-             echo"<input type='hidden' name='module' value=".$_GET[module].">";
122
+                echo"<input type='hidden' name='report_id' id='report_id' value=".$r[id].">"; 
123
+                echo"<input type='hidden' name='module' value=".$_GET[module].">";
124 124
             ?>
125 125
             </form>    
126 126
                    
Please login to merge, or discard this patch.
modul/mod_report_kunjungan_pasien/report_kunjungan_pasien.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
 $prd   = date("Y-m");
65 65
 
66 66
 $userid   = $_SESSION['userid'];  
67
-  ?>
67
+    ?>
68 68
 
69 69
  <div class="">
70 70
                    
@@ -115,12 +115,12 @@  discard block
 block discarded – undo
115 115
 
116 116
              <?php
117 117
 
118
-             $module = '?module='.$_GET['module'];          
119
-             $tampil=mysql_query("SELECT id_modul as id FROM modul WHERE link='".$module."'");                       
120
-             $r=mysql_fetch_array($tampil);
118
+                $module = '?module='.$_GET['module'];          
119
+                $tampil=mysql_query("SELECT id_modul as id FROM modul WHERE link='".$module."'");                       
120
+                $r=mysql_fetch_array($tampil);
121 121
 
122
-             echo"<input type='hidden' name='report_id' id='report_id' value=".$r[id].">"; 
123
-             echo"<input type='hidden' name='module' value=".$_GET[module].">";
122
+                echo"<input type='hidden' name='report_id' id='report_id' value=".$r[id].">"; 
123
+                echo"<input type='hidden' name='module' value=".$_GET[module].">";
124 124
             ?>
125 125
             </form>    
126 126
                    
Please login to merge, or discard this patch.
modul/mod_report_rekam_medis/report_rekam_medis.php 1 patch
Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
 $prd   = date("Y-m");
65 65
 
66 66
 $userid   = $_SESSION['userid'];  
67
-  ?>
67
+    ?>
68 68
 
69 69
  <div class="">
70 70
                    
@@ -93,17 +93,17 @@  discard block
 block discarded – undo
93 93
                     <select required name="pasien" class="form-control">
94 94
                      <option>--Pilih Pasien--</option>                
95 95
                         <?php
96
-                          $query = mysql_query('SELECT * FROM pasien ORDER BY nama');
97
-                           if($query && mysql_num_rows($query) > 0){
98
-                              while($row = mysql_fetch_object($query)){
96
+                            $query = mysql_query('SELECT * FROM pasien ORDER BY nama');
97
+                            if($query && mysql_num_rows($query) > 0){
98
+                                while($row = mysql_fetch_object($query)){
99 99
 
100 100
                                 $pasien = $row->ktp.'-'.$row->nama;
101 101
 
102
-                                 echo '<option value="'.$row->id_pasien.'"';
103
-                                 if($row->id_pasien == @$data->id_pasien) echo ' selected';
104
-                                 echo '>'.$pasien.'</option>';
105
-                              }
106
-                           }        
102
+                                    echo '<option value="'.$row->id_pasien.'"';
103
+                                    if($row->id_pasien == @$data->id_pasien) echo ' selected';
104
+                                    echo '>'.$pasien.'</option>';
105
+                                }
106
+                            }        
107 107
                     ?>
108 108
                     </select>
109 109
                 </div> 
@@ -137,12 +137,12 @@  discard block
 block discarded – undo
137 137
 
138 138
              <?php
139 139
 
140
-             $module = '?module='.$_GET['module'];          
141
-             $tampil=mysql_query("SELECT id_modul as id FROM modul WHERE link='".$module."'");                       
142
-             $r=mysql_fetch_array($tampil);
140
+                $module = '?module='.$_GET['module'];          
141
+                $tampil=mysql_query("SELECT id_modul as id FROM modul WHERE link='".$module."'");                       
142
+                $r=mysql_fetch_array($tampil);
143 143
 
144
-             echo"<input type='hidden' name='report_id' id='report_id' value=".$r[id].">"; 
145
-             echo"<input type='hidden' name='module' value=".$_GET[module].">";
144
+                echo"<input type='hidden' name='report_id' id='report_id' value=".$r[id].">"; 
145
+                echo"<input type='hidden' name='module' value=".$_GET[module].">";
146 146
             ?>
147 147
             </form>    
148 148
                    
Please login to merge, or discard this patch.
modul/mod_report_rekap_harian/report_rekap_harian.php 1 patch
Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
 $prd   = date("Y-m");
65 65
 
66 66
 $userid   = $_SESSION['userid'];  
67
-  ?>
67
+    ?>
68 68
 
69 69
  <div class="">
70 70
                    
@@ -101,14 +101,14 @@  discard block
 block discarded – undo
101 101
                 <div class="col-md-9 col-sm-9 col-xs-9 form-group"> 
102 102
                      <select name="jenis_transaksi" class="form-control">
103 103
                         <?php
104
-                          $query = mysql_query('SELECT * FROM jenis_transaksi ORDER BY id_jenis_transaksi');
105
-                           if($query && mysql_num_rows($query) > 0){
106
-                              while($row = mysql_fetch_object($query)){
107
-                              echo '<option value="'.$row->id_jenis_transaksi.'"';
108
-                              if($row->id_jenis_transaksi == '1') echo ' selected';
109
-                              echo '>'.$row->jenis_transaksi.'</option>';
110
-                              }
111
-                           }        
104
+                            $query = mysql_query('SELECT * FROM jenis_transaksi ORDER BY id_jenis_transaksi');
105
+                            if($query && mysql_num_rows($query) > 0){
106
+                                while($row = mysql_fetch_object($query)){
107
+                                echo '<option value="'.$row->id_jenis_transaksi.'"';
108
+                                if($row->id_jenis_transaksi == '1') echo ' selected';
109
+                                echo '>'.$row->jenis_transaksi.'</option>';
110
+                                }
111
+                            }        
112 112
                         ?>  
113 113
                         </select>                
114 114
                 </div>
@@ -130,12 +130,12 @@  discard block
 block discarded – undo
130 130
 
131 131
              <?php
132 132
 
133
-             $module = '?module='.$_GET['module'];          
134
-             $tampil=mysql_query("SELECT id_modul as id FROM modul WHERE link='".$module."'");                       
135
-             $r=mysql_fetch_array($tampil);
133
+                $module = '?module='.$_GET['module'];          
134
+                $tampil=mysql_query("SELECT id_modul as id FROM modul WHERE link='".$module."'");                       
135
+                $r=mysql_fetch_array($tampil);
136 136
 
137
-             echo"<input type='hidden' name='report_id' id='report_id' value=".$r[id].">"; 
138
-             echo"<input type='hidden' name='module' value=".$_GET[module].">";
137
+                echo"<input type='hidden' name='report_id' id='report_id' value=".$r[id].">"; 
138
+                echo"<input type='hidden' name='module' value=".$_GET[module].">";
139 139
             ?>
140 140
             </form>    
141 141
                    
Please login to merge, or discard this patch.
modul/mod_report_rujukan_pasien/report_rujukan_pasien.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
 $prd   = date("Y-m");
65 65
 
66 66
 $userid   = $_SESSION['userid'];  
67
-  ?>
67
+    ?>
68 68
 
69 69
  <div class="">
70 70
                    
@@ -115,12 +115,12 @@  discard block
 block discarded – undo
115 115
 
116 116
              <?php
117 117
 
118
-             $module = '?module='.$_GET['module'];          
119
-             $tampil=mysql_query("SELECT id_modul as id FROM modul WHERE link='".$module."'");                       
120
-             $r=mysql_fetch_array($tampil);
118
+                $module = '?module='.$_GET['module'];          
119
+                $tampil=mysql_query("SELECT id_modul as id FROM modul WHERE link='".$module."'");                       
120
+                $r=mysql_fetch_array($tampil);
121 121
 
122
-             echo"<input type='hidden' name='report_id' id='report_id' value=".$r[id].">"; 
123
-             echo"<input type='hidden' name='module' value=".$_GET[module].">";
122
+                echo"<input type='hidden' name='report_id' id='report_id' value=".$r[id].">"; 
123
+                echo"<input type='hidden' name='module' value=".$_GET[module].">";
124 124
             ?>
125 125
             </form>    
126 126
                    
Please login to merge, or discard this patch.
modul/mod_report_revenue/report_revenue.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
 $prd   = date("Y-m");
65 65
 
66 66
 $userid   = $_SESSION['userid'];  
67
-  ?>
67
+    ?>
68 68
 
69 69
  <div class="">
70 70
                    
@@ -122,12 +122,12 @@  discard block
 block discarded – undo
122 122
 
123 123
              <?php
124 124
 
125
-             $module = '?module='.$_GET['module'];          
126
-             $tampil=mysql_query("SELECT id_modul as id FROM modul WHERE link='".$module."'");                       
127
-             $r=mysql_fetch_array($tampil);
125
+                $module = '?module='.$_GET['module'];          
126
+                $tampil=mysql_query("SELECT id_modul as id FROM modul WHERE link='".$module."'");                       
127
+                $r=mysql_fetch_array($tampil);
128 128
 
129
-             echo"<input type='hidden' name='report_id' id='report_id' value=".$r[id].">"; 
130
-             echo"<input type='hidden' name='module' value=".$_GET[module].">";
129
+                echo"<input type='hidden' name='report_id' id='report_id' value=".$r[id].">"; 
130
+                echo"<input type='hidden' name='module' value=".$_GET[module].">";
131 131
             ?>
132 132
             </form>    
133 133
                    
Please login to merge, or discard this patch.