| Total Complexity | 3 | 
| Total Lines | 42 | 
| Duplicated Lines | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php | ||
| 21 | final class RHelperDispatcher | ||
| 22 | { | ||
| 23 | /** | ||
| 24 | * Stores the singleton instance of the dispatcher. | ||
| 25 | * | ||
| 26 | * @var RHelperDispatcher | ||
| 27 | * @since __deploy_version__ | ||
| 28 | */ | ||
| 29 | protected static $instance = null; | ||
| 30 | |||
| 31 | /** | ||
| 32 | * Returns the global Event Dispatcher object, only creating it | ||
| 33 | * if it doesn't already exist. | ||
| 34 | * | ||
| 35 | * @return RHelperDispatcher The EventDispatcher object. | ||
| 36 | * | ||
| 37 | * @since __deploy_version__ | ||
| 38 | */ | ||
| 39 | public static function getInstance() | ||
| 40 | 	{ | ||
| 41 | if (self::$instance === null) | ||
| 42 | 		{ | ||
| 43 | self::$instance = new static; | ||
| 44 | } | ||
| 45 | |||
| 46 | return self::$instance; | ||
| 47 | } | ||
| 48 | |||
| 49 | /** | ||
| 50 | * Triggers an event by dispatching arguments to all observers that handle | ||
| 51 | * the event and returning their return values. | ||
| 52 | * | ||
| 53 | * @param string $event The event to trigger. | ||
| 54 | * @param array $args An array of arguments. | ||
| 55 | * | ||
| 56 | * @return array An array of results from each function call. | ||
| 57 | * | ||
| 58 | * @since __deploy_version__ | ||
| 59 | */ | ||
| 60 | public function trigger($event, $args = array()) | ||
| 63 | } | ||
| 64 | } | 
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths