Browse Source

Fix: PHP coding style problems

MOODLE_20_STABLE
bdaloukas 8 years ago
parent
commit
830567b24e
  1. 1
      bookquiz/questions.php
  2. 2
      db/createsnakes.php
  3. 3
      export.php
  4. 3
      preview.php
  5. 2
      report/default.php
  6. 2
      showanswers.php
  7. 3
      showattempts.php
  8. 3
      snakes/play.php
  9. 2
      sudoku/create.php
  10. 1
      sudoku/export.php
  11. 3
      translate.php

1
bookquiz/questions.php

@ -23,7 +23,6 @@
defined('MOODLE_INTERNAL') || die();
require_once("../../../config.php");
require_once( "../headergame.php");
require_once("../locallib.php");

2
db/createsnakes.php

@ -15,7 +15,7 @@
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
require( "../../../config.php");
require_login();
execute_sql("truncate TABLE {game_snakes_database}");
require( "importsnakes.php");

3
export.php

@ -21,7 +21,8 @@
* @package game
**/
require( '../../config.php');
defined('MOODLE_INTERNAL') || die();
ob_start();
require_once( $CFG->dirroot.'/lib/formslib.php');

3
preview.php

@ -22,6 +22,9 @@
**/
require_once("../../config.php");
require_login();
require_once("lib.php");
require_once("locallib.php");

2
report/default.php

@ -29,6 +29,8 @@
// Included by ../report.php.
defined('MOODLE_INTERNAL') || die();
class game_default_report {
public function display($cm, $course, $game) {

2
showanswers.php

@ -24,6 +24,8 @@
require_once("../../config.php");
require_once( "headergame.php");
require_login();
if (!has_capability('mod/game:viewreports', $context)) {
print_error( get_string( 'only_teachers', 'game'));
}

3
showattempts.php

@ -22,6 +22,9 @@
**/
require_once("../../config.php");
require_login();
require_once( "headergame.php");
if (!has_capability('mod/game:viewreports', $context)) {

3
snakes/play.php

@ -111,11 +111,12 @@ function game_snakes_play( $id, $game, $attempt, $snakes, $context) {
game_snakes_showdice( $snakes, $board);
}
?>
</td>
</tr>
</table>
<?php
<?php
if ($game->bottomtext != '') {
echo '<br>'.$game->bottomtext;
}

2
sudoku/create.php

@ -19,7 +19,7 @@ require_once("class.Sudoku.php");
require( '../header.php');
$action = optional_param('action', PARAM_ALPHA); // The action.
require_login();
if ($action == 'create') {
AppendSudokuB();
} else {

1
sudoku/export.php

@ -15,6 +15,7 @@
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
require( "../../../config.php");
require_login();
export();

3
translate.php

@ -21,6 +21,9 @@
* @package game
**/
require( "../../config.php");
require_login();
require( 'locallib.php');
?>

Loading…
Cancel
Save