@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | return null; |
30 | 30 | } |
31 | 31 | |
32 | - public function uploadLogoIfExists(Team $object, $logoFile):?File |
|
32 | + public function uploadLogoIfExists(Team $object, $logoFile): ?File |
|
33 | 33 | { |
34 | 34 | if ($logoFile) { |
35 | 35 | $this->setObjectSubDirectory($object->getId()); |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | } |
45 | 45 | return null; |
46 | 46 | } |
47 | - public function uploadCoverIfExists(Team $object, $coverFile):?File |
|
47 | + public function uploadCoverIfExists(Team $object, $coverFile): ?File |
|
48 | 48 | { |
49 | 49 | if ($coverFile) { |
50 | 50 | $this->setObjectSubDirectory($object->getId()); |
@@ -32,8 +32,8 @@ discard block |
||
32 | 32 | $this->ruleHelper = $ruleHelper; |
33 | 33 | $this->publicDirectory = $kernetProjectDir; |
34 | 34 | $this->cacheDirectory = $cacheDirectory; |
35 | - $this->ruleCacheDirectory = $this->cacheDirectory . self::RULE_PATH ; |
|
36 | - $this->teamCacheDirectory = $this->cacheDirectory . self::TEAM_PATH ; |
|
35 | + $this->ruleCacheDirectory = $this->cacheDirectory . self::RULE_PATH; |
|
36 | + $this->teamCacheDirectory = $this->cacheDirectory . self::TEAM_PATH; |
|
37 | 37 | $this->filesystem = new Filesystem(); |
38 | 38 | $this->fileTeamUploader = $fileTeamUploader; |
39 | 39 | } |
@@ -107,7 +107,7 @@ discard block |
||
107 | 107 | if (!$this->filesystem->exists($path)) { |
108 | 108 | $img = $this->imageManager->make($file); |
109 | 109 | $this->filesystem->mkdir($newCacheDirectory); |
110 | - $img->resize($width, $height, function ($constraint) { |
|
110 | + $img->resize($width, $height, function($constraint) { |
|
111 | 111 | $constraint->aspectRatio(); |
112 | 112 | }); |
113 | 113 | $img->save($path); |
@@ -87,7 +87,7 @@ |
||
87 | 87 | $pdf->setOption('disable-javascript', true); |
88 | 88 | $pdf->setOption('title', $team->getName()); |
89 | 89 | |
90 | - $fileName = urlencode($team->getName()) . '.pdf'; |
|
90 | + $fileName = urlencode($team->getName()) . '.pdf'; |
|
91 | 91 | |
92 | 92 | return new PdfResponse($pdf->getOutputFromHtml($html), $fileName, null, ResponseHeaderBag::DISPOSITION_INLINE); |
93 | 93 | } |
@@ -14,7 +14,7 @@ |
||
14 | 14 | public function getAvailableRosters():ArrayCollection; |
15 | 15 | public function getInjuriesTable():array; |
16 | 16 | public function calculateTeamValue(TeamVersion $version, bool $excludeDisposable = false):int; |
17 | - public function calculateTeamRate(TeamVersion $version):?int; |
|
17 | + public function calculateTeamRate(TeamVersion $version): ?int; |
|
18 | 18 | public function getMaxTeamCost():int; |
19 | 19 | public function getRerollCost(Team $team):int; |
20 | 20 | public function getApothecaryCost(Team $team):int; |
@@ -10,16 +10,16 @@ |
||
10 | 10 | ****************/ |
11 | 11 | interface RulePlayerInterface |
12 | 12 | { |
13 | - public function setPlayerDefaultValues(PlayerVersion $version):?PlayerVersion; |
|
13 | + public function setPlayerDefaultValues(PlayerVersion $version): ?PlayerVersion; |
|
14 | 14 | public function playerIsDisposable(PlayerVersion $playerVersion):bool; |
15 | - public function getInjury(string $key):?object; |
|
15 | + public function getInjury(string $key): ?object; |
|
16 | 16 | public function getAvailablePlayerKeyTypes(string $roster):array; |
17 | 17 | public function getAvailablePlayerTypes(string $roster):array; |
18 | 18 | |
19 | 19 | /************************** |
20 | 20 | * PLAYER EVOLUTION METHOD |
21 | 21 | *************************/ |
22 | - public function getSppLevel(PlayerVersion $version):?string; |
|
23 | - public function getContextForRoll(array $roll):?array; |
|
24 | - public function getAvailableSkills(?PlayerVersion $version, array $context = null):?ArrayCollection; |
|
22 | + public function getSppLevel(PlayerVersion $version): ?string; |
|
23 | + public function getContextForRoll(array $roll): ?array; |
|
24 | + public function getAvailableSkills(?PlayerVersion $version, array $context = null): ?ArrayCollection; |
|
25 | 25 | } |
@@ -52,14 +52,12 @@ |
||
52 | 52 | { |
53 | 53 | // Upload |
54 | 54 | $uploadDirectory = (!isset($config['obblm.upload_directory'])) ? |
55 | - $uploadDirectory = $container->getParameter('kernel.project_dir') . '/public/obblm/uploads' : |
|
56 | - $config['obblm.upload_directory']; |
|
55 | + $uploadDirectory = $container->getParameter('kernel.project_dir') . '/public/obblm/uploads' : $config['obblm.upload_directory']; |
|
57 | 56 | $container->setParameter('obblm.config.directory.upload', $uploadDirectory); |
58 | 57 | |
59 | 58 | // Image resize cache |
60 | 59 | $uploadDirectory = (!isset($config['obblm.public_cache_directory'])) ? |
61 | - $uploadDirectory = $container->getParameter('kernel.project_dir') . '/public/obblm/cache' : |
|
62 | - $config['obblm.public_cache_directory']; |
|
60 | + $uploadDirectory = $container->getParameter('kernel.project_dir') . '/public/obblm/cache' : $config['obblm.public_cache_directory']; |
|
63 | 61 | $container->setParameter('obblm.config.directory.public.cache', $uploadDirectory); |
64 | 62 | } |
65 | 63 |