Mistři v programování na #hovnokod

PHP #897

/**
 * Vrati sef z cisla mesiaca
 *
 * @access public
 * @param mixed $month cislo esiaca
 * @return string
 */
public function monthFormat($month)
{
    switch ($month)
    {
	case '-1' :
	    $return = "neuvedene";
	    break;
	case '0' :
	    $return = "neuvedene";
	    break;
	case '1' :
	    $return = "1";
	    break;
	case '2' :
	    $return = "2";
	    break;
	case '3' :
	    $return = "3";
	    break;
	case '4' :
	    $return = "4";
	    break;
	case '5' :
	    $return = "5";
	    break;
	case '6' :
	    $return = "6";
	    break;
	case '7' :
	    $return = "7";
	    break;
	case '8' :
	    $return = "8";
	    break;
	case '9' :
	    $return = "9";
	    break;
	case '10' :
	    $return = "10";
	    break;
	case '11' :
	    $return = "11";
	    break;
	case '12' :
	    $return = "12";
	    break;
	default :
	    $return = "neuvedene";
	    break;
    }
    return $return;
}

Anonymous,