Passed
Pull Request — master (#7)
by Saepul
05:30 queued 50s
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_rujukan/rujukan.php 1 patch
Switch Indentation   +26 added lines, -26 removed lines patch added patch discarded remove patch
@@ -2,8 +2,8 @@  discard block
 block discarded – undo
2 2
 <?php
3 3
 switch ($_GET[act]) {
4 4
 
5
-default:
6
-  ?>
5
+    default:
6
+      ?>
7 7
 
8 8
  <div class="">
9 9
                    
@@ -44,35 +44,35 @@  discard block
 block discarded – undo
44 44
                             
45 45
                          <?php
46 46
 
47
-            $tampil = mysql_query('SELECT * FROM rujukan ORDER BY id_rujukan');
47
+                $tampil = mysql_query('SELECT * FROM rujukan ORDER BY id_rujukan');
48 48
 
49
-            $no = 1;
49
+                $no = 1;
50 50
 
51
-            while ($r = mysql_fetch_array($tampil)) {
52
-                if ($r[tipe] == 'R') {
53
-                    $tipe = 'RS/Klinik';
54
-                } else {
55
-                    $tipe = 'Lab';
56
-                }
51
+                while ($r = mysql_fetch_array($tampil)) {
52
+                    if ($r[tipe] == 'R') {
53
+                        $tipe = 'RS/Klinik';
54
+                    } else {
55
+                        $tipe = 'Lab';
56
+                    }
57 57
 
58
-                echo'<tr>';
59
-                echo"<td>$tipe</td>";
60
-                echo"<td>$r[rujukan]</td>";
61
-                echo"<td style='text-align:center;'>$r[aktif]</td>";
62
-                echo" <td  style='text-align:center;'>";
58
+                    echo'<tr>';
59
+                    echo"<td>$tipe</td>";
60
+                    echo"<td>$r[rujukan]</td>";
61
+                    echo"<td style='text-align:center;'>$r[aktif]</td>";
62
+                    echo" <td  style='text-align:center;'>";
63 63
 
64
-                if ($r_edit == 'Y') {
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
-                }
64
+                    if ($r_edit == 'Y') {
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
+                    }
67 67
 
68
-                // if($r_delete == 'Y') {
69
-                // echo"<a href='modul/mod_$module/aksi_$module.php?module=$module&act=hapus&id=$r[id_rujukan]&id_module=$id' onClick=\"return confirm('Hapus data ?')\" title='Delete $nmmodule'><span class='icon'><i class='fa fa-trash'></i></span></a>";
70
-                // }
71
-                echo'</td>';
72
-                echo'</tr>';
73
-                $no++;
74
-            }
75
-                                ?>
68
+                    // if($r_delete == 'Y') {
69
+                    // echo"<a href='modul/mod_$module/aksi_$module.php?module=$module&act=hapus&id=$r[id_rujukan]&id_module=$id' onClick=\"return confirm('Hapus data ?')\" title='Delete $nmmodule'><span class='icon'><i class='fa fa-trash'></i></span></a>";
70
+                    // }
71
+                    echo'</td>';
72
+                    echo'</tr>';
73
+                    $no++;
74
+                }
75
+                                    ?>
76 76
                          </tbody>
77 77
                     </table>
78 78
                   </div>
Please login to merge, or discard this patch.