aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/helper.php2
-rw-r--r--xmlrpc-utils.php61
2 files changed, 29 insertions, 34 deletions
diff --git a/tests/helper.php b/tests/helper.php
index ff4cc05..5af6a9b 100644
--- a/tests/helper.php
+++ b/tests/helper.php
@@ -113,7 +113,7 @@ class qtype_algebra_test_helper extends question_test_helper {
$form->compareby = 'eval';
$form->nchecks = '10';
$form->tolerance = 0.001;
- $form->allowedfuncs = array{'all' => 1};
+ $form->allowedfuncs = array('all' => 1);
$form->disallow = '';
$form->answerprefix = '';
$form->answer = array('7*x', '*');
diff --git a/xmlrpc-utils.php b/xmlrpc-utils.php
index 7c0ad80..a324a74 100644
--- a/xmlrpc-utils.php
+++ b/xmlrpc-utils.php
@@ -19,40 +19,35 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
-defined('MOODLE_INTERNAL') || die();
-
-/**
- * This file was part of, or distributed with, libXMLRPC - a C library for
- * xml-encoded function calls.
- * Author: Dan Libby (dan@libby.com)
- * Epinions.com may be contacted at feedback@epinions-inc.com
- * It was adapted to Moodle standards and coding style
- */
-
-/*
- Copyright 2001 Epinions, Inc.
+// This file was part of, or distributed with, libXMLRPC - a C library for
+// xml-encoded function calls.
+// Author: Dan Libby (dan@libby.com)
+// Epinions.com may be contacted at feedback@epinions-inc.com
+// It was adapted to Moodle standards and coding style
+
+// Copyright 2001 Epinions, Inc.
+
+// Subject to the following 3 conditions, Epinions, Inc. permits you, free
+// of charge, to (a) use, copy, distribute, modify, perform and display this
+// software and associated documentation files (the "Software"), and (b)
+// permit others to whom the Software is furnished to do so as well.
+
+// 1) The above copyright notice and this permission notice shall be included
+// without modification in all copies or substantial portions of the
+// Software.
+
+// 2) THE SOFTWARE IS PROVIDED "AS IS", WITHOUT ANY WARRANTY OR CONDITION OF
+// ANY KIND, EXPRESS, IMPLIED OR STATUTORY, INCLUDING WITHOUT LIMITATION ANY
+// IMPLIED WARRANTIES OF ACCURACY, MERCHANTABILITY, FITNESS FOR A PARTICULAR
+// PURPOSE OR NONINFRINGEMENT.
+
+// 3) IN NO EVENT SHALL EPINIONS, INC. BE LIABLE FOR ANY DIRECT, INDIRECT,
+// SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES OR LOST PROFITS ARISING OUT
+// OF OR IN CONNECTION WITH THE SOFTWARE (HOWEVER ARISING, INCLUDING
+// NEGLIGENCE), EVEN IF EPINIONS, INC. IS AWARE OF THE POSSIBILITY OF SUCH
+// DAMAGES.
- Subject to the following 3 conditions, Epinions, Inc. permits you, free
- of charge, to (a) use, copy, distribute, modify, perform and display this
- software and associated documentation files (the "Software"), and (b)
- permit others to whom the Software is furnished to do so as well.
-
- 1) The above copyright notice and this permission notice shall be included
- without modification in all copies or substantial portions of the
- Software.
-
- 2) THE SOFTWARE IS PROVIDED "AS IS", WITHOUT ANY WARRANTY OR CONDITION OF
- ANY KIND, EXPRESS, IMPLIED OR STATUTORY, INCLUDING WITHOUT LIMITATION ANY
- IMPLIED WARRANTIES OF ACCURACY, MERCHANTABILITY, FITNESS FOR A PARTICULAR
- PURPOSE OR NONINFRINGEMENT.
-
- 3) IN NO EVENT SHALL EPINIONS, INC. BE LIABLE FOR ANY DIRECT, INDIRECT,
- SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES OR LOST PROFITS ARISING OUT
- OF OR IN CONNECTION WITH THE SOFTWARE (HOWEVER ARISING, INCLUDING
- NEGLIGENCE), EVEN IF EPINIONS, INC. IS AWARE OF THE POSSIBILITY OF SUCH
- DAMAGES.
-
-*/
+defined('MOODLE_INTERNAL') || die();
// Ensure extension is loaded.
if (!extension_loaded('xmlrpc')) {