| @@ -10,7 +10,7 @@ | ||
| 10 | 10 | |
| 11 | 11 |  class Roulette extends RateUp { | 
| 12 | 12 | |
| 13 | - 	protected static function jsonItem($dt){ | |
| 13 | + 	protected static function jsonItem($dt) { | |
| 14 | 14 | $data['data'] = ['item' => $dt]; | 
| 15 | 15 | return json_encode($data); | 
| 16 | 16 | } | 
| @@ -1,3 +1,3 @@ | ||
| 1 | 1 | <?php declare(strict_types=1); | 
| 2 | 2 | |
| 3 | -require_once __DIR__ . '/../vendor/autoload.php'; | |
| 4 | 3 | \ No newline at end of file | 
| 4 | +require_once __DIR__.'/../vendor/autoload.php'; | |
| 5 | 5 | \ No newline at end of file | 
| @@ -8,9 +8,9 @@ discard block | ||
| 8 | 8 | // Class untuk run Testing. | 
| 9 | 9 | class GachaTest extends TestCase | 
| 10 | 10 |  { | 
| 11 | - public function testGachaItems() | |
| 12 | -    { | |
| 13 | - $items = ['SSR ITEM' => 0.1, | |
| 11 | + public function testGachaItems() | |
| 12 | +	{ | |
| 13 | + $items = ['SSR ITEM' => 0.1, | |
| 14 | 14 | 'SSR ITEM 2' => 0.2, | 
| 15 | 15 | 'SSR ITEM 3' => 0.3, | 
| 16 | 16 | 'SSR ITEM 4' => 0.4, | 
| @@ -33,10 +33,10 @@ discard block | ||
| 33 | 33 | 'item 21' => 8.3, | 
| 34 | 34 | ]; | 
| 35 | 35 | $this->assertArrayHasKey(Roll::put($items)->spin(),$items); | 
| 36 | - } | |
| 37 | - public function testGachaDropUpItems() | |
| 38 | -    { | |
| 39 | - $items = ['SSR ITEM' => 0.1, | |
| 36 | + } | |
| 37 | + public function testGachaDropUpItems() | |
| 38 | +	{ | |
| 39 | + $items = ['SSR ITEM' => 0.1, | |
| 40 | 40 | 'SSR ITEM 2' => 0.2, | 
| 41 | 41 | 'SSR ITEM 3' => 0.3, | 
| 42 | 42 | 'SSR ITEM 4' => 0.4, | 
| @@ -59,10 +59,10 @@ discard block | ||
| 59 | 59 | 'item 21' => 8.3, | 
| 60 | 60 | ]; | 
| 61 | 61 |  		$this->assertArrayHasKey(Roll::put($items)->dropUp('SSR ITEM',300)->spin(),$items); | 
| 62 | - } | |
| 63 | - public function testGachaJsonItems() | |
| 64 | -    { | |
| 65 | - $items = ['SSR ITEM' => 0.1, | |
| 62 | + } | |
| 63 | + public function testGachaJsonItems() | |
| 64 | +	{ | |
| 65 | + $items = ['SSR ITEM' => 0.1, | |
| 66 | 66 | 'SSR ITEM 2' => 0.2, | 
| 67 | 67 | 'SSR ITEM 3' => 0.3, | 
| 68 | 68 | 'SSR ITEM 4' => 0.4, | 
| @@ -85,5 +85,5 @@ discard block | ||
| 85 | 85 | 'item 21' => 8.3, | 
| 86 | 86 | ]; | 
| 87 | 87 |  					$this->assertNotEquals(null,Roll::put($items)->dropUp('SSR ITEM',300)->jsonSpin()); | 
| 88 | - } | |
| 88 | + } | |
| 89 | 89 | } | 
| 90 | 90 | \ No newline at end of file | 
| @@ -32,7 +32,7 @@ discard block | ||
| 32 | 32 | 'item 20' => 11.6, | 
| 33 | 33 | 'item 21' => 8.3, | 
| 34 | 34 | ]; | 
| 35 | - $this->assertArrayHasKey(Roll::put($items)->spin(),$items); | |
| 35 | + $this->assertArrayHasKey(Roll::put($items)->spin(), $items); | |
| 36 | 36 | } | 
| 37 | 37 | public function testGachaDropUpItems() | 
| 38 | 38 |      { | 
| @@ -58,7 +58,7 @@ discard block | ||
| 58 | 58 | 'item 20' => 11.6, | 
| 59 | 59 | 'item 21' => 8.3, | 
| 60 | 60 | ]; | 
| 61 | -		$this->assertArrayHasKey(Roll::put($items)->dropUp('SSR ITEM',300)->spin(),$items); | |
| 61 | +		$this->assertArrayHasKey(Roll::put($items)->dropUp('SSR ITEM', 300)->spin(), $items); | |
| 62 | 62 | } | 
| 63 | 63 | public function testGachaJsonItems() | 
| 64 | 64 |      { | 
| @@ -84,6 +84,6 @@ discard block | ||
| 84 | 84 | 'item 20' => 11.6, | 
| 85 | 85 | 'item 21' => 8.3, | 
| 86 | 86 | ]; | 
| 87 | -					$this->assertNotEquals(null,Roll::put($items)->dropUp('SSR ITEM',300)->jsonSpin()); | |
| 87 | +					$this->assertNotEquals(null, Roll::put($items)->dropUp('SSR ITEM', 300)->jsonSpin()); | |
| 88 | 88 | } | 
| 89 | 89 | } | 
| 90 | 90 | \ No newline at end of file |