File tree Expand file tree Collapse file tree 4 files changed +8
-9
lines changed Expand file tree Collapse file tree 4 files changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ abstract class AbstractBouncer
4848 public function __construct (
4949 array $ configs ,
5050 LapiRemediation $ remediationEngine ,
51- ?LoggerInterface $ logger = null ,
51+ ?LoggerInterface $ logger = null
5252 ) {
5353 // @codeCoverageIgnoreStart
5454 if (!$ logger ) {
@@ -258,7 +258,7 @@ public function pruneCache(): bool
258258 public function pushUsageMetrics (
259259 string $ bouncerName ,
260260 string $ bouncerVersion ,
261- string $ bouncerType = LapiConstants::METRICS_TYPE ,
261+ string $ bouncerType = LapiConstants::METRICS_TYPE
262262 ): array {
263263 try {
264264 return $ this ->remediationEngine ->pushUsageMetrics ($ bouncerName , $ bouncerVersion , $ bouncerType );
@@ -424,7 +424,7 @@ protected function getBanHtml(): string
424424 protected function getCaptchaHtml (
425425 bool $ error ,
426426 string $ captchaImageSrc ,
427- string $ captchaResolutionFormUrl,
427+ string $ captchaResolutionFormUrl
428428 ): string {
429429 $ template = new Template ('captcha.html.twig ' );
430430
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ private function buildRawBodyFromSuperglobals(
3434 $ stream ,
3535 array $ serverData = [], // $_SERVER
3636 array $ postData = [], // $_POST
37- array $ filesData = [], // $_FILES
37+ array $ filesData = [] // $_FILES
3838 ): string {
3939 $ contentType = $ serverData ['CONTENT_TYPE ' ] ?? '' ;
4040 // The threshold is the maximum body size converted in bytes + 1
@@ -53,7 +53,7 @@ private function appendFileData(
5353 string $ fileKey ,
5454 string $ boundary ,
5555 int $ threshold ,
56- int &$ currentSize,
56+ int &$ currentSize
5757 ): string {
5858 $ fileName = is_array ($ fileArray ['name ' ]) ? $ fileArray ['name ' ][$ index ] : $ fileArray ['name ' ];
5959 $ fileTmpName = is_array ($ fileArray ['tmp_name ' ]) ? $ fileArray ['tmp_name ' ][$ index ] : $ fileArray ['tmp_name ' ];
@@ -119,7 +119,7 @@ private function getMultipartRawBody(
119119 string $ contentType ,
120120 int $ threshold ,
121121 array $ postData ,
122- array $ filesData,
122+ array $ filesData
123123 ): string {
124124 try {
125125 $ boundary = $ this ->extractBoundary ($ contentType );
Original file line number Diff line number Diff line change @@ -1127,7 +1127,6 @@ public function testResetMetrics()
11271127 'The origin count for clean should be 2 '
11281128 );
11291129
1130-
11311130 // Test: reset metrics
11321131 $ result = $ bouncer ->resetUsageMetrics ();
11331132 $ originCountItem = $ cache ->getItem (AbstractCache::ORIGINS_COUNT )->get ();
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ public function __construct(array $configs)
5050 private function manageRequest (
5151 string $ method ,
5252 string $ endpoint ,
53- array $ parameters = [],
53+ array $ parameters = []
5454 ): array {
5555 $ this ->logger ->debug ('' , [
5656 'type ' => 'WATCHER_CLIENT_REQUEST ' ,
@@ -158,7 +158,7 @@ public function addDecision(
158158 string $ dateTimeDurationString ,
159159 string $ value ,
160160 string $ type ,
161- string $ scope = Constants::SCOPE_IP ,
161+ string $ scope = Constants::SCOPE_IP
162162 ) {
163163 $ stopAt = (clone $ now )->modify ($ dateTimeDurationString )->format ('Y-m-d\TH:i:s.000\Z ' );
164164 $ startAt = $ now ->format ('Y-m-d\TH:i:s.000\Z ' );
You can’t perform that action at this time.
0 commit comments