public static function lengthGroup($group) { return function ($row) use($group) { return MediaLengthDistribution::getGroup($row) == $group; }; }