File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99 }
1010 ],
1111 "require" : {
12- "php" : " >=7.2 " ,
12+ "php" : " ^8.0 " ,
1313 "baraja-core/doctrine" : " ^2.0"
1414 },
1515 "require-dev" : {
16- "brainmaestro/composer-git-hooks" : " ^2.8" ,
17- "nette/bootstrap" : " ^3.0.1" ,
18- "nette/tester" : " ^2.0" ,
19- "symplify/easy-coding-standard" : " ^7.2" ,
2016 "phpstan/phpstan" : " ^0.12.74" ,
17+ "tracy/tracy" : " ^2.8" ,
2118 "phpstan/phpstan-nette" : " ^0.12.14" ,
2219 "spaze/phpstan-disallowed-calls" : " ^1.1" ,
23- "roave/security-advisories" : " dev-master"
20+ "roave/security-advisories" : " dev-master" ,
21+ "jetbrains/phpstorm-attributes" : " ^1.0" ,
22+ "brainmaestro/composer-git-hooks" : " ^2.8" ,
23+ "nette/bootstrap" : " ^3.0.1" ,
24+ "nette/tester" : " ^2.0"
2425 },
2526 "autoload" : {
2627 "psr-4" : {
Original file line number Diff line number Diff line change 1616class Sequence
1717{
1818 use UuidIdentifier;
19- use SmartObject;
2019
2120 private const FORMAT_PATTERN = '/^\%(?<type>[a-zA-Z0-9]+)\s+(A\d+)\s?(?<content>.*?)\s*$/ ' ;
2221
23- /**
24- * @var string
25- * @ORM\Column(type="string", unique=true)
26- */
27- private $ aId ;
22+ /** @ORM\Column(type="string", unique=true) */
23+ private string $ aId ;
2824
29- /**
30- * @var string|null
31- * @ORM\Column(type="text", nullable=true)
32- */
33- private $ sequence ;
25+ /** @ORM\Column(type="text", nullable=true) */
26+ private ?string $ sequence = null ;
3427
35- /**
36- * @var string|null
37- * @ORM\Column(type="text", nullable=true)
38- */
39- private $ data ;
28+ /** @ORM\Column(type="text", nullable=true) */
29+ private ?string $ data = null ;
4030
4131
4232 public function __construct (string $ aId )
@@ -89,7 +79,6 @@ public function getDataType(string $type): ?string
8979 $ return [] = $ parser ['content ' ];
9080 }
9181 }
92-
9382 if ($ return === []) {
9483 return null ;
9584 }
Original file line number Diff line number Diff line change 1515
1616final class StatisticsManager
1717{
18-
19- /** @var EntityManager */
20- private $ entityManager ;
18+ private EntityManager $ entityManager ;
2119
2220
2321 public function __construct (EntityManager $ entityManager )
@@ -65,9 +63,8 @@ public function getData(string $data): array
6563
6664 /**
6765 * @param int[]|float[] $array
68- * @return float|int|mixed
6966 */
70- public function getMedian (array $ array )
67+ public function getMedian (array $ array ): float | int
7168 {
7269 if ($ array ) {
7370 $ count = \count ($ array );
@@ -83,9 +80,8 @@ public function getMedian(array $array)
8380
8481 /**
8582 * @param int[]|float[] $array
86- * @return float|int
8783 */
88- public function getAverage (array $ array )
84+ public function getAverage (array $ array ): float | int
8985 {
9086 if ($ array ) {
9187 $ sum = 0 ;
You can’t perform that action at this time.
0 commit comments