Test Setup Failed
Branch master (829ee7)
by IRFA
06:38
created
Autoloader.php 2 patches
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -1,14 +1,14 @@
 block discarded – undo
1 1
 <?php
2 2
 class Autoloader {
3
-    static public function loader($className) {
4
-        $filename =  str_replace("\\", '/', $className) . ".php";
5
-        if (file_exists($filename)) {
6
-            include($filename);
7
-            if (class_exists($className)) {
8
-                return TRUE;
9
-            }
10
-        }
11
-        return FALSE;
12
-    }
3
+	static public function loader($className) {
4
+		$filename =  str_replace("\\", '/', $className) . ".php";
5
+		if (file_exists($filename)) {
6
+			include($filename);
7
+			if (class_exists($className)) {
8
+				return TRUE;
9
+			}
10
+		}
11
+		return FALSE;
12
+	}
13 13
 }
14 14
 spl_autoload_register('Autoloader::loader');
15 15
\ No newline at end of file
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@
 block discarded – undo
1 1
 <?php
2 2
 class Autoloader {
3 3
     static public function loader($className) {
4
-        $filename =  str_replace("\\", '/', $className) . ".php";
4
+        $filename = str_replace("\\", '/', $className).".php";
5 5
         if (file_exists($filename)) {
6 6
             include($filename);
7 7
             if (class_exists($className)) {
Please login to merge, or discard this patch.
Irfa/Roulete.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@  discard block
 block discarded – undo
7 7
 
8 8
 class Roulete {
9 9
 
10
-	public function spin($items){
10
+	public function spin($items) {
11 11
 
12 12
 		$max = 0;
13 13
 		foreach ($items as $key => $value) {
@@ -15,11 +15,11 @@  discard block
 block discarded – undo
15 15
 			$items[$key] = $max;
16 16
 		}
17 17
 
18
-		$random = mt_rand(1,$max);
18
+		$random = mt_rand(1, $max);
19 19
 
20 20
 			foreach ($items as $item => $max)
21 21
 			{
22
-				if ($random <= $max){
22
+				if ($random <= $max) {
23 23
 					break;
24 24
 				}
25 25
 			}
Please login to merge, or discard this patch.
view/home/body.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@
 block discarded – undo
2 2
 	<div class="row">
3 3
 		<div class="col-md-5">
4 4
 			<div class="alert alert-primary">
5
-				<?= "<h2>kamu mendapatkan </h2><h2>". Roll::spin()."</h2>" ?>
5
+				<?= "<h2>kamu mendapatkan </h2><h2>".Roll::spin()."</h2>" ?>
6 6
 			</div>
7 7
 		</div>
8 8
 	</div>
Please login to merge, or discard this patch.
example.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
 		<div class="row">
12 12
 			<div class="col-md-12" align="center">
13 13
 				<div class="alert alert-primary">
14
-					<?= "<h2>Selamat Kamu mendapatkan </h2><h2>". Roll::spin(['SSR ITEM' => 0.1,
14
+					<?= "<h2>Selamat Kamu mendapatkan </h2><h2>".Roll::spin(['SSR ITEM' => 0.1,
15 15
 					'SSR ITEM 2' => 0.2,
16 16
 					'SSR ITEM 3' => 0.3,
17 17
 					'SSR ITEM 4' => 0.4,
Please login to merge, or discard this patch.