original_string: public function loadTable($table)
      {
          $file = $this->path . '/' . $table . '.json';
          if (is_file($file)) {
              $data = file_get_contents($file);
              if (!$data) {
                  return $this->blankTable();
              }
  
              if (!$data = @json_decode($data, true, 512)) {
                  throw new Exception("Unable to parse table file '{$table}.json'");
              }
  
              return  $data;
          }
  
          return $this->blankTable();
      }
code: public function loadTable($table)
      {
          $file = $this->path . '/' . $table . '.json';
          if (is_file($file)) {
              $data = file_get_contents($file);
              if (!$data) {
                  return $this->blankTable();
              }
  
              if (!$data = @json_decode($data, true, 512)) {
                  throw new Exception("Unable to parse table file '{$table}.json'");
              }
  
              return  $data;
          }
  
          return $this->blankTable();
      }
code_tokens: public function loadTable ( $ table ) { $ file = $ this -> path . '/' . $ table . '.json' ; if ( is_file ( $ file ) ) { $ data = file_get_contents ( $ file ) ; if ( ! $ data ) { return $ this -> blankTable ( ) ; } if ( ! $ data = @ json_decode ( $ data , true , 512 ) ) { throw new Exception ( "Unable to parse table file '{$table}.json'" ) ; } return $ data ; } return $ this -> blankTable ( ) ; }
docstring: Load table data
  
  @param  string $table
  @return array  $data
docstring_tokens: Load table data