PluginProbe
Packeta / 2.1
Packeta v2.1
2.3.2 2.3.1 trunk 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.3.0 1.3.1 1.3.2 1.4 1.4.1 1.4.2 1.4.3 1.5.0 1.5.1 1.5.2 1.5.3 1.5.4 1.6.0 1.6.1 1.6.2 1.6.3 1.6.4 All 56 releases
← All changes | src/Packetery/Module/Order/PacketSubmissionResult.php +7 -7 1.6.12.1 View file →
@@ -18,9 +18,9 @@
18 18
19 19 /**
20 20 * Submission result counter.
21 21 *
22 - * @var int[]
22 + * @var array<string, int>
23 23 */
24 24 private $counter = [
25 25 'success' => 0,
26 26 'ignored' => 0,
@@ -34,9 +34,9 @@
34 34 *
35 35 * @return void
36 36 */
37 37 public function increaseSuccessCount(): void {
38 - $this->counter['success'] ++;
38 + $this->counter['success']++;
39 39 }
40 40
41 41 /**
42 42 * Increases ignored count.
@@ -43,9 +43,9 @@
43 43 *
44 44 * @return void
45 45 */
46 46 public function increaseIgnoredCount(): void {
47 - $this->counter['ignored'] ++;
47 + $this->counter['ignored']++;
48 48 }
49 49
50 50 /**
51 51 * Increases errors count.
@@ -52,9 +52,9 @@
52 52 *
53 53 * @return void
54 54 */
55 55 public function increaseErrorsCount(): void {
56 - $this->counter['errors'] ++;
56 + $this->counter['errors']++;
57 57 }
58 58
59 59 /**
60 60 * Increases logs count.
@@ -61,9 +61,9 @@
61 61 *
62 62 * @return void
63 63 */
64 64 public function increaseLogsCount(): void {
65 - $this->counter['logs'] ++;
65 + $this->counter['logs']++;
66 66 }
67 67
68 68 /**
69 69 * Increases count of situations when order status couldn't be changed.
@@ -70,9 +70,9 @@
70 70 *
71 71 * @return void
72 72 */
73 73 public function increaseStatusUnchangedCount(): void {
74 - $this->counter['statusUnchanged'] ++;
74 + $this->counter['statusUnchanged']++;
75 75 }
76 76
77 77 /**
78 78 * Merges given result into $this.
@@ -92,9 +92,9 @@
92 92
93 93 /**
94 94 * Gets counter.
95 95 *
96 - * @return array
96 + * @return array<string, int>
97 97 */
98 98 public function getCounter(): array {
99 99 return $this->counter;
100 100 }