Skip to content

Commit 6eb1fd9

Browse files
committed
cs-fix
1 parent 68967d6 commit 6eb1fd9

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/PdfFilterExtension.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,14 @@
22

33
namespace PhpLatexRenderer;
44

5-
use Monolog\Logger;
6-
use Psr\Log\LoggerInterface;
75
use Symfony\Component\Process\ExecutableFinder;
86
use Symfony\Component\Process\Process;
9-
use Twig\Environment;
107
use Twig\TwigFilter;
118

129
class PdfFilterExtension extends \Twig\Extension\AbstractExtension
1310
{
1411
private bool $qpdf;
1512

16-
1713
public function __construct()
1814
{
1915
$finder = new ExecutableFinder();
@@ -30,7 +26,7 @@ public function getFilters(): array
3026
/**
3127
* @param array $context all variables
3228
* @param string $relFilePath only the filename, no path is needed. Directory is taken as _tex.dir/files/
33-
* @return int|null returns null if file does not exist
29+
* @return int|null returns null if file does not exist, int with number of pages otherwise
3430
*/
3531
public function pages(array $context, $relFilePath): ?int
3632
{

0 commit comments

Comments
 (0)