src/Foundation/Framework.php
/**
	 * Gets the current environment mode. If the first argument contains a string, returns a boolean representing
	 * whether the provided string matches the environment or not (case-insensitive).
	 *
	 * Possible environments are ('web', 'test', 'console').
	 *
	 * @param string $matches
	 * @return string|bool
	 */
Gets the current environment mode. If the first argument contains a string, returns a boolean representing
whether the provided string matches the environment or not (case-insensitive).



@param string $matches
@return string|bool
Gets the current environment mode . If the first argument contains a string returns a boolean representing whether the provided string matches the environment or not ( case - insensitive ) . @param string $matches @return string|bool
public static function environment($matches = null) {
		$value = Application::environment();
		if (!is_null($matches)) {
			return strcasecmp($value, $matches) === 0;
		}
		return $value;
	}
public static function environment ( $ matches = null ) { $ value = Application :: environment ( ) ; if ( ! is_null ( $ matches ) ) { return strcasecmp ( $ value , $ matches ) === 0 ; } return $ value ; }
Gets the current environment mode.
Gets the current environment mode .
// Test against $matches argument // Return environment mode