@@ -4,11 +4,11 @@ discard block |
||
4 | 4 | |
5 | 5 | class ClassModifiedChecker extends FileModifiedChecker |
6 | 6 | { |
7 | - function __construct($className){ |
|
7 | + function __construct($className) { |
|
8 | 8 | $class = new \ReflectionClass($className); |
9 | 9 | $files = []; |
10 | 10 | |
11 | - if($class->getFileName()){ |
|
11 | + if ($class->getFileName()) { |
|
12 | 12 | $files[] = $class->getFileName(); |
13 | 13 | self::getParentFileName($class, $files); |
14 | 14 | } |
@@ -18,15 +18,15 @@ discard block |
||
18 | 18 | static public function getParentFileName(\ReflectionClass $class, array &$files) |
19 | 19 | { |
20 | 20 | $parent = $class->getParentClass(); |
21 | - if(!$parent){ |
|
21 | + if (!$parent) { |
|
22 | 22 | return; |
23 | 23 | } |
24 | - if($parent->getFileName()){ |
|
24 | + if ($parent->getFileName()) { |
|
25 | 25 | $files[] = $parent->getFileName(); |
26 | 26 | self::getParentFileName($parent, $files); |
27 | 27 | } |
28 | - foreach ($class->getInterfaces() as $interface){ |
|
29 | - if($interface->getFileName()){ |
|
28 | + foreach ($class->getInterfaces() as $interface) { |
|
29 | + if ($interface->getFileName()) { |
|
30 | 30 | $files[] = $interface->getFileName(); |
31 | 31 | self::getParentFileName($interface, $files); |
32 | 32 | } |