original_string: public function cmdAddDatabase()
      {
          $table = $this->getParam(0);
          $data = $this->getOptions();
  
          if (empty($table) || empty($data)) {
              $this->errorAndExit($this->text('Invalid command'));
          }
  
          $this->line($this->db->insert($table, $data));
          $this->output();
      }
code: public function cmdAddDatabase()
      {
          $table = $this->getParam(0);
          $data = $this->getOptions();
  
          if (empty($table) || empty($data)) {
              $this->errorAndExit($this->text('Invalid command'));
          }
  
          $this->line($this->db->insert($table, $data));
          $this->output();
      }
code_tokens: public function cmdAddDatabase ( ) { $ table = $ this -> getParam ( 0 ) ; $ data = $ this -> getOptions ( ) ; if ( empty ( $ table ) || empty ( $ data ) ) { $ this -> errorAndExit ( $ this -> text ( 'Invalid command' ) ) ; } $ this -> line ( $ this -> db -> insert ( $ table , $ data ) ) ; $ this -> output ( ) ; }
docstring: Callback for "database-add" command
docstring_tokens: Callback for database - add command