Pint applied for formatting

This commit is contained in:
Alex Wulf
2022-07-05 15:55:47 +02:00
parent bfc558d1f2
commit 7d4547df6a
68 changed files with 670 additions and 402 deletions

View File

@ -1,4 +1,6 @@
<?php namespace DNW\Skills\Tests;
<?php
namespace DNW\Skills\Tests;
use DNW\Skills\RankSorter;
@ -6,13 +8,13 @@ class RankSorterTest extends TestCase
{
public function testSort()
{
$team1 = array("a" => 1, "b" => 2);
$team2 = array("c" => 3, "d" => 4);
$team3 = array("e" => 5, "f" => 6);
$team1 = ['a' => 1, 'b' => 2];
$team2 = ['c' => 3, 'd' => 4];
$team3 = ['e' => 5, 'f' => 6];
$teams = array($team1, $team2, $team3);
$teams = [$team1, $team2, $team3];
$teamRanks = array(3, 1, 2);
$teamRanks = [3, 1, 2];
$sortedRanks = RankSorter::sort($teams, $teamRanks);
@ -30,4 +32,4 @@ class RankSorterTest extends TestCase
$this->assertEquals($teams[1], $sortedRanks[1]);
$this->assertEquals($teams[2], $sortedRanks[2]);
}
}
}