diff --git a/cross/crossdb_class.php b/cross/crossdb_class.php
index 9d4abbc..aa9a41b 100644
--- a/cross/crossdb_class.php
+++ b/cross/crossdb_class.php
@@ -26,7 +26,7 @@
defined('MOODLE_INTERNAL') || die();
-/*
+/**
* This class is a cross that can load and save to a table
*
* @package mod_game
@@ -100,7 +100,7 @@ class CrossDB extends Cross {
* @param stdClass $crossrec
* @param boolean $onlyshow
* @param boolean $showsolution
- * @param $finishattempt
+ * @param boolean $finishattempt
* @param boolean $showhtmlsolutions
* @param string $language
* @param boolean $showstudentguess
diff --git a/cryptex/play.php b/cryptex/play.php
index cd8d1a4..122ee98 100644
--- a/cryptex/play.php
+++ b/cryptex/play.php
@@ -17,8 +17,9 @@
/**
* This page plays the cryptex game
*
- * @author bdaloukas
- * @package game
+ * @package mod_game
+ * @copyright 2007 Vasilis Daloukas
+ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
**/
defined('MOODLE_INTERNAL') || die();
@@ -30,7 +31,7 @@ require_once( "cryptexdb_class.php");
*
* @param int $id
* @param stdClass $game
- * @param stdClass $atttempt
+ * @param stdClass $attempt
* @param stdClass $cryptexrec
* @param boolean $endofgame
* @param stdClass $context
@@ -114,7 +115,7 @@ function game_cryptex_continue( $id, $game, $attempt, $cryptexrec, $endofgame, $
*
* @param int $id
* @param stdClass $game
- * @param stdClass $atttempt
+ * @param stdClass $attempt
* @param stdClass $cryptexrec
* @param int $q (The q means game_queries.id).
* @param stdClass $answer
@@ -170,7 +171,7 @@ function game_cryptex_check( $id, $game, $attempt, $cryptexrec, $q, $answer, $fi
*
* @param int $id
* @param stdClass $game
- * @param stdClass $atttempt
+ * @param stdClass $attempt
* @param stdClass $cryptexrec
* @param stdClass $crosssm
* @param boolean $updateattempt
@@ -407,7 +408,7 @@ if ($print) {
*
* @param int $id
* @param stdClass $game
- * @param stdClass $atttempt
+ * @param stdClass $attempt
* @param stdClass $cryptexrec
*/
function game_cryptex_onfinished( $id, $game, $attempt, $cryptexrec) {
diff --git a/db/importsnakes.php b/db/importsnakes.php
index 9b90cba..e64e827 100644
--- a/db/importsnakes.php
+++ b/db/importsnakes.php
@@ -69,10 +69,10 @@ function game_importsnakes() {
}
/**
- * Insert one board to database
- *
- * @param stdClass $newrec
- */
+ * Insert one board to database
+ *
+ * @param stdClass $newrec
+ */
function game_importsnakes_do( $newrec) {
global $DB;
diff --git a/db/upgrade.php b/db/upgrade.php
index f80dd07..12dd2d1 100644
--- a/db/upgrade.php
+++ b/db/upgrade.php
@@ -44,7 +44,7 @@ defined('MOODLE_INTERNAL') || die();
/**
* Upgrades database
*
- * @param $oldversion
+ * @param int $oldversion
*/
function xmldb_game_upgrade($oldversion) {
diff --git a/export/exportjavame.php b/export/exportjavame.php
index 886fb14..27ab5ea 100644
--- a/export/exportjavame.php
+++ b/export/exportjavame.php
@@ -196,7 +196,7 @@ function game_exportjavame_exportdata_hangmanp( $src, $destmobiledir, $destdir,
*
* @param stdClas $game
* @param stdClass $context
- * @param boolean $exportattachments
+ * @param boolean $exportattachment
* @param string $dest
* @param array $files
*/
@@ -304,7 +304,7 @@ function game_exmportjavame_getanswers_question_select( $game, $context, $table,
*
* @param stdClass $game
* @param stdClass $context
- * @param boolean $exportattachments
+ * @param boolean $exportattachment
* @param string $destdir
* @param array $files
*/
diff --git a/export/html/snakes/js/snakes-mod.js b/export/html/snakes/js/snakes-mod.js
index 01661b6..a8ec152 100644
--- a/export/html/snakes/js/snakes-mod.js
+++ b/export/html/snakes/js/snakes-mod.js
@@ -3,8 +3,6 @@ Husain Limdiyawala(MSc IT DA-IICT) */
// Global Variables.
var totblocks = 0;
-var data = "";
-var currentblock = 0;
var lastposition = new Array();
var randomno = 0;
var tots = new Array();
@@ -78,7 +76,9 @@ function snakescheck(k) {
for(i = 0; i <= srcsnake.length; i++) {
if (srcsnake[i] == tots[k]) {
- alert("Ωχ! Σε τσίμπησε φίδι στο τετράγωνο " + srcsnake[i] + " και θα πρέπει να γυρίσεις στο τετράγωνο " + destsnake[i] + ", εκτός κι αν απαντήσεις σωστά στην ερώτηση που ακολουθεί.");
+ var s = "Ωχ! Σε τσίμπησε φίδι στο τετράγωνο " + srcsnake[i] + " και θα πρέπει να γυρίσεις στο τετράγωνο " + destsnake[i];
+ s = s + ", εκτός κι αν απαντήσεις σωστά στην ερώτηση που ακολουθεί.";
+ alert( s);
document.getElementById(destsnake[i]).style.background = "url(images/pawn1.png)";
document.getElementById(tots[k]).style.background = "url(images/square52.png)";
lastposition[k] = destsnake[i];
@@ -111,22 +111,6 @@ function laddercheck(k) {
}
}
-// The below function will register a snake.
-function registerSnake(tp, lft, dv, src, dest, i) {
- document.getElementById(dv).style.top = tp + "px";
- document.getElementById(dv).style.left = lft + "px";
- srcsnake[i] = src;
- destsnake[i] = dest;
-}
-
-// The below function will register a ladder.
-function registerLadder(tp, lft, dv, src, dest, i) {
- document.getElementById(dv).style.top = tp + "px";
- document.getElementById(dv).style.left = lft + "px";
- ladsrc[i] = src;
- laddest[i] = dest;
-}
-
// The below function regulates the play.
function doit(i) {
throwDice(i);
@@ -146,29 +130,3 @@ function checkWin(i) {
return true;
}
}
-
-// The below function will disable both the combobox .
-function disableField() {
- document.getElementById("players").disabled = "disabled";
- document.getElementById("boardtype").disabled = "disabled";
-}
-
-function question() {
- var picked, q1;
-
- picked = selectQuest(allQuest);
- alert("Randomly selected number:" + picked);
- q1 = prompt(quest[picked * 4], "Απάντηση");
- if (q1 == quest[picked * 4 + 1]) {
- alert("Σωστά!");
- doit(l);
-
- coranswered.concat(quest.splice(picked * 4, 4));
- } else {
- alert("Η απάντηση δεν ήταν σωστή. Χάνεις τη σειρά σου για αυτό το γύρο!");
- wroanswered.concat(quest.splice(picked * 4, 4));
- }
-
- // Remove question and answers from available questions - (thus not allowing to have a Repeated question).
- allQuest--;
-}
diff --git a/hiddenpicture/play.php b/hiddenpicture/play.php
index 5e3ebc7..2c9a6e4 100644
--- a/hiddenpicture/play.php
+++ b/hiddenpicture/play.php
@@ -233,12 +233,12 @@ function game_hiddenpicture_selectglossaryentry( $game, $attempt) {
/**
* Plays the game "Hidden picture"
*
- * @param $id
- * @param $game
- * @param $attempt
- * @param $hiddenpicture
- * @param $showsolution
- * @param $context
+ * @param int $id
+ * @param stdClass $game
+ * @param stdClass $attempt
+ * @param stdClass $hiddenpicture
+ * @param boolean $showsolution
+ * @param stdClass $context
*/
function game_hiddenpicture_play( $id, $game, $attempt, $hiddenpicture, $showsolution, $context) {
if ($game->toptext != '') {
@@ -276,8 +276,8 @@ function game_hiddenpicture_play( $id, $game, $attempt, $hiddenpicture, $showsol
/**
* "Hidden picture" compute score
*
- * @param $game
- * @param $hiddenpicture
+ * @param stdClass $game
+ * @param stdClass $hiddenpicture
*/
function game_hidden_picture_computescore( $game, $hiddenpicture) {
$correct = $hiddenpicture->correct;
@@ -298,11 +298,11 @@ function game_hidden_picture_computescore( $game, $hiddenpicture) {
/**
* Show hidden picture
*
- * @param $id
- * @param $game
- * @param $attempt
- * @param $hiddenpicture
- * @param $showsolution
+ * @param int $id
+ * @param stdClass $game
+ * @param stdClass $attempt
+ * @param stdClass $hiddenpicture
+ * @param boolean $showsolution
*/
function game_hiddenpicture_showhiddenpicture( $id, $game, $attempt, $hiddenpicture, $showsolution,
$offsetquestions, $correctquestions) {
@@ -335,9 +335,9 @@ function game_hiddenpicture_showhiddenpicture( $id, $game, $attempt, $hiddenpict
/**
* hidden picture. show question glossary
*
- * @param $game
- * @param $id
- * @param $query
+ * @param stdClass $game
+ * @param int $id
+ * @param stdClass $query
*/
function game_hiddenpicture_showquestion_glossary( $game, $id, $query) {
global $CFG, $DB;
@@ -373,12 +373,12 @@ function game_hiddenpicture_showquestion_glossary( $game, $id, $query) {
/**
* Check main question
*
- * @param $id
- * @param $game
- * @param $attempt
- * @param $hiddenpicture
- * @param $finishattempt
- * @param $context
+ * @param int $id
+ * @param stdClass $game
+ * @param stdClass $attempt
+ * @param stdClass $hiddenpicture
+ * @param boolean $finishattempt
+ * @param stdClass $context
*/
function game_hiddenpicture_check_mainquestion( $id, $game, &$attempt, &$hiddenpicture, $finishattempt, $context) {
global $CFG, $DB;
@@ -448,13 +448,13 @@ function game_hiddenpicture_check_mainquestion( $id, $game, &$attempt, &$hiddenp
/**
* Show picture
*
- * @param $id
- * @param $game
- * @param $attempt
- * @param $query
- * @param $cells
- * @param $foundcells
- * @param $usemap
+ * @param int $id
+ * @param stdClass $game
+ * @param stdClass $attempt
+ * @param stdClass $query
+ * @param object $cells
+ * @param int $foundcells
+ * @param boolean $usemap
*/
function game_showpicture( $id, $game, $attempt, $query, $cells, $foundcells, $usemap) {
global $CFG;
diff --git a/lib.php b/lib.php
index 2f375e5..6cedaeb 100644
--- a/lib.php
+++ b/lib.php
@@ -665,7 +665,7 @@ function game_print_recent_mod_activity($activity, $courseid, $detail, $modnames
*
* @param int $courseid
* @param string optional $type
- */
+ **/
function game_reset_gradebook($courseid, $type='') {
global $DB;
@@ -1147,7 +1147,7 @@ if (defined('USE_GET_SHORTCUTS')) {
* @param stdClass $course
* @param stdClass $cm
* @param stdClass $context
- * @param string filearea
+ * @param string $filearea
* @param array $args
* @param boolean $forcedownload
*
@@ -1412,7 +1412,8 @@ function game_get_context_module_instance( $moduleid) {
*
* This is used to find out if scale used anywhere
*
- * @param int $moduleid
+ * @param int $courseid
+ *
* @return stdClass context
*/
function game_get_context_course_instance( $courseid) {
@@ -1427,7 +1428,8 @@ function game_get_context_course_instance( $courseid) {
* Returns the url of a pix file. Is the same for all versions of Moodle.
*
* @param string $filename
- * @param string module
+ * @param string $module
+ *
* @return stdClass url
*/
function game_pix_url( $filename, $module='') {
diff --git a/locallib.php b/locallib.php
index c7bb648..684eda3 100644
--- a/locallib.php
+++ b/locallib.php
@@ -315,7 +315,7 @@ function game_question_shortanswer_question( $game, $allowspaces, $userepetition
* @param string $table
* @param string $select
* @param string $idfields
- * @param boolean userepetitions
+ * @param boolean $userepetitions
*
* @return stdClass the random question
*/
@@ -427,7 +427,7 @@ function game_update_repetitions( $gameid, $userid, $questionid, $glossaryentryi
* Select random questions for Sudoku.
*
* @param stdClass $game
- * @param int count
+ * @param int $count
*
* @return stdClass the random record(s)
*/
@@ -641,7 +641,7 @@ function game_getallletters( $word, $lang='', $userlanguage='') {
* true if exist all the letters
*
* @param string $str
- * @param string $strfile
+ * @param string $strfind
*
* @return the letters detected
*/
@@ -1133,7 +1133,7 @@ function game_get_best_grade($game, $userid) {
* Converts score to grade
*
* @param float $score
- * @param float $grade
+ * @param stdClass $game
*
* @return float the user's current grade for this game.
*/
@@ -1150,8 +1150,7 @@ function game_score_to_grade($score, $game) {
*
* @param object $game the game instance.
* @param object $attempt the attempt in question.
- * @param $context the roles and permissions context,
- * normally the context for the game module instance.
+ * @param $context the roles and permissions context, for game module instance
*
* @return object an object with boolean fields responses, scores, feedback,
* correct_responses, solutions and general feedback
@@ -1229,8 +1228,7 @@ function game_compute_attempt_layout( $game, &$attempt) {
*
* @param object $game the game instance.
* @param array $attempts an array of attempt objects.
- * @param $context the roles and permissions context,
- * normally the context for the game module instance.
+ * @param $context the roles and permissions context, the game instance
*
* @return array of two options objects, one showing which options are true for
* at least one of the attempts, the other showing which options are true
@@ -1257,8 +1255,8 @@ function game_get_combined_reviewoptions($game, $attempts, $context=null) {
/**
* Save the overall grade for a user at a game in the game_grades table
*
- * @param object $quiz The game for which the best grade is to be calculated and then saved.
- * @param integer $userid The userid to calculate the grade for. Defaults to the current user.
+ * @param object $game The game for which the best grade is to be calculated and then saved.
+ *
* @return boolean Indicates success or failure.
*/
function game_save_best_score($game) {
@@ -1382,7 +1380,7 @@ function game_calculate_best_attempt($game, $attempts) {
/**
* get questions for sudoku
*
- * @param $questionlist
+ * @param string $questionlist
*/
function game_sudoku_getquestions( $questionlist) {
global $CFG, $DB;
@@ -1715,7 +1713,7 @@ function game_right_to_left( $lang) {
* Compute reverse print
*
* @param stdClass $attempt
- * @param string $wordctrl
+ * @param string $wordrtl
* @param boolean $reverseprint
*/
function game_compute_reserve_print( $attempt, &$wordrtl, &$reverseprint) {
@@ -2212,7 +2210,7 @@ function game_get_string_lang( $identifier, $module, $lang) {
* Get string from file
*
* @param string $identifier
- * @param string $lanfile
+ * @param string $langfile
* @param string $destination
*/
function get_string_from_file($identifier, $langfile, $destination) {
@@ -2288,7 +2286,7 @@ function game_get_contexts() {
* @param int $id
* @param string $line
* @param string $destdir
- * @pram array $files
+ * @param array $files
*/
function game_export_split_files( $courseid, $context, $filearea, $id, $line, $destdir, &$files) {
global $CFG, $DB;
diff --git a/millionaire/play.php b/millionaire/play.php
index 663514e..c1c5b1a 100644
--- a/millionaire/play.php
+++ b/millionaire/play.php
@@ -340,7 +340,7 @@ function game_millionaire_shownextquestion( $id, $game, $attempt, $millionaire,
/**
* Updates tables: games_millionaire, game_attempts, game_questions.
*
- * @param string $answer
+ * @param array $aanswer
* @param stdClass $game
* @param stdClasss $attempt
* @param stdClass $millionaire
diff --git a/print.php b/print.php
index 1caf1d4..86ff839 100644
--- a/print.php
+++ b/print.php
@@ -55,9 +55,9 @@ function game_print( $game, $update, $context) {
/**
* Prints a cross.
*
- * @param $game
- @param $update
- * @param $context
+ * @param stdClass $game
+ @param boolean $update
+ * @param stdClass $context
*/
function game_print_cross( $game, $update, $context) {
require( "cross/play.php");
diff --git a/report/overview/report.php b/report/overview/report.php
index 5eaa785..5ace85d 100644
--- a/report/overview/report.php
+++ b/report/overview/report.php
@@ -14,7 +14,7 @@
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see .
-/*
+/**
* This script lists student attempts.
*
* @package mod_game
diff --git a/showanswers.php b/showanswers.php
index 54de043..581885a 100644
--- a/showanswers.php
+++ b/showanswers.php
@@ -486,7 +486,7 @@ function game_showanswers_glossary( $game) {
/**
* Show answers bookquiz
*
- * @param $game
+ * @param stdClass $game
*/
function game_showanswers_bookquiz( $game, $context) {
global $CFG;
diff --git a/showattempts.php b/showattempts.php
index 7248648..72cbeb4 100644
--- a/showattempts.php
+++ b/showattempts.php
@@ -50,7 +50,7 @@ echo $OUTPUT->footer();
/**
* Show users
*
- * @param $game
+ * @param stdClass $game
*/
function game_showusers($game) {
global $CFG, $USER, $DB;
@@ -122,7 +122,7 @@ function game_showusers($game) {
/**
* Show groups
*
- * @param $game
+ * @param stdClass $game
*/
function game_showgroups($game) {
global $CFG, $USER, $DB;
@@ -180,7 +180,7 @@ function game_showgroups($game) {
/**
* Show attempts
*
- * @param $game
+ * @param stdClass $game
*/
function game_showattempts($game) {
global $CFG, $DB, $OUTPUT;
@@ -282,7 +282,7 @@ function game_showattempts($game) {
/**
* One delete attempt
*
- * @param $game
+ * @param stdClass $game
*/
function game_ondeleteattempt( $game) {
global $CFG, $DB;
diff --git a/snakes/createboard.php b/snakes/createboard.php
index d1176c3..a8d0079 100644
--- a/snakes/createboard.php
+++ b/snakes/createboard.php
@@ -27,11 +27,11 @@ defined('MOODLE_INTERNAL') || die();
/**
* Create snakes board
*
- * @param $imageasstring
- * @param $colsx
- * @param $colsy
- * @param $ofstop
- * @param $ofsbottom
+ * @param string $imageasstring
+ * @param int $colsx
+ * @param int $colsy
+ * @param int $ofstop
+ * @param int $ofsbottom
*/
function game_createsnakesboard($imageasstring, $colsx, $colsy, $ofstop, $ofsbottom,
$ofsright, $ofsleft, $board, $setwidth, $setheight) {
@@ -97,11 +97,11 @@ function game_createsnakesboard($imageasstring, $colsx, $colsy, $ofstop, $ofsbot
/**
* Compute coordinates
*
- * @param $pos
- * @param $x
- * @param $y
- * @param $colsx
- * @param $colsy
+ * @param int $pos
+ * @param int $x
+ * @param int $y
+ * @param int $colsx
+ * @param int $colsy
*/
function computexy( $pos, &$x, &$y, $colsx, $colsy) {
$x = ($pos - 1) % $colsx;
@@ -114,14 +114,14 @@ function computexy( $pos, &$x, &$y, $colsx, $colsy) {
/**
* Make board
*
- * @param $im
- * @param $cs
- * @param $cy
- * @param $board
- * @param $colsx
- * @param $colsy
- * @param $ofsleft
- * @param $ofstop
+ * @param object $im
+ * @param int $cs
+ * @param int $cy
+ * @param $object $board
+ * @param int $colsx
+ * @param int $colsy
+ * @param int $ofsleft
+ * @param int $ofstop
*/
function makeboard( $im, $dir, $cx, $cy, $board, $colsx, $colsy, $ofsleft, $ofstop) {
$a = explode( ',', $board);
@@ -138,14 +138,14 @@ function makeboard( $im, $dir, $cx, $cy, $board, $colsx, $colsy, $ofsleft, $ofst
/**
* Make board ladders
*
- * @param $im
- * @param $dir
- * @param $cx
- * @param $s
- * @param $colsx
- * @param $colsy
- * @param $ofsleft
- * @param $ofstop
+ * @param object $im
+ * @param string $dir
+ * @param int $cx
+ * @param string $s
+ * @param int $colsx
+ * @param int $colsy
+ * @param int $ofsleft
+ * @param int $ofstop
*/
function makeboardl( $im, $dir, $cx, $cy, $s, $colsx, $colsy, $ofsleft, $ofstop) {
$pos = strpos( $s, '-');
@@ -207,15 +207,15 @@ function makeboardl( $im, $dir, $cx, $cy, $s, $colsx, $colsy, $ofsleft, $ofstop)
/**
* Make board snakes
*
- * @param $im
- * @param $dit
- * @param $cx
- * @param $cy
- * @param $s
- * @param $colsx
- * @param $colsy
- * @param $ofsleft
- * @param $ofstop
+ * @param object $im
+ * @param string $dit
+ * @param int $cx
+ * @param int $cy
+ * @param string $s
+ * @param int $colsx
+ * @param int $colsy
+ * @param int $ofsleft
+ * @param int $ofstop
*/
function makeboards( $im, $dir, $cx, $cy, $s, $colsx, $colsy, $ofsleft, $ofstop) {
$pos = strpos( $s, '-');
@@ -297,7 +297,7 @@ function makeboards( $im, $dir, $cx, $cy, $s, $colsx, $colsy, $ofsleft, $ofstop)
/**
* Image create from png
*
- * @param $file
+ * @param string $file
*/
function game_imagecreatefrompng( $file) {
if (file_exists( $file)) {
@@ -310,14 +310,14 @@ function game_imagecreatefrompng( $file) {
/**
* Show number
*
- * @param $imghandle
- * @param $imgnumbers
- * @param $number
- * @param $x1
- * @param $y1
- * @param $width
- * @param $height
- * @param $sizenumbers
+ * @param int $imghandle
+ * @param string $imgnumbers
+ * @param int $number
+ * @param int $x1
+ * @param int $y1
+ * @param int $width
+ * @param int $height
+ * @param int $sizenumbers
*/
function shownumber( $imghandle, $imgnumbers, $number, $x1 , $y1, $width, $height, $sizenumbers) {
if ($number < 10) {
@@ -341,11 +341,11 @@ function shownumber( $imghandle, $imgnumbers, $number, $x1 , $y1, $width, $heigh
/**
* Return rotated point
*
- * @param $x
- * @param $y
- * @param $cx
- * @param $cy
- * @param $a
+ * @param int $x
+ * @param int $y
+ * @param int $cx
+ * @param int $cy
+ * @param float $a
*/
function returnrotatedpoint($x, $y, $cx, $cy, $a) {
// Radius using distance formula.
@@ -364,14 +364,14 @@ function returnrotatedpoint($x, $y, $cx, $cy, $a) {
/**
* Print ladder
*
- * @param $im
- * @param $file
- * @param $x
- * @param $y
- * @param $width
- * @param $height
- * @param $cellx
- * @param $celly
+ * @param int $im
+ * @param string $file
+ * @param int $x
+ * @param int $y
+ * @param int $width
+ * @param int $height
+ * @param int $cellx
+ * @param int $celly
*/
function game_printladder( $im, $file, $x, $y, $width, $height, $cellx, $celly) {
$color = imagecolorallocate($im, 0, 0, 255);
@@ -393,14 +393,14 @@ function game_printladder( $im, $file, $x, $y, $width, $height, $cellx, $celly)
/**
* Print snake
*
- * @param $im
- * @param $file
- * @param $x
- * @param $y
- * @param $width
- * @param $height
- * @param $cellx
- * @param $celly
+ * @param int $im
+ * @param string $file
+ * @param int $x
+ * @param int $y
+ * @param int $width
+ * @param int $height
+ * @param int $cellx
+ * @param int $celly
*/
function game_printsnake( $im, $file, $x, $y, $width, $height, $cellx, $celly) {
$color = imagecolorallocate($im, 0, 255, 0);
diff --git a/snakes/play.php b/snakes/play.php
index bba3bc3..06f1d6a 100644
--- a/snakes/play.php
+++ b/snakes/play.php
@@ -149,6 +149,12 @@ function game_snakes_play( $id, $game, $attempt, $snakes, $context) {
}
}
+/**
+ * Show dice
+ *
+ * @param stdClass $snake
+ * @param boolean $board
+ */
function game_snakes_showdice( $snakes, $board) {
$pos = game_snakes_computeplayerposition( $snakes, $board);
?>
@@ -207,7 +213,7 @@ function game_snakes_computeplayerposition( $snakes, $board) {
*
* @param stdClass $game
* @param stdClass $snakes
- * @param stdClass $quert
+ * @param stdClass $query
*/
function game_snakes_computenextquestion( $game, &$snakes, &$query) {
global $DB, $USER;
@@ -451,7 +457,7 @@ function game_snakes_check_glossary( $id, $game, $attempt, $snakes, $context) {
* @param stdClass $game
* @param stdClass $attempt
* @param stdClass $snakes
- * @param $correct
+ * @param boolean $correct
* @param stsdClass $correct
* @param stdClasss $query
* @param stdClass $context
@@ -497,7 +503,7 @@ function game_snakes_position( $id, $game, $attempt, $snakes, $correct, $query,
* In lander go forward.
*
* @param int $position
- * @param $data
+ * @param string $data
*/
function game_snakes_foundlander( $position, $data) {
preg_match( "/L$position-([0-9]*)/", $data, $matches);
@@ -513,7 +519,7 @@ function game_snakes_foundlander( $position, $data) {
* In snake go backward.
*
* @param int $position
- * @param $data
+ * @param string $data
*/
function game_snakes_foundsnake( $position, $data) {
preg_match( "/S([0-9]*)-$position,/", $data.',', $matches);
diff --git a/sudoku/sdd/class.logfile.php b/sudoku/sdd/class.logfile.php
deleted file mode 100644
index b4f6ee9..0000000
--- a/sudoku/sdd/class.logfile.php
+++ /dev/null
@@ -1,85 +0,0 @@
-.
-
-/**
- * @author Dick Munroe
- * @copyright copyright @ by Dick Munroe, 2004
- * @license http://opensource.org/licenses/gpl-license.php GNU Public License
- * @package StructuredDataDumper
- */
-
-/*
- * Edit History:
- *
- * Dick Munroe munroe@cworks.com 23-Dec-2004
- * Initial version created/
- */
-
-defined('MOODLE_INTERNAL') || die();
-
-require_once('SDD/class.SDD.php');
-
-/**
- * log file
- *
- * @package mod_game
- * @copyright 2014 Vasilis Daloukas
- * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
- */
-class logfile extends SDD {
-
- /*
- * The open file handle.
- *
- * @access private
- */
-
- protected $m_handle;
-
- /**
- * Constructor
- *
- * @param $thefilename
- */
- public function init($thefilename) {
- if (file_exists($thefilename)) {
- $this->m_handle = fopen($thefilename, 'a');
- } else {
- $this->m_handle = fopen($thefilename, 'w');
- }
- }
-
- /**
- * Close
- *
- * @param $thefilename
- */
- public function close() {
- fclose($this->m_handle);
- }
-
- /*
- * Write a debugging value to a log file.
- *
- * @access public
- * @abstract
- * @param mixed Data to be logged.
- * @return integer number of bytes written to the log.
- */
- public function log(&$thedata) {
- return fwrite($this->m_handle, date('[Y-m-d H:i:s]: ') . $this->dump($thedata) . "\n");
- }
-}
diff --git a/translate.php b/translate.php
index 7c08434..d2f17d6 100644
--- a/translate.php
+++ b/translate.php
@@ -256,7 +256,7 @@ if ($ret != '') {
* Returns the language file for lang
*
* @param string $lang
- * @param string module
+ *
* @return the path of language file
*/
function getlangfile( $lang) {
@@ -309,7 +309,7 @@ function readlangfile( $lang, &$header) {
*
* @param string $line
* @param string $name
- * @return string $trans
+ * @param string $trans
*/
function splitlangdefinition($line, &$name, &$trans) {
$pos1 = strpos( $line, '=');
@@ -475,11 +475,11 @@ function read_dir($dir, $ext) {
*
* @param string $en
* @param string $lang
- * @param $strings
- * @param $langfile
- * @param $sum
- * @param $outdir
- * @param $utranslated
+ * @param string $strings
+ * @param string $langfile
+ * @param int $sum
+ * @param string $outdir
+ * @param int $utranslated
*/
function computediff( $en, $lang, $strings, $langname, &$sum, $outdir, &$untranslated) {
global $CFG;