@@ -1,7 +1,7 @@ |
||
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> |
@@ -29,7 +29,7 @@ |
||
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 |
@@ -9,7 +9,7 @@ |
||
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) { |
@@ -22,9 +22,9 @@ |
||
22 | 22 | { |
23 | 23 | return self::getItem(); |
24 | 24 | } |
25 | - private static function getItem(){ |
|
26 | - $ret = Roulete::get(self::$items); |
|
27 | - self::$items=null; |
|
25 | + private static function getItem() { |
|
26 | + $ret = Roulete::get(self::$items); |
|
27 | + self::$items = null; |
|
28 | 28 | return $ret; |
29 | 29 | } |
30 | 30 | } |
31 | 31 | \ No newline at end of file |