original_string: public function getBranchesList($keep_asterisk = false)
      {
          $branchArray = explode("\n", $this->run("branch"));
          foreach ($branchArray as $i => &$branch) {
              $branch = trim($branch);
              if (! $keep_asterisk) {
                  $branch = str_replace("* ", "", $branch);
              }
              if ($branch == "") {
                  unset($branchArray[$i]);
              }
          }
          return $branchArray;
      }
code: public function getBranchesList($keep_asterisk = false)
      {
          $branchArray = explode("\n", $this->run("branch"));
          foreach ($branchArray as $i => &$branch) {
              $branch = trim($branch);
              if (! $keep_asterisk) {
                  $branch = str_replace("* ", "", $branch);
              }
              if ($branch == "") {
                  unset($branchArray[$i]);
              }
          }
          return $branchArray;
      }
code_tokens: public function getBranchesList ( $ keep_asterisk = false ) { $ branchArray = explode ( "\n" , $ this -> run ( "branch" ) ) ; foreach ( $ branchArray as $ i => & $ branch ) { $ branch = trim ( $ branch ) ; if ( ! $ keep_asterisk ) { $ branch = str_replace ( "* " , "" , $ branch ) ; } if ( $ branch == "" ) { unset ( $ branchArray [ $ i ] ) ; } } return $ branchArray ; }
docstring: Runs a `git branch` call
  
  @param   bool    $keep_asterisk keep asterisk mark on active branch
  @return  array
docstring_tokens: Runs a git branch call