title: Unused Local Variable the variable is overwritten immediately
body: <pre><code>&lt;?php
  /*FInd fifth_number - private method*/
  
    function get_number_root($root) {
        switch($root) {
            case 'A':
                $number = 1;
                break;
            case 'A#':
                $number = 2;
                break;
            case 'Bb':
                $number = 2;
                break;
            case 'B':
                $number = 3;
                break;
            case 'C':
                $number = 4;
                break;
            case 'C#':
                $number = 5;
                break;
            case 'Db':
                $number = 5;
                break;
            case 'D':
                $number = 6;
                break;
            case 'D#':
                $number = 7;
                break;
            case 'Eb':
                $number = 7;
                break;
            case 'E':
                $number = 8;
                break;
            case 'F':
                $number = 9;
                break;
            case 'F#':
                $number = 10;
                break;
            case 'G':
                $number = 11;
                break;
            case 'G#':
                $number = 12;
                break;
            case 'Ab':
                $number = 12;
                break;
            default:
                die('error');
                return $number;
        }
  
        $number = get_number_root($_POST['root']);
    }
  ?&gt;
  </code></pre>