| @@ -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 | } |