Conditions | 3 |
Paths | 2 |
Total Lines | 15 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
27 | public function __invoke(ReflectionFunctionAbstract $fromFunction, ReflectionFunctionAbstract $toFunction) : Changes |
||
28 | { |
||
29 | if ($this->isInternalDocComment($toFunction->getDocComment()) |
||
30 | && ! $this->isInternalDocComment($fromFunction->getDocComment()) |
||
31 | ) { |
||
32 | return Changes::fromList(Change::changed( |
||
33 | sprintf( |
||
34 | '%s was marked "@internal"', |
||
35 | $this->formatFunction->__invoke($fromFunction), |
||
36 | ), |
||
37 | true |
||
38 | )); |
||
39 | } |
||
40 | |||
41 | return Changes::empty(); |
||
42 | } |
||
49 |