Commit 8642b1b7 authored by Lückemeyer's avatar Lückemeyer
Browse files
1 merge request!1Coding style and recommendations
Showing with 15 additions and 11 deletions
+15 -11
No preview for this file type
......@@ -14,13 +14,6 @@
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/**
* provider for data privacy
*
* @package assignsubmission_dta
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
* @copyright Gero Lueckemeyer and student project teams
*/
namespace assignsubmission_dta\privacy;
use core_privacy\local\metadata\collection;
......@@ -44,7 +37,11 @@ class provider implements \core_privacy\local\metadata\provider,
*/
const ASSIGNSUBMISSION_DTA_FILEAREA_SUBMISSION = "submissions_dta";
public static function get_metadata(collection $collection): collection {
/**
* This is the metadata information for the assignsubmission_dta plugin.
* @param stdClass $collection the collection of metadata filled by the plugin
*/
public static function get_metadata(stdClass $collection): collection {
$collection->add_subsystem_link(
'core_files',
[],
......
......@@ -92,8 +92,8 @@ class DtaResult {
/**
* Returns the name of a state with the given number of display.
* @param $state number of the state
* @return name of state as defined
* @param int $state number of the state
* @return string name of state as defined
*/
public static function getstatename(int $state): string {
if ($state == 1) {
......@@ -188,7 +188,6 @@ class DtaResultSummary {
return $ret;
}
/**
* Returns the number of detail results attached to the summary.
* @return int count of occurences
......
......@@ -14,6 +14,14 @@
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/**
* persistence layer utility class
*
* @package assignsubmission_dta
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
* @copyright Gero Lueckemeyer and student project teams
*/
/**
* persistence layer utility class
*
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment