public function isGoodFile(Config $source) {
		$info = pathinfo($this->path);

		if (!isset($info['extension']) or (!in_array(strtolower($info['extension']), $source->extensions))) {
			return false;
		}

		if (in_array(strtolower($info['extension']), $source->imageExtensions) and !$this->isImage()) {
			return false;
		}

		return true;
	}
public function isGoodFile(Config $source) {
		$info = pathinfo($this->path);

		if (!isset($info['extension']) or (!in_array(strtolower($info['extension']), $source->extensions))) {
			return false;
		}

		if (in_array(strtolower($info['extension']), $source->imageExtensions) and !$this->isImage()) {
			return false;
		}

		return true;
	}
public function isGoodFile ( Config $ source ) { $ info = pathinfo ( $ this -> path ) ; if ( ! isset ( $ info [ 'extension' ] ) or ( ! in_array ( strtolower ( $ info [ 'extension' ] ) , $ source -> extensions ) ) ) { return false ; } if ( in_array ( strtolower ( $ info [ 'extension' ] ) , $ source -> imageExtensions ) and ! $ this -> isImage ( ) ) { return false ; } return true ; }
Check file extension

@param {Source} $source
@return bool
Check file extension