Minor: Format code

pull/4422/head
Angel Fernando Quiroz Campos 3 years ago
parent 36e0313759
commit d03bd55ea4
  1. 5
      main/inc/lib/myspace.lib.php
  2. 6
      main/inc/lib/webservices/Rest.php
  3. 4
      plugin/userremoteservice/Entity/UserRemoteService.php
  4. 1
      plugin/userremoteservice/redirect.php
  5. 2
      plugin/userremoteservice/src/user_remote_service_plugin.class.php

@ -3250,11 +3250,6 @@ class MySpace
* Get all the data for the sortable table of the reporting progress of
* all users and all the courses the user is subscribed to.
*
* @param int $from
* @param int $numberItems
* @param int $column
* @param string $direction
*
* @return array
*/
public static function get_user_data_tracking_overview(int $from, int $numberItems, int $column, string $direction)

@ -1131,7 +1131,7 @@ class Rest extends WebService
}
/**
* Get one's own profile
* Get one's own profile.
*/
public function getUserProfile(): array
{
@ -1164,7 +1164,7 @@ class Rest extends WebService
}
/**
* Get one's own (avg) progress in learning paths
* Get one's own (avg) progress in learning paths.
*/
public function getCourseLpProgress(): array
{
@ -1295,7 +1295,7 @@ class Rest extends WebService
}
/**
* Start login for a user. Then make a redirect to show the learnpath
* Start login for a user. Then make a redirect to show the learnpath.
*/
public function showLearningPath(int $lpId)
{

@ -96,16 +96,17 @@ class UserRemoteService
return $this;
}
/**
* @return string
*/
public function getAccessURL($pluginName)
{
$accessUrl = api_get_path(WEB_PLUGIN_PATH).$pluginName."/redirect.php?serviceId=".$this->getId();
return $accessUrl;
}
/**
* Returns a user-specific URL, with two extra query string parameters : 'username' and 'hash'.
* 'hash' is generated using $salt and $userId.
@ -138,7 +139,6 @@ class UserRemoteService
);
}
/**
* Returns a user-specific URL, with two extra query string parameters : 'uid' and 'hash'.
* 'hash' is generated using $salt and $userId.

@ -11,4 +11,3 @@ $plugin = UserRemoteServicePlugin::create();
header('Location: '.$plugin->getActiveServiceSpecificUserUrl());
exit;

@ -70,7 +70,7 @@ class UserRemoteServicePlugin extends Plugin
}
/**
* @return boolean the value of hide_link_from_navigation_menu setting
* @return bool the value of hide_link_from_navigation_menu setting
*/
public function get_hide_link_from_navigation_menu()
{

Loading…
Cancel
Save