Skip to content

Commit 4150072

Browse files
committed
Fix codestyle
1 parent 054b618 commit 4150072

2 files changed

Lines changed: 16 additions & 7 deletions

File tree

src/Entity/Sequence.php

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
*/
1616
class Sequence
1717
{
18-
1918
use UuidIdentifier;
2019
use SmartObject;
2120

@@ -39,6 +38,7 @@ class Sequence
3938
*/
4039
private $data;
4140

41+
4242
/**
4343
* @param string $aId
4444
*/
@@ -48,6 +48,7 @@ public function __construct(string $aId)
4848
$this->updateData();
4949
}
5050

51+
5152
/**
5253
* @return string
5354
*/
@@ -56,6 +57,7 @@ public function getAId(): string
5657
return $this->aId;
5758
}
5859

60+
5961
/**
6062
* @return int[]
6163
*/
@@ -73,6 +75,7 @@ public function getSequence(): array
7375
return $return;
7476
}
7577

78+
7679
/**
7780
* @return string|null
7881
*/
@@ -81,6 +84,7 @@ public function getData(): ?string
8184
return $this->data;
8285
}
8386

87+
8488
/**
8589
* @param string $type
8690
* @return string|null
@@ -108,6 +112,7 @@ public function getDataType(string $type): ?string
108112
return $type === 'A' ? str_replace('_', '', $return) : $return;
109113
}
110114

115+
111116
public function updateData(): void
112117
{
113118
if ($this->data === null) {
@@ -119,12 +124,12 @@ public function updateData(): void
119124
}
120125
}
121126

127+
122128
/**
123129
* @return string|null
124130
*/
125131
public function getFormula(): ?string
126132
{
127133
return $this->getDataType('F');
128134
}
129-
130135
}

src/StatisticsManager.php

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,13 @@
1313
use Nette\Utils\Strings;
1414
use Nette\Utils\Validators;
1515

16-
class StatisticsManager
16+
final class StatisticsManager
1717
{
1818

19-
/**
20-
* @var EntityManager
21-
*/
19+
/** @var EntityManager */
2220
private $entityManager;
2321

22+
2423
/**
2524
* @param EntityManager $entityManager
2625
*/
@@ -29,6 +28,7 @@ public function __construct(EntityManager $entityManager)
2928
$this->entityManager = $entityManager;
3029
}
3130

31+
3232
/**
3333
* @param string $query
3434
* @return string[]
@@ -49,6 +49,7 @@ public function getNumbers(string $query): array
4949
return $numbers;
5050
}
5151

52+
5253
/**
5354
* @param string $data
5455
* @return int[][]|float[][]
@@ -64,6 +65,7 @@ public function getData(string $data): array
6465
return $return;
6566
}
6667

68+
6769
/**
6870
* @param int[]|float[] $array
6971
* @return float|int|mixed
@@ -81,6 +83,7 @@ public function getMedian(array $array)
8183
return 0;
8284
}
8385

86+
8487
/**
8588
* @param int[]|float[] $array
8689
* @return float|int
@@ -101,6 +104,7 @@ public function getAverage(array $array)
101104
return 0;
102105
}
103106

107+
104108
/**
105109
* @param string[] $sequence
106110
* @param int $limit
@@ -131,6 +135,7 @@ public function getSequences(array $sequence, int $limit = 6): array
131135
return $return;
132136
}
133137

138+
134139
/**
135140
* @param string $aId
136141
* @return Sequence
@@ -155,5 +160,4 @@ public function getSequence(string $aId): Sequence
155160

156161
return $return;
157162
}
158-
159163
}

0 commit comments

Comments
 (0)