src/Axolotl/Type.php
private function determine_scalar( $type ) {
		$synonyms = array(
			'int' => 'integer',
			'float' => 'double',
			'bool' => 'boolean',
		);

		if ( array_key_exists( $type, $synonyms ) ) {
			$type = $synonyms[ $type ];
		}

		return in_array( $type, array( 'string', 'integer', 'double', 'boolean' ) ) ?
			$type :
			null;
	}
private function determine_scalar( $type ) {
		$synonyms = array(
			'int' => 'integer',
			'float' => 'double',
			'bool' => 'boolean',
		);

		if ( array_key_exists( $type, $synonyms ) ) {
			$type = $synonyms[ $type ];
		}

		return in_array( $type, array( 'string', 'integer', 'double', 'boolean' ) ) ?
			$type :
			null;
	}
private function determine_scalar ( $ type ) { $ synonyms = array ( 'int' => 'integer' , 'float' => 'double' , 'bool' => 'boolean' , ) ; if ( array_key_exists ( $ type , $ synonyms ) ) { $ type = $ synonyms [ $ type ] ; } return in_array ( $ type , array ( 'string' , 'integer' , 'double' , 'boolean' ) ) ? $ type : null ; }
Returns the type if it's scalar, otherwise, returns null.

@param string $type Type to check.

@return string|null
Returns the type if it s scalar otherwise returns null .