src/Monitor.php
/**
	 * Ensure that all version strings have major.minor.patch when comparing
	 *
	 * @param mixed (string|array) array or string semver number
	 * @return array - an array of major, minor, and patch versions
	 */
Ensure that all version strings have major.minor.patch when comparing
@param mixed (string|array) array or string semver number
@return array - an array of major, minor, and patch versions
Ensure that all version strings have major . minor . patch when comparing @param mixed ( string|array ) array or string semver number @return array - an array of major minor and patch versions
private static function pad_version( $parts ) {
		if ( is_string( $parts ) ) {
			$parts = array_map( 'intval', explode('.', $parts ) );
		}
		if ( count( $parts ) < 3 ) {
			while( count( $parts ) < 3 ) {
				array_push( $parts, 0);
			}
		}
		return $parts;
	}
private static function pad_version ( $ parts ) { if ( is_string ( $ parts ) ) { $ parts = array_map ( 'intval' , explode ( '.' , $ parts ) ) ; } if ( count ( $ parts ) < 3 ) { while ( count ( $ parts ) < 3 ) { array_push ( $ parts , 0 ) ; } } return $ parts ; }
Ensure that all version strings have major.minor.patch when comparing
 @param mixed (string|array) array or string semver number
 @return array - an array of major, minor, and patch versions
Ensure that all version strings have major . minor . patch when comparing @param mixed ( string|array ) array or string semver number @return array - an array of major minor and patch versions