original_string: protected function convert_branch_numbering_format($branch) {
  
          $branch = (string)$branch;
  
          if (strpos($branch, '.') === false) {
              $branch = substr($branch, 0, -1).'.'.substr($branch, -1);
          }
  
          return $branch;
      }
code: protected function convert_branch_numbering_format($branch) {
  
          $branch = (string)$branch;
  
          if (strpos($branch, '.') === false) {
              $branch = substr($branch, 0, -1).'.'.substr($branch, -1);
          }
  
          return $branch;
      }
code_tokens: protected function convert_branch_numbering_format ( $ branch ) { $ branch = ( string ) $ branch ; if ( strpos ( $ branch , '.' ) === false ) { $ branch = substr ( $ branch , 0 , - 1 ) . '.' . substr ( $ branch , - 1 ) ; } return $ branch ; }
docstring: Converts the given branch from XY format to the X.Y format
  
  The syntax of $CFG->branch uses the XY format that suits the Moodle docs
  versioning and stable branches numbering scheme. The API at
  download.moodle.org uses the X.Y numbering scheme.
  
  @param int $branch moodle branch in the XY format (e.g. 29, 30, 31 etc)
  @return string moodle branch in the X.Y format (e.g. 2.9, 3.0, 3.1 etc)
docstring_tokens: Converts the given branch from XY format to the X . Y format