Passed
Push — master ( 764ab0...3cc6ff )
by Saepul
02:00
created
report_all_tickets.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@
 block discarded – undo
3 3
 $general->logged_out_protect();
4 4
 $user = $users->userdata($_SESSION['loginid']);
5 5
 if ($user['level'] != 'Admin') {
6
-    exit("You don't have permission to access this page!");
6
+	exit("You don't have permission to access this page!");
7 7
 }
8 8
 $logs = $users->get_users_log();
9 9
 ?>
Please login to merge, or discard this patch.
report_all_tickets_print.php 1 patch
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -3,12 +3,12 @@  discard block
 block discarded – undo
3 3
 $general->logged_out_protect();
4 4
 $user = $users->userdata($_SESSION['loginid']);
5 5
 if ($user['level'] == 'Admin' || $user['level'] == 'Manager') {
6
-    $akses = true;
6
+	$akses = true;
7 7
 } else {
8
-    $akses = false;
8
+	$akses = false;
9 9
 }
10 10
 if ($akses = false) {
11
-    exit("You don't have permission to access this page!");
11
+	exit("You don't have permission to access this page!");
12 12
 }
13 13
 $ticket_list = $tickets->get_tickets();
14 14
 $tickets_count = count($ticket_list);
@@ -180,14 +180,14 @@  discard block
 block discarded – undo
180 180
         </thead>
181 181
         <tbody>
182 182
             <?php foreach ($ticket_list as $ticket) :
183
-                $sla = $slas->sla_data($ticket['sla']);
184
-                $documenteddate = $ticket['documenteddate'];
185
-                $resolutiontime = $sla['resolutiontime'];
186
-                $slawarning = $sla['slawarning'];
187
-                $slagoaltime = strtotime("+$resolutiontime hours", $documenteddate);
188
-                $slawarningtime = strtotime("+$slawarning hours", $documenteddate);
189
-                $user = $users->userdata($ticket['assignee']);
190
-            ?>
183
+				$sla = $slas->sla_data($ticket['sla']);
184
+				$documenteddate = $ticket['documenteddate'];
185
+				$resolutiontime = $sla['resolutiontime'];
186
+				$slawarning = $sla['slawarning'];
187
+				$slagoaltime = strtotime("+$resolutiontime hours", $documenteddate);
188
+				$slawarningtime = strtotime("+$slawarning hours", $documenteddate);
189
+				$user = $users->userdata($ticket['assignee']);
190
+			?>
191 191
                 <tr>
192 192
                     <td>
193 193
                         <?php echo $ticket['ticketnumber'];?>
Please login to merge, or discard this patch.