Plugin Directory

Changeset 146024


Ignore:
Timestamp:
08/15/2009 04:28:19 AM (17 years ago)
Author:
ruslany
Message:

More code styling cleanup.

Location:
wp-media-player/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • wp-media-player/trunk/classes/utils.class.php

    r116857 r146024  
    33class wp_mp_utils
    44{
    5     function byte_convert($bytes){
     5    function byte_convert($bytes)
     6    {
    67        $b = (int)$bytes;
    78        $s = array(__('B'), __('kB'), __('MB'), __('GB'), __('TB'));
    8         if($b < 0){
     9        if( $b < 0 ){
    910            return "0 ".$s[0];
    1011        }
     
    1415    }
    1516   
    16     function compare_filename($a, $b){
     17    function compare_filename($a, $b)
     18    {
    1719        return strnatcmp($a['filename'], $b['filename']);
    1820    }
    1921
    20     function compare_filesize($a, $b){
    21         if ($a['filezie'] == $b['filesize']) {
     22    function compare_filesize($a, $b)
     23    {
     24        if ( $a['filezie'] == $b['filesize'] ) {
    2225            return 0;
    2326        }
     
    2528    }
    2629
    27     function get_filename_without_ext($filename){
     30    function get_filename_without_ext($filename)
     31    {
    2832        $pos = strripos($filename, '.');
    29         if($pos === false){
     33        if( $pos === false ){
    3034            return $filename;
    3135        }else{
     
    3943        $arr = explode($search, $string);
    4044        /*** check the search is not out of bounds ***/
    41         switch( $offset )
    42         {
     45        switch( $offset ){
    4346            case $offset == 0:
    4447            return false;
     
    5457    }
    5558   
    56     function get_url_path($url){
     59    function get_url_path($url)
     60    {
    5761        return substr($url, wp_mp_utils::strposOffset('/', $url, 3));
    5862    }
  • wp-media-player/trunk/wp-media-player.php

    r145907 r146024  
    337337            return false;
    338338        }
    339        
     339
    340340        /**
    341341         * Updates player's dimensions to ensure aspect ratio is maintained
Note: See TracChangeset for help on using the changeset viewer.