source/Core/SystemRequirements.php
public static function filter($systemRequirementsInfo, $filterFunction)
    {
        $iterator = static::iterateThroughSystemRequirementsInfo($systemRequirementsInfo);

        foreach ($iterator as list($groupId, $moduleId, $moduleState)) {
            $systemRequirementsInfo[$groupId][$moduleId] = $filterFunction($groupId, $moduleId, $moduleState);
        }

        return $systemRequirementsInfo;
    }
public static function filter($systemRequirementsInfo, $filterFunction)
    {
        $iterator = static::iterateThroughSystemRequirementsInfo($systemRequirementsInfo);

        foreach ($iterator as list($groupId, $moduleId, $moduleState)) {
            $systemRequirementsInfo[$groupId][$moduleId] = $filterFunction($groupId, $moduleId, $moduleState);
        }

        return $systemRequirementsInfo;
    }
public static function filter ( $ systemRequirementsInfo , $ filterFunction ) { $ iterator = static :: iterateThroughSystemRequirementsInfo ( $ systemRequirementsInfo ) ; foreach ( $ iterator as list ( $ groupId , $ moduleId , $ moduleState ) ) { $ systemRequirementsInfo [ $ groupId ] [ $ moduleId ] = $ filterFunction ( $ groupId , $ moduleId , $ moduleState ) ; } return $ systemRequirementsInfo ; }
Apply given filter function to all iterations of SystemRequirementInfo array.

@param array    $systemRequirementsInfo
@param \Closure $filterFunction         Filter function used for the update of actual values; Function will
receive the same arguments as provided from
`iterateThroughSystemRequirementsInfo` method.

@return array An array which is in the same format as the main input argument but with updated data.
Apply given filter function to all iterations of SystemRequirementInfo array .