Skip to content

Commit 91e8644

Browse files
committed
CS fix
1 parent 377ce7a commit 91e8644

1 file changed

Lines changed: 9 additions & 14 deletions

File tree

src/ClassBoundCache.php

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,21 @@
11
<?php
22

3+
declare(strict_types=1);
34

45
namespace TheCodingMachine\CacheUtils;
56

6-
7-
use function array_merge;
87
use ReflectionClass;
8+
use function array_merge;
99

1010
class ClassBoundCache implements ClassBoundCacheInterface
1111
{
12-
/**
13-
* @var FileBoundCacheInterface
14-
*/
12+
/** @var FileBoundCacheInterface */
1513
private $fileBoundCache;
16-
/**
17-
* @var bool
18-
*/
14+
/** @var bool */
1915
private $analyzeParentClasses;
20-
/**
21-
* @var bool
22-
*/
16+
/** @var bool */
2317
private $analyzeTraits;
24-
/**
25-
* @var bool
26-
*/
18+
/** @var bool */
2719
private $analyzeInterfaces;
2820

2921
public function __construct(FileBoundCacheInterface $fileBoundCache, bool $analyzeParentClasses = true, bool $analyzeTraits = true, bool $analyzeInterfaces = false)
@@ -57,6 +49,9 @@ public function set(string $key, $item, ReflectionClass $refClass, ?int $ttl = n
5749
$this->fileBoundCache->set($key, $item, $files, $ttl);
5850
}
5951

52+
/**
53+
* @return array<int, string>
54+
*/
6055
private function getFilesForClass(ReflectionClass $refClass): array
6156
{
6257
$files = [];

0 commit comments

Comments
 (0)