Skip to content

Commit f882a15

Browse files
committed
fixes
1 parent eb7eb59 commit f882a15

File tree

4 files changed

+7
-19
lines changed

4 files changed

+7
-19
lines changed

src/Debug/Logger.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function log(string $message, string $level = 'error'): void
3737

3838

3939
/**
40-
* @return list<array{message: string, created: int, parameters: array<string, mixed>}>>
40+
* @return list<array{message: string, created: int, parameters: array<string, mixed>}>
4141
*/
4242
public function getList(string $level = 'error'): array
4343
{

src/Debug/Repository/Logger.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public function log(string $message, int $created, string $level = 'error', arra
1616

1717

1818
/**
19-
* @return list<array{message: string, created: int, parameters: array<string, mixed>}>>
19+
* @return list<array{message: string, created: int, parameters: array<string, mixed>}>
2020
*/
2121
public function getList(string $level = 'error'): array;
2222
}

src/User/Sign.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,7 @@ public function authenticate(bool $reload = false, array $parameters = []): ?str
6767
'application_parameters' => array_merge(
6868
$this->default_parameters,
6969
$parameters,
70-
[
71-
'guest' => $token === null,
72-
],
70+
['guest' => $token === null],
7371
),
7472
], $token ?? '');
7573
}

tests/User/SignTestJwt.phpt

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,15 @@
22

33
namespace BulkGate\Plugin\User\Test;
44

5-
/**
6-
* @author Lukáš Piják 2023 TOPefekt s.r.o.
7-
* @link https://www.bulkgate.com/
8-
*/
5+
require_once __DIR__ . '/../bootstrap.php';
96

107
use Mockery;
118
use Tester\{Assert, TestCase};
12-
use BulkGate\Plugin\{Debug\Logger,
13-
Eshop\ConfigurationDefault,
14-
IO\Connection,
15-
IO\Url,
16-
Localization\Language,
17-
Settings\Settings,
18-
User\Sign,
19-
Utils\Jwt};
20-
21-
require_once __DIR__ . '/../bootstrap.php';
9+
use BulkGate\Plugin\{IO\Url, User\Sign, Utils\Jwt, Debug\Logger, IO\Connection, Settings\Settings, Localization\Language, Eshop\ConfigurationDefault};
2210

2311
/**
12+
* @author Lukáš Piják 2023 TOPefekt s.r.o.
13+
* @link https://www.bulkgate.com/
2414
* @testCase
2515
*/
2616
class SignTest extends TestCase

0 commit comments

Comments
 (0)