original_string: private function get_system_ocs_client() {
          if ($this->systemocsclient === null) {
              try {
                  $systemoauth = $this->get_system_oauth_client();
                  if (!$systemoauth) {
                      return null;
                  }
                  $this->systemocsclient = new ocs_client($systemoauth);
              } catch (\moodle_exception $e) {
                  $this->systemocsclient = null;
              }
          }
          return $this->systemocsclient;
      }
code: private function get_system_ocs_client() {
          if ($this->systemocsclient === null) {
              try {
                  $systemoauth = $this->get_system_oauth_client();
                  if (!$systemoauth) {
                      return null;
                  }
                  $this->systemocsclient = new ocs_client($systemoauth);
              } catch (\moodle_exception $e) {
                  $this->systemocsclient = null;
              }
          }
          return $this->systemocsclient;
      }
code_tokens: private function get_system_ocs_client ( ) { if ( $ this -> systemocsclient === null ) { try { $ systemoauth = $ this -> get_system_oauth_client ( ) ; if ( ! $ systemoauth ) { return null ; } $ this -> systemocsclient = new ocs_client ( $ systemoauth ) ; } catch ( \ moodle_exception $ e ) { $ this -> systemocsclient = null ; } } return $ this -> systemocsclient ; }
docstring: Get or initialise an ocs client for the system account.
  
  @return null|ocs_client Null if initialisation was unsuccessful, otherwise an initialised client.
docstring_tokens: Get or initialise an ocs client for the system account .