original_string: private function edit()
      {
          $columns = [];
          $values = [];
          //
          if ($this->_tracked) {
              $this->edited_at = Time::current();
          }
          //
          foreach ($this->_columns as $value) {
              if ($value != $this->_keyName) {
                  $columns[] = $value;
                  $values[] = empty($this->$value) ? null : $this->$value;
              }
          }
          //
          return $this->update($columns, $values);
      }
code: private function edit()
      {
          $columns = [];
          $values = [];
          //
          if ($this->_tracked) {
              $this->edited_at = Time::current();
          }
          //
          foreach ($this->_columns as $value) {
              if ($value != $this->_keyName) {
                  $columns[] = $value;
                  $values[] = empty($this->$value) ? null : $this->$value;
              }
          }
          //
          return $this->update($columns, $values);
      }
code_tokens: private function edit ( ) { $ columns = [ ] ; $ values = [ ] ; // if ( $ this -> _tracked ) { $ this -> edited_at = Time :: current ( ) ; } // foreach ( $ this -> _columns as $ value ) { if ( $ value != $ this -> _keyName ) { $ columns [ ] = $ value ; $ values [ ] = empty ( $ this -> $ value ) ? null : $ this -> $ value ; } } // return $ this -> update ( $ columns , $ values ) ; }
docstring: function to edit data in data table.
  
  @return bool
docstring_tokens: function to edit data in data table .