Passed
Branch master (c66316)
by Saepul
06:04
created
modul/mod_report_list_pasien/report_list_pasien.php 3 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
 $fdate   = date("Y-m-d");
14 14
 $ldate   = date("Y-m-d");
15 15
 
16
-  ?>
16
+    ?>
17 17
 
18 18
  <div class="">
19 19
                    
@@ -63,12 +63,12 @@  discard block
 block discarded – undo
63 63
 
64 64
              <?
65 65
 
66
-             $module = '?module='.$_GET['module'];          
67
-             $tampil=mysql_query("SELECT id_modul as id FROM modul WHERE link='".$module."'");                       
68
-             $r=mysql_fetch_array($tampil);
66
+                $module = '?module='.$_GET['module'];          
67
+                $tampil=mysql_query("SELECT id_modul as id FROM modul WHERE link='".$module."'");                       
68
+                $r=mysql_fetch_array($tampil);
69 69
 
70
-             echo"<input type='hidden' name='report_id' id='report_id' value=".$r[id].">"; 
71
-             echo"<input type='hidden' name='module' value=".$_GET[module].">";
70
+                echo"<input type='hidden' name='report_id' id='report_id' value=".$r[id].">"; 
71
+                echo"<input type='hidden' name='module' value=".$_GET[module].">";
72 72
             ?>
73 73
             </form>    
74 74
                    
Please login to merge, or discard this patch.
Switch Indentation   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -8,12 +8,12 @@  discard block
 block discarded – undo
8 8
 <?php
9 9
 switch($_GET[act]){
10 10
 
11
-default:  
11
+    default:  
12 12
 
13
-$fdate   = date("Y-m-d");
14
-$ldate   = date("Y-m-d");
13
+    $fdate   = date("Y-m-d");
14
+    $ldate   = date("Y-m-d");
15 15
 
16
-  ?>
16
+      ?>
17 17
 
18 18
  <div class="">
19 19
                    
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
                      <option value='%'>Semua</option>
45 45
 
46 46
                      <? for ($x = 'A'; $x <= 'Z'; $x++) { ?>
47
-                        <option value= '<?=$x;?>'><?=$x;?></option>
47
+                            <option value= '<?=$x;?>'><?=$x;?></option>
48 48
                      <? } ?>
49 49
 
50 50
                      </select>   
@@ -56,29 +56,29 @@  discard block
 block discarded – undo
56 56
                 </div> 
57 57
                 <div class="col-md-9 col-sm-9 col-xs-9 form-group"> 
58 58
                     <?
59
-                    echo"<input type=radio name='printto' value='1' class='flat' checked>&nbsp Preview &nbsp";
60
-                    echo"<input type=radio name='printto' value='2' class='flat'>&nbsp Print ";
61
-                    ?>                
59
+                        echo"<input type=radio name='printto' value='1' class='flat' checked>&nbsp Preview &nbsp";
60
+                        echo"<input type=radio name='printto' value='2' class='flat'>&nbsp Print ";
61
+                        ?>                
62 62
                 </div> 
63 63
 
64 64
              <?
65 65
 
66
-             $module = '?module='.$_GET['module'];          
67
-             $tampil=mysql_query("SELECT id_modul as id FROM modul WHERE link='".$module."'");                       
68
-             $r=mysql_fetch_array($tampil);
66
+                 $module = '?module='.$_GET['module'];          
67
+                 $tampil=mysql_query("SELECT id_modul as id FROM modul WHERE link='".$module."'");                       
68
+                 $r=mysql_fetch_array($tampil);
69 69
 
70
-             echo"<input type='hidden' name='report_id' id='report_id' value=".$r[id].">"; 
71
-             echo"<input type='hidden' name='module' value=".$_GET[module].">";
72
-            ?>
70
+                 echo"<input type='hidden' name='report_id' id='report_id' value=".$r[id].">"; 
71
+                 echo"<input type='hidden' name='module' value=".$_GET[module].">";
72
+                ?>
73 73
             </form>    
74 74
                    
75 75
                 </div>
76 76
                 <?for($i = 0; $i <= 20; $i++)  { 
77
-                    ?>
78
-                    <br />
77
+                        ?>
78
+                        <br />
79 79
                     <?
80
-                    }
81
-                    ?>
80
+                        }
81
+                        ?>
82 82
                  </div>
83 83
                    
84 84
                   
Please login to merge, or discard this patch.
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@  discard block
 block discarded – undo
6 6
      }
7 7
    </script>  
8 8
 <?php
9
-switch($_GET[act]){
9
+switch ($_GET[act]) {
10 10
 
11 11
 default:  
12 12
 
@@ -19,12 +19,12 @@  discard block
 block discarded – undo
19 19
                    
20 20
         <div class="row">
21 21
 
22
-          <form name="myform" id="myform" method="get" action="<? echo"modul/mod_$module/print_$module.php";?>"  onSubmit="popup<?=$module?>(this, 'join')"> 
22
+          <form name="myform" id="myform" method="get" action="<? echo"modul/mod_$module/print_$module.php"; ?>"  onSubmit="popup<?=$module?>(this, 'join')"> 
23 23
   
24 24
                 <div class="col-md-12 col-sm-12 col-xs-12">
25 25
                     <div class="x_panel">
26 26
                         <div class="x_title">
27
-                               <h2><?=$nmmodule;?></h2>
27
+                               <h2><?=$nmmodule; ?></h2>
28 28
                                <div class='pull-right'>
29 29
                                 <Button type="submit" class="btn btn-primary">
30 30
                                  <span class="glyphicon glyphicon-print" style='color:#fff;'></span>
@@ -43,8 +43,8 @@  discard block
 block discarded – undo
43 43
                      <select name="tipe" class="form-control">
44 44
                      <option value='%'>Semua</option>
45 45
 
46
-                     <? for ($x = 'A'; $x <= 'Z'; $x++) { ?>
47
-                        <option value= '<?=$x;?>'><?=$x;?></option>
46
+                     <? for ($x = 'A'; $x<='Z'; $x++) { ?>
47
+                        <option value= '<?=$x; ?>'><?=$x; ?></option>
48 48
                      <? } ?>
49 49
 
50 50
                      </select>   
@@ -64,8 +64,8 @@  discard block
 block discarded – undo
64 64
              <?
65 65
 
66 66
              $module = '?module='.$_GET['module'];          
67
-             $tampil=mysql_query("SELECT id_modul as id FROM modul WHERE link='".$module."'");                       
68
-             $r=mysql_fetch_array($tampil);
67
+             $tampil = mysql_query("SELECT id_modul as id FROM modul WHERE link='".$module."'");                       
68
+             $r = mysql_fetch_array($tampil);
69 69
 
70 70
              echo"<input type='hidden' name='report_id' id='report_id' value=".$r[id].">"; 
71 71
              echo"<input type='hidden' name='module' value=".$_GET[module].">";
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
             </form>    
74 74
                    
75 75
                 </div>
76
-                <?for($i = 0; $i <= 20; $i++)  { 
76
+                <?for ($i = 0; $i<=20; $i++) { 
77 77
                     ?>
78 78
                     <br />
79 79
                     <?
Please login to merge, or discard this patch.
modul/mod_report_list_pasien/print_report_list_pasien.php 2 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -13,9 +13,9 @@  discard block
 block discarded – undo
13 13
 $fa_icon   	= $r['fa_icon'];
14 14
 
15 15
 if($r[orientation] == 'P') {
16
-	$orientation = 'portrait';
16
+    $orientation = 'portrait';
17 17
 } else {
18
-	$orientation = 'landscape';
18
+    $orientation = 'landscape';
19 19
 }
20 20
 
21 21
 
@@ -160,18 +160,18 @@  discard block
 block discarded – undo
160 160
 
161 161
 <?
162 162
 $gtampil=mysql_query("SELECT * FROM informasi_perusahaan where id_informasi_perusahaan = '1'");
163
- $g=mysql_fetch_array($gtampil);
163
+    $g=mysql_fetch_array($gtampil);
164 164
 
165 165
 if ($g['pict']) {
166
-	$pict = $g['pict'];
166
+    $pict = $g['pict'];
167 167
 } else {
168
-	$pict = '';
168
+    $pict = '';
169 169
 }
170 170
 
171 171
 $company = ucwords($g['company']);
172 172
 
173 173
 
174
- ?>
174
+    ?>
175 175
 
176 176
  <table width='100%' style="padding-top:10px;">
177 177
 <tr>
Please login to merge, or discard this patch.
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -2,17 +2,17 @@  discard block
 block discarded – undo
2 2
 include "./../../config/koneksi.php";
3 3
 include "./../../config/fungsi_indobulan.php";
4 4
 
5
-$tampil=mysql_query("SELECT * FROM modul WHERE id_modul ='".$_GET[report_id]."'");
5
+$tampil = mysql_query("SELECT * FROM modul WHERE id_modul ='".$_GET[report_id]."'");
6 6
 						
7
-$r=mysql_fetch_array($tampil);
7
+$r = mysql_fetch_array($tampil);
8 8
 
9 9
 $module 	= $_GET['module'];
10
-$imodule 	= ucwords($r['nama_modul']);
11
-$nmmodule 	= ucwords($r['nama_modul']);
10
+$imodule = ucwords($r['nama_modul']);
11
+$nmmodule = ucwords($r['nama_modul']);
12 12
 $id     	= $r['id_modul'];
13
-$fa_icon   	= $r['fa_icon'];
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';
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
 
138 138
 <!--<body onload="cetakspk()">-->
139 139
 
140
-<? if ($_GET['printto'] == '2') { ?>
140
+<? if ($_GET['printto']=='2') { ?>
141 141
 <body onload="icetak()">
142 142
 <? } else { ?>
143 143
 <body>
@@ -159,8 +159,8 @@  discard block
 block discarded – undo
159 159
 
160 160
 
161 161
 <?
162
-$gtampil=mysql_query("SELECT * FROM informasi_perusahaan where id_informasi_perusahaan = '1'");
163
- $g=mysql_fetch_array($gtampil);
162
+$gtampil = mysql_query("SELECT * FROM informasi_perusahaan where id_informasi_perusahaan = '1'");
163
+ $g = mysql_fetch_array($gtampil);
164 164
 
165 165
 if ($g['pict']) {
166 166
 	$pict = $g['pict'];
@@ -176,10 +176,10 @@  discard block
 block discarded – undo
176 176
  <table width='100%' style="padding-top:10px;">
177 177
 <tr>
178 178
 <td width='10%'>
179
-<!-- <img src="../../images/logo/<?=$pict;?>" width=100px> -->
179
+<!-- <img src="../../images/logo/<?=$pict; ?>" width=100px> -->
180 180
 </td>
181 181
 <td style="text-align:center;" width='80%'>
182
-<span class='h1'><?=$nmmodule;?></span>
182
+<span class='h1'><?=$nmmodule; ?></span>
183 183
 <? echo "<span class='h2'>".$g['company']."</span><br>"; ?>
184 184
 </td>
185 185
 <td width='10%'>
@@ -213,7 +213,7 @@  discard block
 block discarded – undo
213 213
                          <?
214 214
                                        
215 215
 
216
-                            $tampil=mysql_query("SELECT a.*,b.agama,c.kategori
216
+                            $tampil = mysql_query("SELECT a.*,b.agama,c.kategori
217 217
                                                 FROM pasien a left join agama b 
218 218
                                                  ON a.id_agama = b.id_agama
219 219
                                                  left join kategori c
@@ -222,11 +222,11 @@  discard block
 block discarded – undo
222 222
                             
223 223
                             $no = 1;
224 224
                             
225
-                            while ($r=mysql_fetch_array($tampil)){  
225
+                            while ($r = mysql_fetch_array($tampil)) {  
226 226
 
227
-                                $tgl_lahir = DATE('d/m/Y',strtotime($r[tgl_lahir]));
227
+                                $tgl_lahir = DATE('d/m/Y', strtotime($r[tgl_lahir]));
228 228
 
229
-                                if ($r['gender'] == 'L') {
229
+                                if ($r['gender']=='L') {
230 230
                                     $gender    = 'Laki-laki';
231 231
                                 } else {
232 232
                                     $gender    = 'Perempuan';
Please login to merge, or discard this patch.
modul/mod_report_rekam_medis/print_report_rekam_medis.php 2 patches
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -13,9 +13,9 @@  discard block
 block discarded – undo
13 13
 $fa_icon    = $r['fa_icon'];
14 14
 
15 15
 if($r[orientation] == 'P') {
16
-  $orientation = 'portrait';
16
+    $orientation = 'portrait';
17 17
 } else {
18
-  $orientation = 'landscape';
18
+    $orientation = 'landscape';
19 19
 }
20 20
 
21 21
 
@@ -164,12 +164,12 @@  discard block
 block discarded – undo
164 164
 
165 165
 <?
166 166
 $gtampil=mysql_query("SELECT * FROM informasi_perusahaan where id_informasi_perusahaan = '1'");
167
- $g=mysql_fetch_array($gtampil);
167
+    $g=mysql_fetch_array($gtampil);
168 168
 
169 169
 if ($g['pict']) {
170
-  $pict = $g['pict'];
170
+    $pict = $g['pict'];
171 171
 } else {
172
-  $pict = '';
172
+    $pict = '';
173 173
 }
174 174
 
175 175
 $company = ucwords($g['company']);
@@ -193,7 +193,7 @@  discard block
 block discarded – undo
193 193
 <hr>
194 194
 
195 195
 <?
196
- $tampil=mysql_query("SELECT a.*,b.agama,c.kategori
196
+    $tampil=mysql_query("SELECT a.*,b.agama,c.kategori
197 197
           FROM pasien a left join agama b 
198 198
            ON a.id_agama = b.id_agama
199 199
            left join kategori c
@@ -207,7 +207,7 @@  discard block
 block discarded – undo
207 207
 if ($r['gender'] == 'L') {
208 208
     $gender    = 'Laki-laki';
209 209
 } else {
210
-     $gender    = 'Perempuan';
210
+        $gender    = 'Perempuan';
211 211
 }
212 212
 ?>      
213 213
 
Please login to merge, or discard this patch.
Spacing   +24 added lines, -24 removed lines patch added patch discarded remove patch
@@ -2,9 +2,9 @@  discard block
 block discarded – undo
2 2
 include "./../../config/koneksi.php";
3 3
 include "./../../config/fungsi_indobulan.php";
4 4
 
5
-$tampil=mysql_query("SELECT * FROM modul WHERE id_modul ='".$_GET[report_id]."'");
5
+$tampil = mysql_query("SELECT * FROM modul WHERE id_modul ='".$_GET[report_id]."'");
6 6
 
7
-$r=mysql_fetch_array($tampil);
7
+$r = mysql_fetch_array($tampil);
8 8
 
9 9
 $module   = $_GET['module'];
10 10
 $imodule  = ucwords($r['nama_modul']);
@@ -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';
@@ -23,8 +23,8 @@  discard block
 block discarded – undo
23 23
 $ldate = $_GET['ldate'];
24 24
 $ldate = $_GET['ldate'];
25 25
 
26
-$ftgl = DATE('d/m/Y',strtotime($_GET['fdate']));
27
-$ltgl = DATE('d/m/Y',strtotime($_GET['ldate']));
26
+$ftgl = DATE('d/m/Y', strtotime($_GET['fdate']));
27
+$ltgl = DATE('d/m/Y', strtotime($_GET['ldate']));
28 28
     
29 29
 ?>
30 30
 
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
 
142 142
 <!--<body onload="cetakspk()">-->
143 143
 
144
-<? if ($_GET['printto'] == '2') { ?>
144
+<? if ($_GET['printto']=='2') { ?>
145 145
 <body onload="icetak()">
146 146
 <? } else { ?>
147 147
 <body>
@@ -163,8 +163,8 @@  discard block
 block discarded – undo
163 163
 
164 164
 
165 165
 <?
166
-$gtampil=mysql_query("SELECT * FROM informasi_perusahaan where id_informasi_perusahaan = '1'");
167
- $g=mysql_fetch_array($gtampil);
166
+$gtampil = mysql_query("SELECT * FROM informasi_perusahaan where id_informasi_perusahaan = '1'");
167
+ $g = mysql_fetch_array($gtampil);
168 168
 
169 169
 if ($g['pict']) {
170 170
   $pict = $g['pict'];
@@ -178,12 +178,12 @@  discard block
 block discarded – undo
178 178
  <table width='100%' style="padding-top:10px;">
179 179
 <tr>
180 180
 <td width='10%'>
181
-<!-- <img src="../../images/logo/<?=$pict;?>" width=100px> -->
181
+<!-- <img src="../../images/logo/<?=$pict; ?>" width=100px> -->
182 182
 </td>
183 183
 <td style="text-align:center;" width='80%'>
184
-<span class='h1'><?=$nmmodule;?></span><br>
184
+<span class='h1'><?=$nmmodule; ?></span><br>
185 185
 <? echo "<span class='h2'>".$g['company']."</span><br>"; ?>
186
-<br>Periode : <?=$ftgl;?> - <?=$ltgl;?>
186
+<br>Periode : <?=$ftgl; ?> - <?=$ltgl; ?>
187 187
 </td>
188 188
 <td width='10%'>
189 189
 &nbsp
@@ -193,29 +193,29 @@  discard block
 block discarded – undo
193 193
 <hr>
194 194
 
195 195
 <?
196
- $tampil=mysql_query("SELECT a.*,b.agama,c.kategori
196
+ $tampil = mysql_query("SELECT a.*,b.agama,c.kategori
197 197
           FROM pasien a left join agama b 
198 198
            ON a.id_agama = b.id_agama
199 199
            left join kategori c
200 200
            ON a.id_kategori = c.id_kategori
201 201
            WHERE a.id_pasien = '$pasien' ");
202 202
   
203
-$r=mysql_fetch_array($tampil); 
203
+$r = mysql_fetch_array($tampil); 
204 204
 
205
-$tgl_lahir = DATE('d/m/Y',strtotime($r[tgl_lahir]));
205
+$tgl_lahir = DATE('d/m/Y', strtotime($r[tgl_lahir]));
206 206
 
207
-if ($r['gender'] == 'L') {
208
-    $gender    = 'Laki-laki';
207
+if ($r['gender']=='L') {
208
+    $gender = 'Laki-laki';
209 209
 } else {
210
-     $gender    = 'Perempuan';
210
+     $gender = 'Perempuan';
211 211
 }
212 212
 ?>      
213 213
 
214 214
 <table style="width: 100%;">
215
-<tr><td style="width: 20%;">NIP</td><td style="width: 1%;">:</td><td><?=$r[ktp];?></td></tr>
216
-<tr><td style="width: 20%;">Nama Pasien</td><td style="width: 1%;">:</td><td><?=$r[nama];?></td></tr>
217
-<tr><td style="width: 20%;">Jenis Kelamin</td><td style="width: 1%;">:</td><td><?=$gender;?></td></tr>
218
-<tr><td style="width: 20%;">Tanggal Lahir</td><td style="width: 1%;">:</td><td><?=$tgl_lahir;?></td></tr>
215
+<tr><td style="width: 20%;">NIP</td><td style="width: 1%;">:</td><td><?=$r[ktp]; ?></td></tr>
216
+<tr><td style="width: 20%;">Nama Pasien</td><td style="width: 1%;">:</td><td><?=$r[nama]; ?></td></tr>
217
+<tr><td style="width: 20%;">Jenis Kelamin</td><td style="width: 1%;">:</td><td><?=$gender; ?></td></tr>
218
+<tr><td style="width: 20%;">Tanggal Lahir</td><td style="width: 1%;">:</td><td><?=$tgl_lahir; ?></td></tr>
219 219
 </table> 
220 220
 <br>
221 221
 <table style="width: 100%;" border='1'>
@@ -229,7 +229,7 @@  discard block
 block discarded – undo
229 229
 
230 230
     <?
231 231
 
232
-$tampil=mysql_query("SELECT a.*,b.nama,b.tgl_lahir,b.ktp,c.poli,d.kategori          
232
+$tampil = mysql_query("SELECT a.*,b.nama,b.tgl_lahir,b.ktp,c.poli,d.kategori          
233 233
         FROM kunjungan_berobat a left join pasien b 
234 234
          ON a.id_pasien = b.id_pasien
235 235
          left join poli c 
@@ -240,9 +240,9 @@  discard block
 block discarded – undo
240 240
 
241 241
      
242 242
 
243
-while ($r=mysql_fetch_array($tampil)){  
243
+while ($r = mysql_fetch_array($tampil)) {  
244 244
 
245
-$tgl       = DATE('d/m/Y',strtotime($r[tanggal]));
245
+$tgl = DATE('d/m/Y', strtotime($r[tanggal]));
246 246
 
247 247
 echo"<tr>";
248 248
 echo"<td>$tgl</td>";
Please login to merge, or discard this patch.
modul/mod_report_rekam_medis/report_rekam_medis.php 4 patches
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
                         <?
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
              <?
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.
Switch Indentation   +31 added lines, -31 removed lines patch added patch discarded remove patch
@@ -56,15 +56,15 @@  discard block
 block discarded – undo
56 56
 <?php
57 57
 switch($_GET[act]){
58 58
 
59
-default:  
59
+    default:  
60 60
 
61
-$fdate   = date("Y-m-01");
62
-$ldate   = date("Y-m-d");
61
+    $fdate   = date("Y-m-01");
62
+    $ldate   = date("Y-m-d");
63 63
 
64
-$prd   = date("Y-m");
64
+    $prd   = date("Y-m");
65 65
 
66
-$userid   = $_SESSION['userid'];  
67
-  ?>
66
+    $userid   = $_SESSION['userid'];  
67
+      ?>
68 68
 
69 69
  <div class="">
70 70
                    
@@ -93,18 +93,18 @@  discard block
 block discarded – undo
93 93
                     <select required name="pasien" class="form-control">
94 94
                      <option>--Pilih Pasien--</option>                
95 95
                         <?
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
-
100
-                                $pasien = $row->ktp.'-'.$row->nama;
101
-
102
-                                 echo '<option value="'.$row->id_pasien.'"';
103
-                                 if($row->id_pasien == @$data->id_pasien) echo ' selected';
104
-                                 echo '>'.$pasien.'</option>';
105
-                              }
106
-                           }        
107
-                    ?>
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
+
100
+                                    $pasien = $row->ktp.'-'.$row->nama;
101
+
102
+                                     echo '<option value="'.$row->id_pasien.'"';
103
+                                     if($row->id_pasien == @$data->id_pasien) echo ' selected';
104
+                                     echo '>'.$pasien.'</option>';
105
+                                  }
106
+                               }        
107
+                        ?>
108 108
                     </select>
109 109
                 </div> 
110 110
 
@@ -129,30 +129,30 @@  discard block
 block discarded – undo
129 129
                 <div class="col-md-9 col-sm-9 col-xs-9 form-group"> 
130 130
                  <label class="control-label">
131 131
                     <?
132
-                    echo"<input type=radio name='printto' value='1' class='flat' checked>&nbsp Preview &nbsp</label>";
133
-                    echo"<input type=radio name='printto' value='2' class='flat'>&nbsp Print</label> ";
134
-                    ?>      
132
+                        echo"<input type=radio name='printto' value='1' class='flat' checked>&nbsp Preview &nbsp</label>";
133
+                        echo"<input type=radio name='printto' value='2' class='flat'>&nbsp Print</label> ";
134
+                        ?>      
135 135
                  </label>             
136 136
                 </div> 
137 137
 
138 138
              <?
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].">";
146
-            ?>
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
+                ?>
147 147
             </form>    
148 148
                    
149 149
                 </div>
150 150
                 <?for($i = 0; $i <= 20; $i++)  { 
151
-                    ?>
152
-                    <br />
151
+                        ?>
152
+                        <br />
153 153
                     <?
154
-                    }
155
-                    ?>
154
+                        }
155
+                        ?>
156 156
                  </div>
157 157
                    
158 158
                   
Please login to merge, or discard this patch.
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
 
35 35
   }
36 36
 
37
-  xmlhttp.open("GET","<?php echo"./modul/mod_$module/getlokasi.php?q=";?>"+str,true);
37
+  xmlhttp.open("GET","<?php echo"./modul/mod_$module/getlokasi.php?q="; ?>"+str,true);
38 38
 
39 39
   xmlhttp.send();
40 40
 
@@ -54,28 +54,28 @@  discard block
 block discarded – undo
54 54
 
55 55
 
56 56
 <?php
57
-switch($_GET[act]){
57
+switch ($_GET[act]) {
58 58
 
59 59
 default:  
60 60
 
61 61
 $fdate   = date("Y-m-01");
62 62
 $ldate   = date("Y-m-d");
63 63
 
64
-$prd   = date("Y-m");
64
+$prd = date("Y-m");
65 65
 
66
-$userid   = $_SESSION['userid'];  
66
+$userid = $_SESSION['userid'];  
67 67
   ?>
68 68
 
69 69
  <div class="">
70 70
                    
71 71
         <div class="row">
72 72
 
73
-          <form name="myform" id="myform" method="get" action="<? echo"modul/mod_$module/print_$module.php";?>"  onSubmit="popup<?=$module?>(this, 'join');"> 
73
+          <form name="myform" id="myform" method="get" action="<? echo"modul/mod_$module/print_$module.php"; ?>"  onSubmit="popup<?=$module?>(this, 'join');"> 
74 74
   
75 75
                 <div class="col-md-12 col-sm-12 col-xs-12">
76 76
                     <div class="x_panel">
77 77
                         <div class="x_title">
78
-                               <h2><?=$nmmodule;?></h2>
78
+                               <h2><?=$nmmodule; ?></h2>
79 79
                                <div class='pull-right'>
80 80
                                 <Button type="submit" class="btn btn-primary">
81 81
                                  <span class="glyphicon glyphicon-print" style='color:#fff;'></span>
@@ -94,13 +94,13 @@  discard block
 block discarded – undo
94 94
                      <option>--Pilih Pasien--</option>                
95 95
                         <?
96 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)){
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 102
                                  echo '<option value="'.$row->id_pasien.'"';
103
-                                 if($row->id_pasien == @$data->id_pasien) echo ' selected';
103
+                                 if ($row->id_pasien==@$data->id_pasien) echo ' selected';
104 104
                                  echo '>'.$pasien.'</option>';
105 105
                               }
106 106
                            }        
@@ -138,8 +138,8 @@  discard block
 block discarded – undo
138 138
              <?
139 139
 
140 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);
141
+             $tampil = mysql_query("SELECT id_modul as id FROM modul WHERE link='".$module."'");                       
142
+             $r = mysql_fetch_array($tampil);
143 143
 
144 144
              echo"<input type='hidden' name='report_id' id='report_id' value=".$r[id].">"; 
145 145
              echo"<input type='hidden' name='module' value=".$_GET[module].">";
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
             </form>    
148 148
                    
149 149
                 </div>
150
-                <?for($i = 0; $i <= 20; $i++)  { 
150
+                <?for ($i = 0; $i<=20; $i++) { 
151 151
                     ?>
152 152
                     <br />
153 153
                     <?
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -100,7 +100,9 @@
 block discarded – undo
100 100
                                 $pasien = $row->ktp.'-'.$row->nama;
101 101
 
102 102
                                  echo '<option value="'.$row->id_pasien.'"';
103
-                                 if($row->id_pasien == @$data->id_pasien) echo ' selected';
103
+                                 if($row->id_pasien == @$data->id_pasien) {
104
+                                     echo ' selected';
105
+                                 }
104 106
                                  echo '>'.$pasien.'</option>';
105 107
                               }
106 108
                            }        
Please login to merge, or discard this patch.
modul.php 2 patches
Indentation   +24 added lines, -24 removed lines patch added patch discarded remove patch
@@ -6,21 +6,21 @@  discard block
 block discarded – undo
6 6
 
7 7
 if ($_SESSION[role]=='dev'){
8 8
 
9
-  $sql=mysql_query("select * from modul where aktif='Y' order by urutan");
9
+    $sql=mysql_query("select * from modul where aktif='Y' order by urutan");
10 10
 
11 11
 
12 12
 } elseif ($_SESSION[role]=='admin'){
13 13
 
14
-  $sql=mysql_query("select * from modul where status !='dev' and aktif='Y' order by urutan");
14
+    $sql=mysql_query("select * from modul where status !='dev' and aktif='Y' order by urutan");
15 15
 
16 16
 
17 17
 } elseif ($_SESSION[role]=='user'){
18 18
 
19
-	  $sql=mysql_query("select * from modul where status='user' and aktif='Y' order by urutan");
19
+        $sql=mysql_query("select * from modul where status='user' and aktif='Y' order by urutan");
20 20
 
21 21
 } else {
22 22
 
23
-  $sql=mysql_query("SELECT * FROM modul a inner join usermenu b on a.id_modul = b.id_modul where a.status='user' and a.aktif='Y'  and b.m_aktif='Y' and b.username='$_SESSION[id_user]' ORDER BY a.urutan"); 
23
+    $sql=mysql_query("SELECT * FROM modul a inner join usermenu b on a.id_modul = b.id_modul where a.status='user' and a.aktif='Y'  and b.m_aktif='Y' and b.username='$_SESSION[id_user]' ORDER BY a.urutan"); 
24 24
 
25 25
 } 
26 26
 
@@ -36,33 +36,33 @@  discard block
 block discarded – undo
36 36
 //$njml = '('.$cjml.')';	
37 37
 //}
38 38
 	
39
-  if ($r[status_menu] == 'M' and !empty($r[link])) {  
40
-   if ($r[nama_modul] == 'Notice') {
41
-   echo "<a class='menuitem' href='$r[link]'>$r[nama_modul] $njml</a>";
42
-   } else {
39
+    if ($r[status_menu] == 'M' and !empty($r[link])) {  
40
+    if ($r[nama_modul] == 'Notice') {
41
+    echo "<a class='menuitem' href='$r[link]'>$r[nama_modul] $njml</a>";
42
+    } else {
43 43
     echo "<a class='menuitem' href='$r[link]'>$r[nama_modul]</a>";	    
44
-   }
44
+    }
45 45
   
46
-  } else if ($r[status_menu] == 'M' and empty($r[link])) {  	
47
-  echo "<a class='menuitem submenuheader' href='$r[link]'>$r[nama_modul]</a>  ";
46
+    } else if ($r[status_menu] == 'M' and empty($r[link])) {  	
47
+    echo "<a class='menuitem submenuheader' href='$r[link]'>$r[nama_modul]</a>  ";
48 48
   
49
-  if ($_SESSION[role]=='dev' or $_SESSION[role]=='admin') {
50
-   $detil=mysql_query("select * from modul where id_submenu='$r[id_modul]' and status_menu='C' and aktif='Y' order by urutan"); 
51
-  } else {
52
-	$detil=mysql_query("select * from modul where id_submenu='$r[id_modul]' and status_menu='C' and aktif='Y' and (id_role = '5' or id_role	 = '$_SESSION[role]') and (id_group = '1' or id_group = '$_SESSION[group]')order by urutan");   
53
-  }
54
-  echo"
49
+    if ($_SESSION[role]=='dev' or $_SESSION[role]=='admin') {
50
+    $detil=mysql_query("select * from modul where id_submenu='$r[id_modul]' and status_menu='C' and aktif='Y' order by urutan"); 
51
+    } else {
52
+    $detil=mysql_query("select * from modul where id_submenu='$r[id_modul]' and status_menu='C' and aktif='Y' and (id_role = '5' or id_role	 = '$_SESSION[role]') and (id_group = '1' or id_group = '$_SESSION[group]')order by urutan");   
53
+    }
54
+    echo"
55 55
   <div class='submenu'>
56 56
 	";
57
-	while ($d=mysql_fetch_array($detil)){  
58
-	echo"<ul><li><a href='$d[link]'>$d[nama_modul]</a></li></ul>";
59
-	}
60
-	echo"
57
+    while ($d=mysql_fetch_array($detil)){  
58
+    echo"<ul><li><a href='$d[link]'>$d[nama_modul]</a></li></ul>";
59
+    }
60
+    echo"
61 61
  </div>	
62 62
   ";
63
-  } else {
64
-  echo"";
65
-  }
63
+    } else {
64
+    echo"";
65
+    }
66 66
   
67 67
  
68 68
 }
Please login to merge, or discard this patch.
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -4,28 +4,28 @@  discard block
 block discarded – undo
4 4
 
5 5
 
6 6
 
7
-if ($_SESSION[role]=='dev'){
7
+if ($_SESSION[role]=='dev') {
8 8
 
9
-  $sql=mysql_query("select * from modul where aktif='Y' order by urutan");
9
+  $sql = mysql_query("select * from modul where aktif='Y' order by urutan");
10 10
 
11 11
 
12
-} elseif ($_SESSION[role]=='admin'){
12
+} elseif ($_SESSION[role]=='admin') {
13 13
 
14
-  $sql=mysql_query("select * from modul where status !='dev' and aktif='Y' order by urutan");
14
+  $sql = mysql_query("select * from modul where status !='dev' and aktif='Y' order by urutan");
15 15
 
16 16
 
17
-} elseif ($_SESSION[role]=='user'){
17
+} elseif ($_SESSION[role]=='user') {
18 18
 
19
-	  $sql=mysql_query("select * from modul where status='user' and aktif='Y' order by urutan");
19
+	  $sql = mysql_query("select * from modul where status='user' and aktif='Y' order by urutan");
20 20
 
21 21
 } else {
22 22
 
23
-  $sql=mysql_query("SELECT * FROM modul a inner join usermenu b on a.id_modul = b.id_modul where a.status='user' and a.aktif='Y'  and b.m_aktif='Y' and b.username='$_SESSION[id_user]' ORDER BY a.urutan"); 
23
+  $sql = mysql_query("SELECT * FROM modul a inner join usermenu b on a.id_modul = b.id_modul where a.status='user' and a.aktif='Y'  and b.m_aktif='Y' and b.username='$_SESSION[id_user]' ORDER BY a.urutan"); 
24 24
 
25 25
 } 
26 26
 
27 27
  
28
-while ($r=mysql_fetch_array($sql)){  
28
+while ($r = mysql_fetch_array($sql)) {  
29 29
 
30 30
 //$nt=mysql_query("select count from notice where (status = '1' and id_user2 = '$_SESSION[id_user]') or( status = '3' and id_user2 = '$_SESSION[id_user]')");
31 31
 //$cjml = mysql_num_rows($nt);  
@@ -36,25 +36,25 @@  discard block
 block discarded – undo
36 36
 //$njml = '('.$cjml.')';	
37 37
 //}
38 38
 	
39
-  if ($r[status_menu] == 'M' and !empty($r[link])) {  
40
-   if ($r[nama_modul] == 'Notice') {
39
+  if ($r[status_menu]=='M' and !empty($r[link])) {  
40
+   if ($r[nama_modul]=='Notice') {
41 41
    echo "<a class='menuitem' href='$r[link]'>$r[nama_modul] $njml</a>";
42 42
    } else {
43 43
     echo "<a class='menuitem' href='$r[link]'>$r[nama_modul]</a>";	    
44 44
    }
45 45
   
46
-  } else if ($r[status_menu] == 'M' and empty($r[link])) {  	
46
+  } else if ($r[status_menu]=='M' and empty($r[link])) {  	
47 47
   echo "<a class='menuitem submenuheader' href='$r[link]'>$r[nama_modul]</a>  ";
48 48
   
49 49
   if ($_SESSION[role]=='dev' or $_SESSION[role]=='admin') {
50
-   $detil=mysql_query("select * from modul where id_submenu='$r[id_modul]' and status_menu='C' and aktif='Y' order by urutan"); 
50
+   $detil = mysql_query("select * from modul where id_submenu='$r[id_modul]' and status_menu='C' and aktif='Y' order by urutan"); 
51 51
   } else {
52
-	$detil=mysql_query("select * from modul where id_submenu='$r[id_modul]' and status_menu='C' and aktif='Y' and (id_role = '5' or id_role	 = '$_SESSION[role]') and (id_group = '1' or id_group = '$_SESSION[group]')order by urutan");   
52
+	$detil = mysql_query("select * from modul where id_submenu='$r[id_modul]' and status_menu='C' and aktif='Y' and (id_role = '5' or id_role	 = '$_SESSION[role]') and (id_group = '1' or id_group = '$_SESSION[group]')order by urutan");   
53 53
   }
54 54
   echo"
55 55
   <div class='submenu'>
56 56
 	";
57
-	while ($d=mysql_fetch_array($detil)){  
57
+	while ($d = mysql_fetch_array($detil)) {  
58 58
 	echo"<ul><li><a href='$d[link]'>$d[nama_modul]</a></li></ul>";
59 59
 	}
60 60
 	echo"
Please login to merge, or discard this patch.
topmenu.php 2 patches
Indentation   +23 added lines, -23 removed lines patch added patch discarded remove patch
@@ -16,11 +16,11 @@  discard block
 block discarded – undo
16 16
 <?
17 17
 $SQL=	"SELECT * FROM general_setting ";	
18 18
 
19
-		$tampil=mysql_query($SQL);
19
+        $tampil=mysql_query($SQL);
20 20
 								 
21
-		$r=mysql_fetch_array($tampil);
21
+        $r=mysql_fetch_array($tampil);
22 22
 
23
-		$nm_hotel = $r[hotel_name];
23
+        $nm_hotel = $r[hotel_name];
24 24
 ?>
25 25
 <td width='90%'>
26 26
 <div id='cssmenu'>
@@ -31,41 +31,41 @@  discard block
 block discarded – undo
31 31
 	
32 32
    <?php
33 33
 
34
-   	$user = $_SESSION['userid'];
34
+        $user = $_SESSION['userid'];
35 35
 
36 36
 
37
-		  $sql=mysql_query("select * from modul where aktif='Y' order by urutan");
37
+            $sql=mysql_query("select * from modul where aktif='Y' order by urutan");
38 38
 
39 39
 		 
40
-	while ($r=mysql_fetch_array($sql)){  
40
+    while ($r=mysql_fetch_array($sql)){  
41 41
 	
42
-	 if ($r[status_menu] == 'M' and !empty($r[link])) {  
43
-		 echo "<li class='Aktif'><a href='$r[link]&menu=$r[nama_modul]'>$r[nama_modul]</a>";	    
42
+        if ($r[status_menu] == 'M' and !empty($r[link])) {  
43
+            echo "<li class='Aktif'><a href='$r[link]&menu=$r[nama_modul]'>$r[nama_modul]</a>";	    
44 44
 	   
45
-	  } else if ($r[status_menu] == 'M' and empty($r[link])) {  	
46
-	  echo "<li class='Aktif'><a href='#'>$r[nama_modul]</a>";
45
+        } else if ($r[status_menu] == 'M' and empty($r[link])) {  	
46
+        echo "<li class='Aktif'><a href='#'>$r[nama_modul]</a>";
47 47
 	  
48
-	  }
48
+        }
49 49
 	
50
-	echo"<ul>";
50
+    echo"<ul>";
51 51
 	
52
-			$detil=mysql_query("select * from modul where parentid='$r[id_modul]' and status_menu='C' and aktif='Y' order by urutan"); 
52
+            $detil=mysql_query("select * from modul where parentid='$r[id_modul]' and status_menu='C' and aktif='Y' order by urutan"); 
53 53
 		
54
-		while ($d=mysql_fetch_array($detil)){  
54
+        while ($d=mysql_fetch_array($detil)){  
55 55
 
56
-		if ($d[is_form] == 'Y')	{
57
-			echo"<li><a href='form/form_$d[link].php?width=850&height=600&module=$d[link]&imodule=$imodule&imenu=$imenu&isub=$isub&TB_iframe=true' title='$d[nama_modul]' class='thickbox' >$d[nama_modul]</a></li>"; 	 						
58
-		} else {
59
-			echo"<li><a href='$d[link]&menu=$r[nama_modul]&sub=$d[nama_modul]'>$d[nama_modul]</a></li>";
56
+        if ($d[is_form] == 'Y')	{
57
+            echo"<li><a href='form/form_$d[link].php?width=850&height=600&module=$d[link]&imodule=$imodule&imenu=$imenu&isub=$isub&TB_iframe=true' title='$d[nama_modul]' class='thickbox' >$d[nama_modul]</a></li>"; 	 						
58
+        } else {
59
+            echo"<li><a href='$d[link]&menu=$r[nama_modul]&sub=$d[nama_modul]'>$d[nama_modul]</a></li>";
60 60
 			
61
-		}
61
+        }
62 62
 		
63
-		}
63
+        }
64 64
 		
65
-	echo"</ul>";	
66
-	}  
65
+    echo"</ul>";	
66
+    }  
67 67
   
68
-  ?>
68
+    ?>
69 69
   
70 70
   
71 71
   
Please login to merge, or discard this patch.
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -14,11 +14,11 @@  discard block
 block discarded – undo
14 14
 
15 15
 <tr>
16 16
 <?
17
-$SQL=	"SELECT * FROM general_setting ";	
17
+$SQL = "SELECT * FROM general_setting ";	
18 18
 
19
-		$tampil=mysql_query($SQL);
19
+		$tampil = mysql_query($SQL);
20 20
 								 
21
-		$r=mysql_fetch_array($tampil);
21
+		$r = mysql_fetch_array($tampil);
22 22
 
23 23
 		$nm_hotel = $r[hotel_name];
24 24
 ?>
@@ -34,26 +34,26 @@  discard block
 block discarded – undo
34 34
    	$user = $_SESSION['userid'];
35 35
 
36 36
 
37
-		  $sql=mysql_query("select * from modul where aktif='Y' order by urutan");
37
+		  $sql = mysql_query("select * from modul where aktif='Y' order by urutan");
38 38
 
39 39
 		 
40
-	while ($r=mysql_fetch_array($sql)){  
40
+	while ($r = mysql_fetch_array($sql)) {  
41 41
 	
42
-	 if ($r[status_menu] == 'M' and !empty($r[link])) {  
42
+	 if ($r[status_menu]=='M' and !empty($r[link])) {  
43 43
 		 echo "<li class='Aktif'><a href='$r[link]&menu=$r[nama_modul]'>$r[nama_modul]</a>";	    
44 44
 	   
45
-	  } else if ($r[status_menu] == 'M' and empty($r[link])) {  	
45
+	  } else if ($r[status_menu]=='M' and empty($r[link])) {  	
46 46
 	  echo "<li class='Aktif'><a href='#'>$r[nama_modul]</a>";
47 47
 	  
48 48
 	  }
49 49
 	
50 50
 	echo"<ul>";
51 51
 	
52
-			$detil=mysql_query("select * from modul where parentid='$r[id_modul]' and status_menu='C' and aktif='Y' order by urutan"); 
52
+			$detil = mysql_query("select * from modul where parentid='$r[id_modul]' and status_menu='C' and aktif='Y' order by urutan"); 
53 53
 		
54
-		while ($d=mysql_fetch_array($detil)){  
54
+		while ($d = mysql_fetch_array($detil)) {  
55 55
 
56
-		if ($d[is_form] == 'Y')	{
56
+		if ($d[is_form]=='Y') {
57 57
 			echo"<li><a href='form/form_$d[link].php?width=850&height=600&module=$d[link]&imodule=$imodule&imenu=$imenu&isub=$isub&TB_iframe=true' title='$d[nama_modul]' class='thickbox' >$d[nama_modul]</a></li>"; 	 						
58 58
 		} else {
59 59
 			echo"<li><a href='$d[link]&menu=$r[nama_modul]&sub=$d[nama_modul]'>$d[nama_modul]</a></li>";
Please login to merge, or discard this patch.
config/library.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-$seminggu = array("Minggu","Senin","Selasa","Rabu","Kamis","Jumat","Sabtu");
2
+$seminggu = array("Minggu", "Senin", "Selasa", "Rabu", "Kamis", "Jumat", "Sabtu");
3 3
 $hari = date("w");
4 4
 $hari_ini = $seminggu[$hari];
5 5
 
@@ -7,7 +7,7 @@  discard block
 block discarded – undo
7 7
 $thn_sekarang = date("Y");
8 8
 $jam_sekarang = date("H:i:s");
9 9
 
10
-$nama_bln=array(1=> "Januari", "Februari", "Maret", "April", "Mei", 
10
+$nama_bln = array(1=> "Januari", "Februari", "Maret", "April", "Mei", 
11 11
                     "Juni", "Juli", "Agustus", "September", 
12 12
                     "Oktober", "November", "Desember");
13 13
 ?>
Please login to merge, or discard this patch.
config/qrcode/qrlib.php 1 patch
Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -25,20 +25,20 @@
 block discarded – undo
25 25
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
26 26
  */
27 27
 	
28
-	$QR_BASEDIR = dirname(__FILE__).DIRECTORY_SEPARATOR;
28
+    $QR_BASEDIR = dirname(__FILE__).DIRECTORY_SEPARATOR;
29 29
 	
30
-	// Required libs
30
+    // Required libs
31 31
 	
32
-	include $QR_BASEDIR."qrconst.php";
33
-	include $QR_BASEDIR."qrconfig.php";
34
-	include $QR_BASEDIR."qrtools.php";
35
-	include $QR_BASEDIR."qrspec.php";
36
-	include $QR_BASEDIR."qrimage.php";
37
-	include $QR_BASEDIR."qrvect.php";
38
-	include $QR_BASEDIR."qrinput.php";
39
-	include $QR_BASEDIR."qrbitstream.php";
40
-	include $QR_BASEDIR."qrsplit.php";
41
-	include $QR_BASEDIR."qrrscode.php";
42
-	include $QR_BASEDIR."qrmask.php";
43
-	include $QR_BASEDIR."qrencode.php";
32
+    include $QR_BASEDIR."qrconst.php";
33
+    include $QR_BASEDIR."qrconfig.php";
34
+    include $QR_BASEDIR."qrtools.php";
35
+    include $QR_BASEDIR."qrspec.php";
36
+    include $QR_BASEDIR."qrimage.php";
37
+    include $QR_BASEDIR."qrvect.php";
38
+    include $QR_BASEDIR."qrinput.php";
39
+    include $QR_BASEDIR."qrbitstream.php";
40
+    include $QR_BASEDIR."qrsplit.php";
41
+    include $QR_BASEDIR."qrrscode.php";
42
+    include $QR_BASEDIR."qrmask.php";
43
+    include $QR_BASEDIR."qrencode.php";
44 44
 
Please login to merge, or discard this patch.
config/qrcode/qrencode.php 2 patches
Spacing   +60 added lines, -60 removed lines patch added patch discarded remove patch
@@ -58,10 +58,10 @@  discard block
 block discarded – undo
58 58
         //----------------------------------------------------------------------
59 59
         public function __construct(QRinput $input)
60 60
         {
61
-            $spec = array(0,0,0,0,0);
61
+            $spec = array(0, 0, 0, 0, 0);
62 62
             
63 63
             $this->datacode = $input->getByteStream();
64
-            if(is_null($this->datacode)) {
64
+            if (is_null($this->datacode)) {
65 65
                 throw new Exception('null imput string');
66 66
             }
67 67
 
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
             $this->blocks = QRspec::rsBlockNum($spec);
76 76
             
77 77
             $ret = $this->init($spec);
78
-            if($ret < 0) {
78
+            if ($ret<0) {
79 79
                 throw new Exception('block alloc error');
80 80
                 return null;
81 81
             }
@@ -94,29 +94,29 @@  discard block
 block discarded – undo
94 94
             $blockNo = 0;
95 95
             $dataPos = 0;
96 96
             $eccPos = 0;
97
-            for($i=0; $i<QRspec::rsBlockNum1($spec); $i++) {
98
-                $ecc = array_slice($this->ecccode,$eccPos);
99
-                $this->rsblocks[$blockNo] = new QRrsblock($dl, array_slice($this->datacode, $dataPos), $el,  $ecc, $rs);
100
-                $this->ecccode = array_merge(array_slice($this->ecccode,0, $eccPos), $ecc);
97
+            for ($i = 0; $i<QRspec::rsBlockNum1($spec); $i++) {
98
+                $ecc = array_slice($this->ecccode, $eccPos);
99
+                $this->rsblocks[$blockNo] = new QRrsblock($dl, array_slice($this->datacode, $dataPos), $el, $ecc, $rs);
100
+                $this->ecccode = array_merge(array_slice($this->ecccode, 0, $eccPos), $ecc);
101 101
                 
102 102
                 $dataPos += $dl;
103 103
                 $eccPos += $el;
104 104
                 $blockNo++;
105 105
             }
106 106
 
107
-            if(QRspec::rsBlockNum2($spec) == 0)
107
+            if (QRspec::rsBlockNum2($spec)==0)
108 108
                 return 0;
109 109
 
110 110
             $dl = QRspec::rsDataCodes2($spec);
111 111
             $el = QRspec::rsEccCodes2($spec);
112 112
             $rs = QRrs::init_rs(8, 0x11d, 0, 1, $el, 255 - $dl - $el);
113 113
             
114
-            if($rs == NULL) return -1;
114
+            if ($rs==NULL) return -1;
115 115
             
116
-            for($i=0; $i<QRspec::rsBlockNum2($spec); $i++) {
117
-                $ecc = array_slice($this->ecccode,$eccPos);
116
+            for ($i = 0; $i<QRspec::rsBlockNum2($spec); $i++) {
117
+                $ecc = array_slice($this->ecccode, $eccPos);
118 118
                 $this->rsblocks[$blockNo] = new QRrsblock($dl, array_slice($this->datacode, $dataPos), $el, $ecc, $rs);
119
-                $this->ecccode = array_merge(array_slice($this->ecccode,0, $eccPos), $ecc);
119
+                $this->ecccode = array_merge(array_slice($this->ecccode, 0, $eccPos), $ecc);
120 120
                 
121 121
                 $dataPos += $dl;
122 122
                 $eccPos += $el;
@@ -131,14 +131,14 @@  discard block
 block discarded – undo
131 131
         {
132 132
             $ret;
133 133
 
134
-            if($this->count < $this->dataLength) {
134
+            if ($this->count<$this->dataLength) {
135 135
                 $row = $this->count % $this->blocks;
136 136
                 $col = $this->count / $this->blocks;
137
-                if($col >= $this->rsblocks[0]->dataLength) {
137
+                if ($col>=$this->rsblocks[0]->dataLength) {
138 138
                     $row += $this->b1;
139 139
                 }
140 140
                 $ret = $this->rsblocks[$row]->data[$col];
141
-            } else if($this->count < $this->dataLength + $this->eccLength) {
141
+            } else if ($this->count<$this->dataLength + $this->eccLength) {
142 142
                 $row = ($this->count - $this->dataLength) % $this->blocks;
143 143
                 $col = ($this->count - $this->dataLength) / $this->blocks;
144 144
                 $ret = $this->rsblocks[$row]->ecc[$col];
@@ -162,10 +162,10 @@  discard block
 block discarded – undo
162 162
         //----------------------------------------------------------------------
163 163
         public function encodeMask(QRinput $input, $mask)
164 164
         {
165
-            if($input->getVersion() < 0 || $input->getVersion() > QRSPEC_VERSION_MAX) {
165
+            if ($input->getVersion()<0 || $input->getVersion()>QRSPEC_VERSION_MAX) {
166 166
                 throw new Exception('wrong version');
167 167
             }
168
-            if($input->getErrorCorrectionLevel() > QR_ECLEVEL_H) {
168
+            if ($input->getErrorCorrectionLevel()>QR_ECLEVEL_H) {
169 169
                 throw new Exception('wrong level');
170 170
             }
171 171
 
@@ -178,17 +178,17 @@  discard block
 block discarded – undo
178 178
             $frame = QRspec::newFrame($version);
179 179
             
180 180
             $filler = new FrameFiller($width, $frame);
181
-            if(is_null($filler)) {
181
+            if (is_null($filler)) {
182 182
                 return NULL;
183 183
             }
184 184
 
185 185
             // inteleaved data and ecc codes
186
-            for($i=0; $i<$raw->dataLength + $raw->eccLength; $i++) {
186
+            for ($i = 0; $i<$raw->dataLength + $raw->eccLength; $i++) {
187 187
                 $code = $raw->getCode();
188 188
                 $bit = 0x80;
189
-                for($j=0; $j<8; $j++) {
189
+                for ($j = 0; $j<8; $j++) {
190 190
                     $addr = $filler->next();
191
-                    $filler->setFrameAt($addr, 0x02 | (($bit & $code) != 0));
191
+                    $filler->setFrameAt($addr, 0x02 | (($bit & $code)!=0));
192 192
                     $bit = $bit >> 1;
193 193
                 }
194 194
             }
@@ -199,7 +199,7 @@  discard block
 block discarded – undo
199 199
             
200 200
             // remainder bits
201 201
             $j = QRspec::getRemainder($version);
202
-            for($i=0; $i<$j; $i++) {
202
+            for ($i = 0; $i<$j; $i++) {
203 203
                 $addr = $filler->next();
204 204
                 $filler->setFrameAt($addr, 0x02);
205 205
             }
@@ -210,7 +210,7 @@  discard block
 block discarded – undo
210 210
             
211 211
             // masking
212 212
             $maskObj = new QRmask();
213
-            if($mask < 0) {
213
+            if ($mask<0) {
214 214
             
215 215
                 if (QR_FIND_BEST_MASK) {
216 216
                     $masked = $maskObj->mask($width, $frame, $input->getErrorCorrectionLevel());
@@ -221,7 +221,7 @@  discard block
 block discarded – undo
221 221
                 $masked = $maskObj->makeMask($width, $frame, $mask, $input->getErrorCorrectionLevel());
222 222
             }
223 223
             
224
-            if($masked == NULL) {
224
+            if ($masked==NULL) {
225 225
                 return NULL;
226 226
             }
227 227
             
@@ -243,16 +243,16 @@  discard block
 block discarded – undo
243 243
         //----------------------------------------------------------------------
244 244
         public function encodeString8bit($string, $version, $level)
245 245
         {
246
-            if(string == NULL) {
246
+            if (string==NULL) {
247 247
                 throw new Exception('empty string!');
248 248
                 return NULL;
249 249
             }
250 250
 
251 251
             $input = new QRinput($version, $level);
252
-            if($input == NULL) return NULL;
252
+            if ($input==NULL) return NULL;
253 253
 
254 254
             $ret = $input->append($input, QR_MODE_8, strlen($string), str_split($string));
255
-            if($ret < 0) {
255
+            if ($ret<0) {
256 256
                 unset($input);
257 257
                 return NULL;
258 258
             }
@@ -263,16 +263,16 @@  discard block
 block discarded – undo
263 263
         public function encodeString($string, $version, $level, $hint, $casesensitive)
264 264
         {
265 265
 
266
-            if($hint != QR_MODE_8 && $hint != QR_MODE_KANJI) {
266
+            if ($hint!=QR_MODE_8 && $hint!=QR_MODE_KANJI) {
267 267
                 throw new Exception('bad hint');
268 268
                 return NULL;
269 269
             }
270 270
 
271 271
             $input = new QRinput($version, $level);
272
-            if($input == NULL) return NULL;
272
+            if ($input==NULL) return NULL;
273 273
 
274 274
             $ret = QRsplit::splitStringToQRinput($string, $input, $hint, $casesensitive);
275
-            if($ret < 0) {
275
+            if ($ret<0) {
276 276
                 return NULL;
277 277
             }
278 278
 
@@ -280,10 +280,10 @@  discard block
 block discarded – undo
280 280
         }
281 281
         
282 282
         //----------------------------------------------------------------------
283
-        public static function png($text, $outfile = false, $level = QR_ECLEVEL_L, $size = 3, $margin = 4, $saveandprint=false, $back_color = 0xFFFFFF, $fore_color = 0x000000) 
283
+        public static function png($text, $outfile = false, $level = QR_ECLEVEL_L, $size = 3, $margin = 4, $saveandprint = false, $back_color = 0xFFFFFF, $fore_color = 0x000000) 
284 284
         {
285 285
             $enc = QRencode::factory($level, $size, $margin, $back_color, $fore_color);
286
-            return $enc->encodePNG($text, $outfile, $saveandprint=false);
286
+            return $enc->encodePNG($text, $outfile, $saveandprint = false);
287 287
         }
288 288
 
289 289
         //----------------------------------------------------------------------
@@ -294,17 +294,17 @@  discard block
 block discarded – undo
294 294
         }
295 295
         
296 296
         //----------------------------------------------------------------------
297
-        public static function eps($text, $outfile = false, $level = QR_ECLEVEL_L, $size = 3, $margin = 4, $saveandprint=false, $back_color = 0xFFFFFF, $fore_color = 0x000000, $cmyk = false) 
297
+        public static function eps($text, $outfile = false, $level = QR_ECLEVEL_L, $size = 3, $margin = 4, $saveandprint = false, $back_color = 0xFFFFFF, $fore_color = 0x000000, $cmyk = false) 
298 298
         {
299 299
             $enc = QRencode::factory($level, $size, $margin, $back_color, $fore_color, $cmyk);
300
-            return $enc->encodeEPS($text, $outfile, $saveandprint=false);
300
+            return $enc->encodeEPS($text, $outfile, $saveandprint = false);
301 301
         }
302 302
         
303 303
         //----------------------------------------------------------------------
304
-        public static function svg($text, $outfile = false, $level = QR_ECLEVEL_L, $size = 3, $margin = 4, $saveandprint=false, $back_color = 0xFFFFFF, $fore_color = 0x000000)
304
+        public static function svg($text, $outfile = false, $level = QR_ECLEVEL_L, $size = 3, $margin = 4, $saveandprint = false, $back_color = 0xFFFFFF, $fore_color = 0x000000)
305 305
         {
306 306
             $enc = QRencode::factory($level, $size, $margin, $back_color, $fore_color);
307
-            return $enc->encodeSVG($text, $outfile, $saveandprint=false);
307
+            return $enc->encodeSVG($text, $outfile, $saveandprint = false);
308 308
         }
309 309
 
310 310
         //----------------------------------------------------------------------
@@ -354,7 +354,7 @@  discard block
 block discarded – undo
354 354
         {
355 355
             do {
356 356
             
357
-                if($this->bit == -1) {
357
+                if ($this->bit==-1) {
358 358
                     $this->bit = 0;
359 359
                     return array('x'=>$this->x, 'y'=>$this->y);
360 360
                 }
@@ -363,7 +363,7 @@  discard block
 block discarded – undo
363 363
                 $y = $this->y;
364 364
                 $w = $this->width;
365 365
 
366
-                if($this->bit == 0) {
366
+                if ($this->bit==0) {
367 367
                     $x--;
368 368
                     $this->bit++;
369 369
                 } else {
@@ -372,33 +372,33 @@  discard block
 block discarded – undo
372 372
                     $this->bit--;
373 373
                 }
374 374
 
375
-                if($this->dir < 0) {
376
-                    if($y < 0) {
375
+                if ($this->dir<0) {
376
+                    if ($y<0) {
377 377
                         $y = 0;
378 378
                         $x -= 2;
379 379
                         $this->dir = 1;
380
-                        if($x == 6) {
380
+                        if ($x==6) {
381 381
                             $x--;
382 382
                             $y = 9;
383 383
                         }
384 384
                     }
385 385
                 } else {
386
-                    if($y == $w) {
386
+                    if ($y==$w) {
387 387
                         $y = $w - 1;
388 388
                         $x -= 2;
389 389
                         $this->dir = -1;
390
-                        if($x == 6) {
390
+                        if ($x==6) {
391 391
                             $x--;
392 392
                             $y -= 8;
393 393
                         }
394 394
                     }
395 395
                 }
396
-                if($x < 0 || $y < 0) return null;
396
+                if ($x<0 || $y<0) return null;
397 397
 
398 398
                 $this->x = $x;
399 399
                 $this->y = $y;
400 400
 
401
-            } while(ord($this->frame[$y][$x]) & 0x80);
401
+            } while (ord($this->frame[$y][$x]) & 0x80);
402 402
                         
403 403
             return array('x'=>$x, 'y'=>$y);
404 404
         }
@@ -466,7 +466,7 @@  discard block
 block discarded – undo
466 466
         {
467 467
             $code = new QRcode();
468 468
 
469
-            if($this->eightbit) {
469
+            if ($this->eightbit) {
470 470
                 $code->encodeString8bit($intext, $this->version, $this->level);
471 471
             } else {
472 472
                 $code->encodeString($intext, $this->version, $this->level, $this->hint, $this->casesensitive);
@@ -480,7 +480,7 @@  discard block
 block discarded – undo
480 480
         {
481 481
             $code = new QRcode();
482 482
 
483
-            if($this->eightbit) {
483
+            if ($this->eightbit) {
484 484
                 $code->encodeString8bit($intext, $this->version, $this->level);
485 485
             } else {
486 486
                 $code->encodeString($intext, $this->version, $this->level, $this->hint, $this->casesensitive);
@@ -488,7 +488,7 @@  discard block
 block discarded – undo
488 488
             
489 489
             QRtools::markTime('after_encode');
490 490
             
491
-            if ($outfile!== false) {
491
+            if ($outfile!==false) {
492 492
                 file_put_contents($outfile, join("\n", QRtools::binarize($code->data)));
493 493
             } else {
494 494
                 return QRtools::binarize($code->data);
@@ -496,7 +496,7 @@  discard block
 block discarded – undo
496 496
         }
497 497
         
498 498
         //----------------------------------------------------------------------
499
-        public function encodePNG($intext, $outfile = false,$saveandprint=false) 
499
+        public function encodePNG($intext, $outfile = false, $saveandprint = false) 
500 500
         {
501 501
             try {
502 502
             
@@ -505,12 +505,12 @@  discard block
 block discarded – undo
505 505
                 $err = ob_get_contents();
506 506
                 ob_end_clean();
507 507
                 
508
-                if ($err != '')
508
+                if ($err!='')
509 509
                     QRtools::log($outfile, $err);
510 510
                 
511
-                $maxSize = (int)(QR_PNG_MAXIMUM_SIZE / (count($tab)+2*$this->margin));
511
+                $maxSize = (int)(QR_PNG_MAXIMUM_SIZE / (count($tab) + 2 * $this->margin));
512 512
                 
513
-                QRimage::png($tab, $outfile, min(max(1, $this->size), $maxSize), $this->margin,$saveandprint, $this->back_color, $this->fore_color);
513
+                QRimage::png($tab, $outfile, min(max(1, $this->size), $maxSize), $this->margin, $saveandprint, $this->back_color, $this->fore_color);
514 514
             
515 515
             } catch (Exception $e) {
516 516
             
@@ -520,7 +520,7 @@  discard block
 block discarded – undo
520 520
         }
521 521
         
522 522
         //----------------------------------------------------------------------
523
-        public function encodeEPS($intext, $outfile = false,$saveandprint=false) 
523
+        public function encodeEPS($intext, $outfile = false, $saveandprint = false) 
524 524
         {
525 525
             try {
526 526
             
@@ -529,12 +529,12 @@  discard block
 block discarded – undo
529 529
                 $err = ob_get_contents();
530 530
                 ob_end_clean();
531 531
                 
532
-                if ($err != '')
532
+                if ($err!='')
533 533
                     QRtools::log($outfile, $err);
534 534
                 
535
-                $maxSize = (int)(QR_PNG_MAXIMUM_SIZE / (count($tab)+2*$this->margin));
535
+                $maxSize = (int)(QR_PNG_MAXIMUM_SIZE / (count($tab) + 2 * $this->margin));
536 536
                 
537
-                QRvect::eps($tab, $outfile, min(max(1, $this->size), $maxSize), $this->margin,$saveandprint, $this->back_color, $this->fore_color, $this->cmyk);
537
+                QRvect::eps($tab, $outfile, min(max(1, $this->size), $maxSize), $this->margin, $saveandprint, $this->back_color, $this->fore_color, $this->cmyk);
538 538
             
539 539
             } catch (Exception $e) {
540 540
             
@@ -544,7 +544,7 @@  discard block
 block discarded – undo
544 544
         }
545 545
 
546 546
         //----------------------------------------------------------------------
547
-        public function encodeSVG($intext, $outfile = false,$saveandprint=false) 
547
+        public function encodeSVG($intext, $outfile = false, $saveandprint = false) 
548 548
         {
549 549
             try {
550 550
             
@@ -553,12 +553,12 @@  discard block
 block discarded – undo
553 553
                 $err = ob_get_contents();
554 554
                 ob_end_clean();
555 555
                 
556
-                if ($err != '')
556
+                if ($err!='')
557 557
                     QRtools::log($outfile, $err);
558 558
                 
559
-                $maxSize = (int)(QR_PNG_MAXIMUM_SIZE / (count($tab)+2*$this->margin));
559
+                $maxSize = (int)(QR_PNG_MAXIMUM_SIZE / (count($tab) + 2 * $this->margin));
560 560
 
561
-                QRvect::svg($tab, $outfile, min(max(1, $this->size), $maxSize), $this->margin,$saveandprint, $this->back_color, $this->fore_color);
561
+                QRvect::svg($tab, $outfile, min(max(1, $this->size), $maxSize), $this->margin, $saveandprint, $this->back_color, $this->fore_color);
562 562
             
563 563
             } catch (Exception $e) {
564 564
             
Please login to merge, or discard this patch.
Braces   +24 added lines, -12 removed lines patch added patch discarded remove patch
@@ -104,14 +104,17 @@  discard block
 block discarded – undo
104 104
                 $blockNo++;
105 105
             }
106 106
 
107
-            if(QRspec::rsBlockNum2($spec) == 0)
108
-                return 0;
107
+            if(QRspec::rsBlockNum2($spec) == 0) {
108
+                            return 0;
109
+            }
109 110
 
110 111
             $dl = QRspec::rsDataCodes2($spec);
111 112
             $el = QRspec::rsEccCodes2($spec);
112 113
             $rs = QRrs::init_rs(8, 0x11d, 0, 1, $el, 255 - $dl - $el);
113 114
             
114
-            if($rs == NULL) return -1;
115
+            if($rs == NULL) {
116
+                return -1;
117
+            }
115 118
             
116 119
             for($i=0; $i<QRspec::rsBlockNum2($spec); $i++) {
117 120
                 $ecc = array_slice($this->ecccode,$eccPos);
@@ -249,7 +252,9 @@  discard block
 block discarded – undo
249 252
             }
250 253
 
251 254
             $input = new QRinput($version, $level);
252
-            if($input == NULL) return NULL;
255
+            if($input == NULL) {
256
+                return NULL;
257
+            }
253 258
 
254 259
             $ret = $input->append($input, QR_MODE_8, strlen($string), str_split($string));
255 260
             if($ret < 0) {
@@ -269,7 +274,9 @@  discard block
 block discarded – undo
269 274
             }
270 275
 
271 276
             $input = new QRinput($version, $level);
272
-            if($input == NULL) return NULL;
277
+            if($input == NULL) {
278
+                return NULL;
279
+            }
273 280
 
274 281
             $ret = QRsplit::splitStringToQRinput($string, $input, $hint, $casesensitive);
275 282
             if($ret < 0) {
@@ -393,7 +400,9 @@  discard block
 block discarded – undo
393 400
                         }
394 401
                     }
395 402
                 }
396
-                if($x < 0 || $y < 0) return null;
403
+                if($x < 0 || $y < 0) {
404
+                    return null;
405
+                }
397 406
 
398 407
                 $this->x = $x;
399 408
                 $this->y = $y;
@@ -505,8 +514,9 @@  discard block
 block discarded – undo
505 514
                 $err = ob_get_contents();
506 515
                 ob_end_clean();
507 516
                 
508
-                if ($err != '')
509
-                    QRtools::log($outfile, $err);
517
+                if ($err != '') {
518
+                                    QRtools::log($outfile, $err);
519
+                }
510 520
                 
511 521
                 $maxSize = (int)(QR_PNG_MAXIMUM_SIZE / (count($tab)+2*$this->margin));
512 522
                 
@@ -529,8 +539,9 @@  discard block
 block discarded – undo
529 539
                 $err = ob_get_contents();
530 540
                 ob_end_clean();
531 541
                 
532
-                if ($err != '')
533
-                    QRtools::log($outfile, $err);
542
+                if ($err != '') {
543
+                                    QRtools::log($outfile, $err);
544
+                }
534 545
                 
535 546
                 $maxSize = (int)(QR_PNG_MAXIMUM_SIZE / (count($tab)+2*$this->margin));
536 547
                 
@@ -553,8 +564,9 @@  discard block
 block discarded – undo
553 564
                 $err = ob_get_contents();
554 565
                 ob_end_clean();
555 566
                 
556
-                if ($err != '')
557
-                    QRtools::log($outfile, $err);
567
+                if ($err != '') {
568
+                                    QRtools::log($outfile, $err);
569
+                }
558 570
                 
559 571
                 $maxSize = (int)(QR_PNG_MAXIMUM_SIZE / (count($tab)+2*$this->margin));
560 572
 
Please login to merge, or discard this patch.