Passed
Push — master ( a4d127...dc8535 )
by IRFA
03:20 queued 01:33
created
example.php 1 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
 require_once "vendor/autoload.php";
3 3
 
4
-use  Irfa\Gatcha\Roll ;
4
+use  Irfa\Gatcha\Roll;
5 5
 
6 6
 ?>
7 7
 <!DOCTYPE html>
Please login to merge, or discard this patch.
src/Roulete/Roulete.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
 		} else {
30 30
 				throw new Exception('Parameter must be an array.');
31 31
 
32
-	            return false;
32
+				return false;
33 33
 		}
34 34
 	}
35 35
 }
36 36
\ 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
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
 class Roulete {
10 10
 
11 11
 	protected function get($items) {
12
-		if(is_array($items))
12
+		if (is_array($items))
13 13
 		{
14 14
 			$max = 0;
15 15
 			foreach ($items as $key => $value) {
Please login to merge, or discard this patch.
src/Roll.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -25,23 +25,23 @@
 block discarded – undo
25 25
 	}
26 26
 	public static function dropUp($items, $rate)
27 27
 	{
28
-		self::itemDropUp($items,$rate);
28
+		self::itemDropUp($items, $rate);
29 29
 		return new static();
30 30
 	}
31
-	private static function getItem(){
32
-		$ret =  self::get(self::$items);
33
-		self::$items=null;
31
+	private static function getItem() {
32
+		$ret = self::get(self::$items);
33
+		self::$items = null;
34 34
 		return $ret;
35 35
 	}
36
-	private static function itemDropUp($items,$rate){
37
-		if(is_array($items))
36
+	private static function itemDropUp($items, $rate) {
37
+		if (is_array($items))
38 38
 		{
39
-			foreach($items as $itm)
39
+			foreach ($items as $itm)
40 40
 			{
41
-				self::$items[$itm] = self::$items[$itm]*($rate/100);
41
+				self::$items[$itm] = self::$items[$itm] * ($rate / 100);
42 42
 			}
43 43
 		} else {
44
-				self::$items[$items] = self::$items[$items]*($rate/100);
44
+				self::$items[$items] = self::$items[$items] * ($rate / 100);
45 45
 		}
46 46
 		
47 47
 	}
Please login to merge, or discard this patch.