src/Config_Command.php
private function filter_values( $values, $filters, $strict ) {
		$result = array();

		foreach ( $values as $value ) {
			foreach ( $filters as $filter ) {
				if ( $strict && $filter !== $value['name'] ) {
					continue;
				}

				if ( false === strpos( $value['name'], $filter ) ) {
					continue;
				}

				$result[] = $value;
			}
		}

		return $result;
	}
private function filter_values( $values, $filters, $strict ) {
		$result = array();

		foreach ( $values as $value ) {
			foreach ( $filters as $filter ) {
				if ( $strict && $filter !== $value['name'] ) {
					continue;
				}

				if ( false === strpos( $value['name'], $filter ) ) {
					continue;
				}

				$result[] = $value;
			}
		}

		return $result;
	}
private function filter_values ( $ values , $ filters , $ strict ) { $ result = array ( ) ; foreach ( $ values as $ value ) { foreach ( $ filters as $ filter ) { if ( $ strict && $ filter !== $ value [ 'name' ] ) { continue ; } if ( false === strpos ( $ value [ 'name' ] , $ filter ) ) { continue ; } $ result [ ] = $ value ; } } return $ result ; }
Filters the values based on a provider filter key.

@param array $values
@param array $filters
@param bool $strict

@return array
Filters the values based on a provider filter key .