original_string: public function checkSourceActive($userId)
      {
          $active = true;
  
          $values['gso_active'] = $active ? 1 : 0;
          $values['gso_status'] = $active ? 'Active' : 'Inactive';
  
          $this->_updateSource($values, $userId);
  
          return $active;
      }
code: public function checkSourceActive($userId)
      {
          $active = true;
  
          $values['gso_active'] = $active ? 1 : 0;
          $values['gso_status'] = $active ? 'Active' : 'Inactive';
  
          $this->_updateSource($values, $userId);
  
          return $active;
      }
code_tokens: public function checkSourceActive ( $ userId ) { $ active = true ; $ values [ 'gso_active' ] = $ active ? 1 : 0 ; $ values [ 'gso_status' ] = $ active ? 'Active' : 'Inactive' ; $ this -> _updateSource ( $ values , $ userId ) ; return $ active ; }
docstring: Checks wether this particular source is active or not and should handle updating the gems-db
  with the right information about this source
  
  @param int $userId    Id of the user who takes the action (for logging)
  @return boolean
docstring_tokens: Checks wether this particular source is active or not and should handle updating the gems - db with the right information about this source