public static function argPostStatus(Query $query, $value, &$q) { if ($value == 'any') { $ips = Indexer::getIndexablePostStati(); $query->where('post_status', $ips); } else { $query->where('post_status', $value); } }