Skip to content

Commit 7e61deb

Browse files
committed
remove todos
1 parent 0a0f585 commit 7e61deb

File tree

8 files changed

+2
-41
lines changed

8 files changed

+2
-41
lines changed

docs/api/RestClient.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,7 @@ Send an HTTP request using the file_get_contents and parse its JSON result if an
9090

9191

9292
`\BouncerException`
93-
> when the reponse status is not 2xx.
94-
95-
TODO P3 test the request method
93+
> when the reponse status is not 2xx.
9694
9795
<hr />
9896

docs/contribute.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ After the merge, don't forget to delete to branch.
8686
#### New release
8787

8888
```bash
89+
git checkout main && git pull
8990
git describe --tags # to verify what is the current tag
9091
gh release create --draft vx.x.x --title vx.x.x
9192
```

src/ApiCache.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -281,9 +281,7 @@ private function saveRemediationsForIp(array $decisions, string $ip): string
281281
foreach ($decisions as $decision) {
282282
if (!\in_array($decision['type'], Constants::ORDERED_REMEDIATIONS)) {
283283
$highestRemediationLevel = Constants::ORDERED_REMEDIATIONS[0];
284-
// TODO P1 test the case of unknown remediation type
285284
$this->logger->warning('', ['type' => 'UNKNOWN_REMEDIATION', 'remediation' => $decision['type']]);
286-
// TODO P2 use the fallback parameter instead.
287285
$decision['type'] = $highestRemediationLevel;
288286
}
289287
$remediation = $this->formatRemediationFromDecision($decision);

src/RestClient.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,6 @@ private function convertHeadersToString(array $headers): string
6868
* Send an HTTP request using the file_get_contents and parse its JSON result if any.
6969
*
7070
* @throws BouncerException when the reponse status is not 2xx.
71-
*
72-
* TODO P3 test the request method
7371
*/
7472
public function request(
7573
string $endpoint,

tests/LoadPaginatedDecisionsTest.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,6 @@
33
declare(strict_types=1);
44
use PHPUnit\Framework\TestCase;
55

6-
/*
7-
TODO P3 Implement decisions pagination tests
8-
cf https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/slice
9-
*/
10-
116
final class LoadPaginatedDecisionsTest extends TestCase
127
{
138
/**

tests/LoadPaginatedLogsTest.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,6 @@
33
declare(strict_types=1);
44
use PHPUnit\Framework\TestCase;
55

6-
/*
7-
TODO P3 Implement decisions pagination tests
8-
*/
9-
106
final class LoadPaginatedLogsTest extends TestCase
117
{
128
/**

tests/Template403Test.php

Lines changed: 0 additions & 21 deletions
This file was deleted.

tests/TestHelpers.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,6 @@ public static function createLogger(): Logger
3838
public static function cacheAdapterProvider(): array
3939
{
4040
// Init all adapters
41-
/*
42-
TODO P3 Failed on CI but some fixes may fix this bug. Just retry it could work! Else investigates.
43-
$fileSystemAdapter = new FilesystemAdapter('fs_adapter_cache', 0, self::FS_CACHE_ADAPTER_DIR);
44-
*/
4541

4642
$phpFilesAdapter = new PhpFilesAdapter('php_array_adapter_backup_cache', 0, self::PHP_FILES_CACHE_ADAPTER_DIR);
4743

0 commit comments

Comments
 (0)