@@ -220,7 +220,7 @@ function find_file_upward( $files, $dir = null, $stop_check = null ) {
220220}
221221
222222function is_path_absolute ( $ path ) {
223- // Windows
223+ // Windows.
224224 if ( isset ( $ path [1 ] ) && ': ' === $ path [1 ] ) {
225225 return true ;
226226 }
@@ -868,7 +868,7 @@ function get_default_cacert( $halt_on_error = false ) {
868868 $ error_msg = 'Cannot find SSL certificate. ' ;
869869
870870 if ( inside_phar ( $ cert_path ) ) {
871- // cURL can't read Phar archives
871+ // cURL can't read Phar archives.
872872 return extract_from_phar ( $ cert_path );
873873 }
874874
@@ -895,13 +895,13 @@ function get_default_cacert( $halt_on_error = false ) {
895895 * @return string
896896 */
897897function increment_version ( $ current_version , $ new_version ) {
898- // split version assuming the format is x.y.z-pre
898+ // split version assuming the format is x.y.z-pre.
899899 $ current_version = explode ( '- ' , $ current_version , 2 );
900900 $ current_version [0 ] = explode ( '. ' , $ current_version [0 ] );
901901
902902 switch ( $ new_version ) {
903903 case 'same ' :
904- // do nothing
904+ // do nothing.
905905 break ;
906906
907907 case 'patch ' :
@@ -925,7 +925,7 @@ function increment_version( $current_version, $new_version ) {
925925 $ current_version = [ $ current_version [0 ] ]; // Drop possible pre-release info.
926926 break ;
927927
928- default : // not a keyword
928+ default : // not a keyword.
929929 $ current_version = [ [ $ new_version ] ];
930930 break ;
931931 }
@@ -1007,7 +1007,7 @@ function get_flag_value( $assoc_args, $flag, $default = null ) {
10071007function get_home_dir () {
10081008 $ home = getenv ( 'HOME ' );
10091009 if ( ! $ home ) {
1010- // In Windows $HOME may not be defined
1010+ // In Windows $HOME may not be defined.
10111011 $ home = getenv ( 'HOMEDRIVE ' ) . getenv ( 'HOMEPATH ' );
10121012 }
10131013
0 commit comments