Completed
Push — master ( 062d56...6eea48 )
by Dimas
08:52
created
src/MVC/function.php 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -7,8 +7,8 @@  discard block
 block discarded – undo
7 7
  */
8 8
 function maintenance()
9 9
 {
10
-	include __DIR__ . '/maintenance.php';
11
-	exit;
10
+  include __DIR__ . '/maintenance.php';
11
+  exit;
12 12
 }
13 13
 /**
14 14
  * Debug Error
@@ -17,8 +17,8 @@  discard block
 block discarded – undo
17 17
  */
18 18
 function show_error()
19 19
 {
20
-	error_reporting(E_ALL);
21
-	ini_set('display_errors', 'On');
20
+  error_reporting(E_ALL);
21
+  ini_set('display_errors', 'On');
22 22
 }
23 23
 
24 24
 /**
@@ -26,9 +26,9 @@  discard block
 block discarded – undo
26 26
  */
27 27
 function is_admin()
28 28
 {
29
-	if (isset($_SESSION['login'])) {
30
-		if (isset($_SESSION['login']['role'])) {
31
-			return preg_match('/^superadmin$/s', $_SESSION['login']['role']);
32
-		}
33
-	}
29
+  if (isset($_SESSION['login'])) {
30
+    if (isset($_SESSION['login']['role'])) {
31
+      return preg_match('/^superadmin$/s', $_SESSION['login']['role']);
32
+    }
33
+  }
34 34
 }
Please login to merge, or discard this patch.