Skip to content

Commit

Permalink
Dead code, typehint
Browse files Browse the repository at this point in the history
  • Loading branch information
trasher committed Mar 18, 2024
1 parent 4608f21 commit 05e2b36
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions lib/GaletteOAuth2/Tools/Debug.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
use Monolog\Formatter\LineFormatter;
use Monolog\Handler\StreamHandler;
use Monolog\Logger;
use Slim\Psr7\Request;

/**
* Debug tools
Expand Down Expand Up @@ -61,7 +62,7 @@ public static function log(string $txt): void
);
}

public static function logRequest($fct, $request): void
public static function logRequest(string $fct, Request $request): void
{
$msg = sprintf(
"%s - URI: %s",
Expand All @@ -79,9 +80,5 @@ public static function logRequest($fct, $request): void
$msg,
Analog::DEBUG
);
/*self::log("{$fct} :");
self::log('URI : ' . $request->getUri());
self::log('GET dump :' . self::printVar($request->getQueryParams()));
self::log('POST dump :' . self::printVar((array) $request->getParsedBody()));*/
}
}

0 comments on commit 05e2b36

Please sign in to comment.