@@ -8,11 +8,11 @@ |
||
8 | 8 | } |
9 | 9 | |
10 | 10 | if ( |
11 | - (!$loader = includeIfExists(__DIR__.'/vendor/autoload.php')) && // Standalone like CI |
|
12 | - (!$loader = includeIfExists(__DIR__.'/../../../autoload.php')) && // As vendor |
|
13 | - (!$loader = includeIfExists(__DIR__.'/../../../vendor/autoload.php')) // Dev mode |
|
11 | + (!$loader = includeIfExists(__DIR__ . '/vendor/autoload.php')) && // Standalone like CI |
|
12 | + (!$loader = includeIfExists(__DIR__ . '/../../../autoload.php')) && // As vendor |
|
13 | + (!$loader = includeIfExists(__DIR__ . '/../../../vendor/autoload.php')) // Dev mode |
|
14 | 14 | ) { |
15 | - die('You must set up the project dependencies, run the following commands:'.PHP_EOL. |
|
16 | - 'curl -sS https://getcomposer.org/installer | php'.PHP_EOL. |
|
17 | - 'php composer.phar install'.PHP_EOL); |
|
15 | + die('You must set up the project dependencies, run the following commands:' . PHP_EOL . |
|
16 | + 'curl -sS https://getcomposer.org/installer | php' . PHP_EOL . |
|
17 | + 'php composer.phar install' . PHP_EOL); |
|
18 | 18 | } |
@@ -20,29 +20,29 @@ discard block |
||
20 | 20 | $this->getSkill(); |
21 | 21 | } |
22 | 22 | private function getRule() { |
23 | - $expected = self::RULE .'.title'; |
|
23 | + $expected = self::RULE . '.title'; |
|
24 | 24 | $result = CoreTranslation::getRuleTitle(self::RULE); |
25 | 25 | $this->assertSame($expected, $result); |
26 | - $expected = self::RULE .'.fields.' . self::FIELD . '.title'; |
|
26 | + $expected = self::RULE . '.fields.' . self::FIELD . '.title'; |
|
27 | 27 | $result = CoreTranslation::getFieldKey(self::RULE, self::FIELD); |
28 | 28 | $this->assertSame($expected, $result); |
29 | - $expected = self::RULE .'.fields.' . self::FIELD . '.weather.' . self::WEATHER; |
|
29 | + $expected = self::RULE . '.fields.' . self::FIELD . '.weather.' . self::WEATHER; |
|
30 | 30 | $result = CoreTranslation::getWeatherKey(self::RULE, self::FIELD, self::WEATHER); |
31 | 31 | $this->assertSame($expected, $result); |
32 | 32 | } |
33 | 33 | private function getRoster() { |
34 | - $expected = self::RULE . '.rosters.' . self::ROSTER .'.title'; |
|
34 | + $expected = self::RULE . '.rosters.' . self::ROSTER . '.title'; |
|
35 | 35 | $result = CoreTranslation::getRosterKey(self::RULE, self::ROSTER); |
36 | 36 | $this->assertSame($expected, $result); |
37 | - $expected = self::RULE . '.rosters.' . self::ROSTER .'.description'; |
|
37 | + $expected = self::RULE . '.rosters.' . self::ROSTER . '.description'; |
|
38 | 38 | $result = CoreTranslation::getRosterDescription(self::RULE, self::ROSTER); |
39 | 39 | $this->assertSame($expected, $result); |
40 | 40 | } |
41 | 41 | private function getSkill() { |
42 | - $expected = self::RULE . '.skills.' . self::SKILL .'.title'; |
|
42 | + $expected = self::RULE . '.skills.' . self::SKILL . '.title'; |
|
43 | 43 | $result = CoreTranslation::getSkillNameKey(self::RULE, self::SKILL); |
44 | 44 | $this->assertSame($expected, $result); |
45 | - $expected = self::RULE . '.skills.' . self::SKILL .'.description'; |
|
45 | + $expected = self::RULE . '.skills.' . self::SKILL . '.description'; |
|
46 | 46 | $result = CoreTranslation::getSkillDescription(self::RULE, self::SKILL); |
47 | 47 | $this->assertSame($expected, $result); |
48 | 48 | $expected = self::RULE . '.skill_types.' . self::SKILL_TYPE; |
@@ -50,12 +50,12 @@ discard block |
||
50 | 50 | $this->assertSame($expected, $result); |
51 | 51 | } |
52 | 52 | private function getTeam() { |
53 | - $expected = self::RULE . '.rosters.' . self::ROSTER .'.title'; |
|
53 | + $expected = self::RULE . '.rosters.' . self::ROSTER . '.title'; |
|
54 | 54 | $result = CoreTranslation::getRosterKey(self::RULE, self::ROSTER); |
55 | 55 | $this->assertSame($expected, $result); |
56 | 56 | } |
57 | 57 | private function getPlayer() { |
58 | - $expected = self::RULE . '.rosters.' . self::ROSTER .'.title'; |
|
58 | + $expected = self::RULE . '.rosters.' . self::ROSTER . '.title'; |
|
59 | 59 | $result = CoreTranslation::getRosterKey(self::RULE, self::ROSTER); |
60 | 60 | $this->assertSame($expected, $result); |
61 | 61 | } |