Passed
Push — dev ( 97f4bd...8b84d5 )
by Nils
05:36
created
pages/api.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
 if ($checkUserAccess->checkSession() === false || $checkUserAccess->userAccessPage('api') === false) {
64 64
     // Not allowed page
65 65
     $_SESSION['error']['code'] = ERR_NOT_ALLOWED;
66
-    include $SETTINGS['cpassman_dir'] . '/error.php';
66
+    include $SETTINGS['cpassman_dir'].'/error.php';
67 67
     exit;
68 68
 }
69 69
 
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
                                     <?php
151 151
                                     $rowsKeys = DB::query(
152 152
                                         'SELECT increment_id, label, timestamp, user_id, value 
153
-                                        FROM ' . prefixTable('api') . '
153
+                                        FROM ' . prefixTable('api').'
154 154
                                         WHERE type = %s
155 155
                                         ORDER BY timestamp ASC',
156 156
                                         'key'
@@ -168,10 +168,10 @@  discard block
 block discarded – undo
168 168
                                             <?php
169 169
                                             foreach ($rowsKeys as $key) {
170 170
                                                 echo '
171
-                                                    <tr data-id="' . $key['increment_id'] . '">
172
-                                                    <td width="50px"><i class="fas fa-trash infotip pointer delete-api-key" title="' . langHdl('del_button') . '"></i></td>
173
-                                                    <td><span class="edit-api-key pointer">' . $key['label'] . '</span></td>
174
-                                                    <td>' . $key['value']. '</td>                        
171
+                                                    <tr data-id="' . $key['increment_id'].'">
172
+                                                    <td width="50px"><i class="fas fa-trash infotip pointer delete-api-key" title="' . langHdl('del_button').'"></i></td>
173
+                                                    <td><span class="edit-api-key pointer">' . $key['label'].'</span></td>
174
+                                                    <td>' . $key['value'].'</td>                        
175 175
                                                 </tr>';
176 176
                                             } ?>
177 177
                                         </tbody>
@@ -206,7 +206,7 @@  discard block
 block discarded – undo
206 206
                                 <div class="col-12 mt-4" id="table-api-ip">
207 207
                                     <?php
208 208
                                     $rowsIps = DB::query(
209
-                                                'SELECT increment_id, label, timestamp value FROM ' . prefixTable('api') . '
209
+                                                'SELECT increment_id, label, timestamp value FROM '.prefixTable('api').'
210 210
                                                 WHERE type = %s
211 211
                                                 ORDER BY timestamp ASC',
212 212
                                                 'ip'
@@ -224,10 +224,10 @@  discard block
 block discarded – undo
224 224
                                             <?php
225 225
                                             foreach ($rowsIps as $ip) {
226 226
                                                 echo '
227
-                                                <tr data-id="' . $ip['increment_id'] . '">
228
-                                                    <td width="50px"><i class="fas fa-trash infotip pointer delete-api-ip" title="' . langHdl('del_button') . '"></i></td>
229
-                                                    <td><span class="edit-api-ip pointer" data-field="label">' . $ip['label'] . '</span></td>
230
-                                                    <td><span class="edit-api-ip pointer" data-field="value">' . $ip['value'] . '</span></td>                        
227
+                                                <tr data-id="' . $ip['increment_id'].'">
228
+                                                    <td width="50px"><i class="fas fa-trash infotip pointer delete-api-ip" title="' . langHdl('del_button').'"></i></td>
229
+                                                    <td><span class="edit-api-ip pointer" data-field="label">' . $ip['label'].'</span></td>
230
+                                                    <td><span class="edit-api-ip pointer" data-field="value">' . $ip['value'].'</span></td>                        
231 231
                                                 </tr>';
232 232
                                             } ?>
233 233
                                         </tbody>
Please login to merge, or discard this patch.