Minor - Flint fixes

pull/3732/head
Angel Fernando Quiroz Campos 5 years ago
parent 6f7ee3d976
commit d247d67971
  1. 2
      index.php
  2. 2
      main/exercise/exercise.class.php
  3. 2
      main/gradebook/lib/be/category.class.php
  4. 2
      main/inc/lib/usermanager.lib.php
  5. 6
      main/install/install.lib.php
  6. 4
      main/lp/aicc.class.php
  7. 2
      main/lp/lp_add_author.php
  8. 2
      main/messages/new_message.php
  9. 2
      main/mySpace/calendar_plan.php
  10. 2
      main/permissions/permissions_functions.inc.php
  11. 2
      main/survey/generate_link.php
  12. 2
      main/tracking/course_log_resources.php
  13. 2
      main/webservices/example_fill_users_fields.php
  14. 4
      main/webservices/http-auth.php
  15. 4
      main/webservices/registration.soap.php
  16. 3
      main/webservices/soap.test.php
  17. 2
      main/webservices/webservice-auth-ip.conf.dist.php
  18. 22
      main/wiki/wiki.inc.php
  19. 2
      plugin/advanced_subscription/install.php
  20. 2
      plugin/advanced_subscription/src/open_session.php
  21. 2
      plugin/advanced_subscription/uninstall.php
  22. 2
      plugin/azure_active_directory/install.php
  23. 2
      plugin/bbb/update.php
  24. 2
      plugin/buycourses/database.php
  25. 2
      plugin/buycourses/install.php
  26. 2
      plugin/buycourses/update.php
  27. 2
      plugin/card_game/install.php
  28. 2
      plugin/card_game/uninstall.php
  29. 2
      plugin/check_extra_field_author_company/install.php
  30. 2
      plugin/check_extra_field_author_company/uninstall.php
  31. 2
      plugin/courseblock/install.php
  32. 2
      plugin/courselegal/install.php
  33. 2
      plugin/customcertificate/database.php
  34. 2
      plugin/customcertificate/install.php
  35. 2
      plugin/customcertificate/update.php
  36. 2
      plugin/dictionary/install.php
  37. 2
      plugin/exercise_signature/install.php
  38. 2
      plugin/exercise_signature/uninstall.php
  39. 1
      plugin/google_meet/meets.php
  40. 2
      plugin/h5p/install.php
  41. 2
      plugin/h5p/uninstall.php
  42. 2
      plugin/jcapture/action.php
  43. 2
      plugin/learning_calendar/install.php
  44. 2
      plugin/migrationmoodle/src/Transformer/Property/SectionSequenceLookup.php
  45. 2
      plugin/mindmap/install.php
  46. 2
      plugin/mindmap/uninstall.php
  47. 2
      plugin/notebookteacher/database.php
  48. 2
      plugin/notebookteacher/install.php
  49. 2
      plugin/notebookteacher/update.php
  50. 2
      plugin/oauth2/install.php
  51. 3
      plugin/openmeetings/lang/french.php
  52. 3
      plugin/openmeetings/lang/spanish.php
  53. 4
      plugin/openmeetings/lib/openmeetings.class.php
  54. 2
      plugin/openmeetings/lib/openmeetings_rest_service.php
  55. 2
      plugin/pausetraining/install.php
  56. 2
      plugin/sepe/database.php
  57. 2
      plugin/sepe/install.php
  58. 2
      plugin/sepe/update.php
  59. 2
      plugin/test2pdf/install.php
  60. 2
      plugin/vchamilo/lib/Virtual.php
  61. 4
      plugin/vchamilo/vcron.php
  62. 4
      plugin/vchamilo/views/manage.controller.php
  63. 2
      plugin/vchamilo/views/manage.testcnx.php
  64. 2
      plugin/whispeakauth/Entity/LogEvent.php
  65. 6
      plugin/whispeakauth/Request/ApiRequest.php
  66. 2
      plugin/whispeakauth/ajax/record_audio.php
  67. 6
      plugin/xapi/php-xapi/lrs-bundle/src/Controller/StatementGetController.php
  68. 2
      plugin/xapi/src/XApiPlugin.php
  69. 3
      plugin/zoom/Entity/Meeting.php
  70. 2
      plugin/zoom/install.php
  71. 2
      plugin/zoom/uninstall.php

@ -56,7 +56,7 @@ if (isset($_GET['submitAuth']) && $_GET['submitAuth'] == 1) {
);
echo 'Attempted breakin - sysadmins notified.';
session_destroy();
die();
exit();
}
// Delete session item necessary to check for legal terms
if (api_get_setting('allow_terms_conditions') === 'true') {

@ -4261,7 +4261,7 @@ class Exercise
$studentAnswerToShow = $studentAnswer;
if (empty($studentAnswer)) {
continue;
break;
}
if ($debug) {

@ -2350,7 +2350,7 @@ class Category implements GradebookItem
*/
public static function userFinishedCourse(
$userId,
\Category $category,
Category $category,
$recalculateScore = false
) {
if (empty($category)) {

@ -5689,8 +5689,6 @@ class UserManager
/**
* Return the user id of teacher or session administrator.
*
* @param array $courseInfo
*
* @return int|bool The user id, or false if the session ID was negative
*/
public static function get_user_id_of_course_admin_or_session_admin(array $courseInfo)

@ -1590,19 +1590,19 @@ function display_database_settings_form(
$database_exists_text = $e->getMessage();
}
if ($manager && $manager->getConnection()->isConnected()): ?>
if ($manager && $manager->getConnection()->isConnected()) { ?>
<?php echo $database_exists_text; ?>
<div id="db_status" class="alert alert-success">
Database host: <strong><?php echo $manager->getConnection()->getHost(); ?></strong><br/>
Database port: <strong><?php echo $manager->getConnection()->getPort(); ?></strong><br/>
Database driver: <strong><?php echo $manager->getConnection()->getDriver()->getName(); ?></strong><br/>
</div>
<?php else: ?>
<?php } else { ?>
<div id="db_status" class="alert alert-danger">
<p><?php echo get_lang('FailedConectionDatabase'); ?></strong></p>
<code><?php echo $database_exists_text; ?></code>
</div>
<?php endif; ?>
<?php } ?>
<div class="form-group">
<div class="col-sm-6">
<button type="submit" name="step2" class="btn btn-default pull-right" value="&lt; <?php echo get_lang('Previous'); ?>" >

@ -1013,7 +1013,7 @@ class aicc extends learnpath
break;
case "\r":
if (!$enclosed && $data[$i + 1] == "\n") {
continue;
break;
}
// no break
case "\n":
@ -1027,7 +1027,7 @@ class aicc extends learnpath
break;
case "\\r":
if (!$enclosed && $data[$i + 1] == "\\n") {
continue;
break;
}
// no break
case "\\n":

@ -393,7 +393,7 @@ if ($form->validate()) {
Session::write('message', implode(' / ', $sms));
}
echo "<script>window.location.replace(\"$currentUrl\");</script>";
die();
exit();
}
}
}

@ -169,7 +169,7 @@ function manageForm($default, $select_from_user_list = null, $sent_to = '', $tpl
get_lang('SendMessageTo'),
$teachers,
[
'multiple' => 'multiple'
'multiple' => 'multiple',
]
);
} else {

@ -89,7 +89,7 @@ foreach ($headers as $header) {
$column++;
}
$row++;
foreach ($sessionColorName as $color => $name) {
foreach ($sessionColorName as $color => $name) {
$table->setCellContents($row, 0, $name);
$table->setCellContents($row, 1, "<div style='background:$color '>&nbsp;</div>");
$row++;

@ -567,7 +567,7 @@ function assign_role($content, $action, $id, $role_id, $scope = 'course')
$table = Database::get_course_table(TABLE_ROLE_GROUP);
$id_field = 'group_id';
} else {
return get_lang('Error');
return get_lang('Error');
}
// grating a right

@ -44,7 +44,7 @@ echo '<div class="row">';
echo get_lang('GenerateSurveyAccessLinkExplanation');
echo '<pre>';
echo $link;
echo $link;
echo '</pre>';
echo '</div>';

@ -65,7 +65,7 @@ if ($export_csv || $exportXls) {
if ($exportXls) {
Export::arrayToXls($csvData);
}
die;
exit;
}
if (empty($session_id)) {

@ -11,7 +11,7 @@
*/
//remove the next line to enable the script (this can harm your database so
// don't enable unless you know what you're doing and you have a backup)
die();
exit();
// update this ID after you create the corresponding field through the Chamilo
// profile fields manager (admin page, users section) as text field.
// Give this field a name you will later use in original_field_id_name, while

@ -32,7 +32,7 @@ if ($digestParts['response'] != $validResponse) {
} else {
// We're in!
echo 'a7532ae474e5e66a0c16eddab02e02a7';
die();
exit();
}
// This function returns the digest string
@ -62,7 +62,7 @@ function requireLogin($realm, $nonce)
header('WWW-Authenticate: Digest realm="'.$realm.'",qop="auth",nonce="'.$nonce.'",opaque="'.md5($realm).'"');
header('HTTP/1.1 401');
echo 'Authentication Canceled';
die();
exit();
}
// This function extracts the separate values from the digest string

@ -663,7 +663,7 @@ function WSCreateUser($params)
return 0;
}
return $userId;
return $userId;
}
/* Register WSCreateUsersPasswordCrypted function */
@ -2035,7 +2035,7 @@ function WSEditUser($params)
}
}
return $user_id;
return $user_id;
}
/* Register WSEditUserWithPicture function */

@ -1,4 +1,5 @@
<?php /* For licensing terms, see /license.txt */
<?php
/* For licensing terms, see /license.txt */
/**
* Test script for soap.php.
*

@ -7,7 +7,7 @@
* Check no direct access to file using a constant defined in the calling script.
*/
if (!defined('WS_ERROR_SECRET_KEY')) {
die();
exit();
}
/**
* Define here the IPs or ranges that will be authorized to access the

@ -4336,57 +4336,57 @@ class Wiki
// stars
$p_score = $row['p_score'];
switch ($p_score) {
case 0:
case 0:
$imagerating = Display::return_icon(
'rating/stars_0.gif'
);
break;
case 1:
case 1:
$imagerating = Display::return_icon(
'rating/stars_5.gif'
);
break;
case 2:
case 2:
$imagerating = Display::return_icon(
'rating/stars_10.gif'
);
break;
case 3:
case 3:
$imagerating = Display::return_icon(
'rating/stars_15.gif'
);
break;
case 4:
case 4:
$imagerating = Display::return_icon(
'rating/stars_20.gif'
);
break;
case 5:
case 5:
$imagerating = Display::return_icon(
'rating/stars_25.gif'
);
break;
case 6:
case 6:
$imagerating = Display::return_icon(
'rating/stars_30.gif'
);
break;
case 7:
case 7:
$imagerating = Display::return_icon(
'rating/stars_35.gif'
);
break;
case 8:
case 8:
$imagerating = Display::return_icon(
'rating/stars_40.gif'
);
break;
case 9:
case 9:
$imagerating = Display::return_icon(
'rating/stars_45.gif'
);
break;
case 10:
case 10:
$imagerating = Display::return_icon(
'rating/stars_50.gif'
);

@ -12,6 +12,6 @@
*/
require_once __DIR__.'/config.php';
if (!api_is_platform_admin()) {
die('You must have admin permissions to install plugins');
exit('You must have admin permissions to install plugins');
}
AdvancedSubscriptionPlugin::create()->install();

@ -12,7 +12,7 @@ require_once __DIR__.'/../config.php';
$plugin = AdvancedSubscriptionPlugin::create();
if (!isset($_GET['session_id'], $_GET['user_id'], $_GET['profile_completed'])) {
die;
exit;
}
$sessionInfo = api_get_session_info($_GET['session_id']);

@ -13,6 +13,6 @@
*/
require_once __DIR__.'/config.php';
if (!api_is_platform_admin()) {
die('You must have admin permissions to uninstall plugins');
exit('You must have admin permissions to uninstall plugins');
}
AdvancedSubscriptionPlugin::create()->uninstall();

@ -2,7 +2,7 @@
/* For licensing terms, see /license.txt */
if (!api_is_platform_admin()) {
die('You must have admin permissions to install plugins');
exit('You must have admin permissions to install plugins');
}
AzureActiveDirectory::create()->install();

@ -8,7 +8,7 @@
require_once __DIR__.'/config.php';
if (!api_is_platform_admin()) {
die('You must have admin permissions to install plugins');
exit('You must have admin permissions to install plugins');
}
BBBPlugin::create()->update();

@ -12,7 +12,7 @@ use Doctrine\DBAL\Types\Types;
* Check if script can be called.
*/
if (!function_exists('api_get_path')) {
die('This script must be loaded through the Chamilo plugin installer sequence');
exit('This script must be loaded through the Chamilo plugin installer sequence');
}
$entityManager = Database::getManager();

@ -11,6 +11,6 @@
*/
require_once __DIR__.'/config.php';
if (!api_is_platform_admin()) {
die('You must have admin permissions to install plugins');
exit('You must have admin permissions to install plugins');
}
BuyCoursesPlugin::create()->install();

@ -8,7 +8,7 @@
require_once __DIR__.'/config.php';
if (!api_is_platform_admin()) {
die('You must have admin permissions to install plugins');
exit('You must have admin permissions to install plugins');
}
BuyCoursesPlugin::create()->update();

@ -4,6 +4,6 @@
require_once 'card_game.php';
if (!api_is_platform_admin()) {
die('You must have admin permissions to install plugins');
exit('You must have admin permissions to install plugins');
}
CardGame::create()->install();

@ -4,6 +4,6 @@
require_once 'card_game.php';
if (!api_is_platform_admin()) {
die('You must have admin permissions to uninstall plugins');
exit('You must have admin permissions to uninstall plugins');
}
CardGame::create()->uninstall();

@ -6,6 +6,6 @@
require_once 'CheckExtraFieldAuthorsCompanyPlugin.php';
if (!api_is_platform_admin()) {
die('You must have admin permissions to install plugins');
exit('You must have admin permissions to install plugins');
}
CheckExtraFieldAuthorsCompanyPlugin::create()->install();

@ -5,6 +5,6 @@
require_once 'CheckExtraFieldAuthorsCompanyPlugin.php';
if (!api_is_platform_admin()) {
die('You must have admin permissions to uninstall plugins');
exit('You must have admin permissions to uninstall plugins');
}
CheckExtraFieldAuthorsCompanyPlugin::create()->uninstall();

@ -4,6 +4,6 @@
require_once __DIR__.'/config.php';
if (!api_is_platform_admin()) {
die('You must have admin permissions to install plugins');
exit('You must have admin permissions to install plugins');
}
CourseBlockPlugin::create()->install();

@ -4,6 +4,6 @@
require_once __DIR__.'/config.php';
if (!api_is_platform_admin()) {
die('You must have admin permissions to install plugins');
exit('You must have admin permissions to install plugins');
}
CourseLegalPlugin::create()->install();

@ -13,7 +13,7 @@ use Doctrine\DBAL\Types\Type;
* Check if script can be called.
*/
if (!function_exists('api_get_path')) {
die('This script must be loaded through the Chamilo plugin installer sequence');
exit('This script must be loaded through the Chamilo plugin installer sequence');
}
$entityManager = Database::getManager();

@ -9,7 +9,7 @@
require_once __DIR__.'/config.php';
if (!api_is_platform_admin()) {
die('You must have admin permissions to install plugins');
exit('You must have admin permissions to install plugins');
}
CustomCertificatePlugin::create()->install();

@ -8,7 +8,7 @@
require_once __DIR__.'/config.php';
if (!api_is_platform_admin()) {
die('You must have admin permissions to install plugins');
exit('You must have admin permissions to install plugins');
}
CustomCertificatePlugin::create()->update();

@ -2,6 +2,6 @@
/* For license terms, see /license.txt */
if (!api_is_platform_admin()) {
die('You must have admin permissions to install plugins');
exit('You must have admin permissions to install plugins');
}
DictionaryPlugin::create()->install();

@ -3,7 +3,7 @@
/* For license terms, see /license.txt */
if (!api_is_platform_admin()) {
die('You must have admin permissions to install plugins');
exit('You must have admin permissions to install plugins');
}
ExerciseSignaturePlugin::create()->install();

@ -3,7 +3,7 @@
/* For license terms, see /license.txt */
if (!api_is_platform_admin()) {
die('You must have admin permissions to uninstall plugins');
exit('You must have admin permissions to uninstall plugins');
}
ExerciseSignaturePlugin::create()->uninstall();

@ -30,7 +30,6 @@ if ($enable) {
if ($action) {
switch ($action) {
case 'delete':
$idMeet = isset($_GET['id_meet']) ? $_GET['id_meet'] : null;
$res = $plugin->deleteMeet($idMeet);
if ($res) {

@ -4,7 +4,7 @@
require_once __DIR__.'/h5p_plugin.class.php';
if (!api_is_platform_admin()) {
die('You must have admin permissions to install plugins');
exit('You must have admin permissions to install plugins');
}
H5PPlugin::create()->install();

@ -3,6 +3,6 @@
/* For license terms, see /license.txt */
require_once 'h5p_plugin.class.php';
if (!api_is_platform_admin()) {
die('You must have admin permissions to install plugins');
exit('You must have admin permissions to install plugins');
}
H5PPlugin::create()->uninstall();

@ -5,7 +5,7 @@
* @author Pavel Vlasov
*/
if (!defined('DOKU_INC')) {
die();
exit();
}
if (!defined('DOKU_PLUGIN')) {
define('DOKU_PLUGIN', DOKU_INC.'lib/plugins/');

@ -2,7 +2,7 @@
/* For license terms, see /license.txt */
if (!api_is_platform_admin()) {
die('You must have admin permissions to install plugins');
exit('You must have admin permissions to install plugins');
}
LearningCalendarPlugin::create()->install();

@ -56,7 +56,7 @@ class SectionSequenceLookup extends LoadedKeyLookup
$this->calledClass = CourseModulesQuizTask::class;
break;
default:
continue;
break;
}
$lpItemId = parent::transform([$mModuleId]);

@ -4,7 +4,7 @@
require_once __DIR__.'/mindmap_plugin.class.php';
if (!api_is_platform_admin()) {
die('You must have admin permissions to install plugins');
exit('You must have admin permissions to install plugins');
}
MindmapPlugin::create()->install();

@ -4,6 +4,6 @@
require_once 'mindmap_plugin.class.php';
if (!api_is_platform_admin()) {
die('You must have admin permissions to install plugins');
exit('You must have admin permissions to install plugins');
}
MindmapPlugin::create()->uninstall();

@ -11,7 +11,7 @@
* Check if script can be called.
*/
if (!function_exists('api_get_path')) {
die('This script must be loaded through the Chamilo plugin installer sequence');
exit('This script must be loaded through the Chamilo plugin installer sequence');
}
$entityManager = Database::getManager();

@ -9,6 +9,6 @@
*/
require_once __DIR__.'/config.php';
if (!api_is_platform_admin()) {
die('You must have admin permissions to install plugins');
exit('You must have admin permissions to install plugins');
}
NotebookTeacherPlugin::create()->install();

@ -9,6 +9,6 @@
require_once __DIR__.'/config.php';
if (!api_is_platform_admin()) {
die('You must have admin permissions to install plugins');
exit('You must have admin permissions to install plugins');
}
NotebookTeacherPlugin::create()->update();

@ -2,7 +2,7 @@
/* For licensing terms, see /license.txt */
if (!api_is_platform_admin()) {
die('You must have admin permissions to install plugins');
exit('You must have admin permissions to install plugins');
}
OAuth2::create()->install();

@ -1,4 +1,5 @@
<?php /* License: see /license.txt */
<?php
/* License: see /license.txt */
//Needed in order to show the plugin title
$strings['plugin_title'] = "OpenMeetings";
$strings['plugin_comment'] = "Ajoutez un espace de vidéoconférences aux cours de Chamilo avec OpenMeetings";

@ -1,4 +1,5 @@
<?php /* License: see /license.txt */
<?php
/* License: see /license.txt */
//Needed in order to show the plugin title
$strings['plugin_title'] = "OpenMeetings";
$strings['plugin_comment'] = "Añade una sala de videoconferencia en los cursos de Chamilo con OpenMeetings (om)";

@ -77,7 +77,7 @@ class OpenMeetings
if ($return == 0) {
$msg = 'Could not initiate session with server through OpenMeetingsGateway::loginUser()';
error_log(__FILE__.'+'.__LINE__.': '.$msg);
die($msg);
exit($msg);
}
$this->sessionId = $this->gateway->sessionId;
}
@ -127,7 +127,7 @@ class OpenMeetings
$roomId = $this->gateway->updateRoomWithModeration($room);
if ($roomId != $meetingData['room_id']) {
$msg = 'Something went wrong: the updated room ID ('.$roomId.') is not the same as the one we had ('.$meetingData['room_id'].')';
die($msg);
exit($msg);
}
} else {
$room = new Room();

@ -58,7 +58,7 @@ class OpenMeetingsRestService
// Confirm that the request was transmitted to the OpenMeetings! Image Search Service
if (!$response) {
die("Request OpenMeetings! OpenMeetings Service failed and no response was returned in ".__CLASS__.'::'.__FUNCTION__.'()');
exit("Request OpenMeetings! OpenMeetings Service failed and no response was returned in ".__CLASS__.'::'.__FUNCTION__.'()');
}
// Create an array to store the HTTP response codes

@ -4,6 +4,6 @@
require_once __DIR__.'/config.php';
if (!api_is_platform_admin()) {
die('You must have admin permissions to install plugins');
exit('You must have admin permissions to install plugins');
}
PauseTraining::create()->install();

@ -11,7 +11,7 @@
* Check if script can be called.
*/
if (!function_exists('api_get_path')) {
die('This script must be loaded through the Chamilo plugin installer sequence');
exit('This script must be loaded through the Chamilo plugin installer sequence');
}
$entityManager = Database::getManager();

@ -8,7 +8,7 @@
require_once __DIR__.'/config.php';
if (!api_is_platform_admin()) {
die('You must have admin permissions to install plugins');
exit('You must have admin permissions to install plugins');
}
SepePlugin::create()->install();

@ -8,7 +8,7 @@
require_once __DIR__.'/config.php';
if (!api_is_platform_admin()) {
die('You must have admin permissions to install plugins');
exit('You must have admin permissions to install plugins');
}
SepePlugin::create()->update();

@ -11,6 +11,6 @@
*/
require_once __DIR__.'/config.php';
if (!api_is_platform_admin()) {
die('You must have admin permissions to install plugins');
exit('You must have admin permissions to install plugins');
}
Test2pdfPlugin::create()->install();

@ -218,7 +218,7 @@ class Virtual
);
} catch (Exception $e) {
echo 'Side connection failure with '.$_configuration['db_host'].', '.$_configuration['db_user'].', ******** ';
die();
exit();
}
return $connection;

@ -229,7 +229,7 @@ function is_proxybypass($url)
// Main execution sequence
if (!$vchamilos = Database::select('*', 'vchamilo', [], 'all')) {
die("Nothing to do. No Vhosts");
exit("Nothing to do. No Vhosts");
}
$allvhosts = array_values($vchamilos);
@ -251,7 +251,7 @@ if ($VCRON->STRATEGY == ROUND_ROBIN) {
fire_vhost_cron($vhost);
}
die('Done.');
exit('Done.');
}
if ($vhost->id == api_get_setting('vchamilo_cron_lasthost', 'vchamilo')) {
$rr = 1; // take next one

@ -4,7 +4,7 @@
$table = Database::get_main_table('vchamilo');
if (!defined('CHAMILO_INTERNAL')) {
die('You cannot use this script this way');
exit('You cannot use this script this way');
}
$vidlist = isset($_REQUEST['vids']) ? implode("','", array_map('intval', $_REQUEST['vids'])) : '';
@ -231,7 +231,7 @@ switch ($action) {
$tpl->assign('content', $content);
$tpl->display_one_col_template();
die;
exit;
}
}

@ -51,5 +51,5 @@ try {
echo $plugin->get_lang('connectionok');
} catch (Exception $e) {
echo $plugin->get_lang('badconnection');
die();
exit();
}

@ -140,6 +140,6 @@ class LogEvent
*/
public function getTypeString()
{
return '-';
return '-';
}
}

@ -178,10 +178,10 @@ class ApiRequest
if (isset($json['asserts'])) {
foreach ($json['asserts'] as $assert) {
// Removed message filter because Whispeak indicates that all message should be presented to student.
// Leaving the code and only commenting because if it's not modified on their side it should come back
// Removed message filter because Whispeak indicates that all message should be presented to student.
// Leaving the code and only commenting because if it's not modified on their side it should come back
// if (in_array($assert['value'], ['valid_audio', 'invalid_audio'])) {
$message .= $assert['message'].PHP_EOL;
$message .= $assert['message'].PHP_EOL;
// }
}
} elseif (empty($json['message'])) {

@ -28,7 +28,7 @@ if ($isEnrollment) {
]
);
}
die;
exit;
}
if ($isAuthentify) {

@ -103,7 +103,7 @@ final class StatementGetController
*
* @return JsonResponse|MultipartResponse
*/
protected function buildSingleStatementResponse(Statement $statement, $includeAttachments = false)
private function buildSingleStatementResponse(Statement $statement, $includeAttachments = false)
{
$json = $this->statementSerializer->serializeStatement($statement);
@ -124,7 +124,7 @@ final class StatementGetController
*
* @return JsonResponse|MultipartResponse
*/
protected function buildMultiStatementsResponse(array $statements, $includeAttachments = false)
private function buildMultiStatementsResponse(array $statements, $includeAttachments = false)
{
$json = $this->statementResultSerializer->serializeStatementResult(new StatementResult($statements));
@ -142,7 +142,7 @@ final class StatementGetController
*
* @return MultipartResponse
*/
protected function buildMultipartResponse(JsonResponse $statementResponse, array $statements)
private function buildMultipartResponse(JsonResponse $statementResponse, array $statements)
{
$attachmentsParts = [];

@ -326,7 +326,7 @@ class XApiPlugin extends Plugin implements HookPluginInterface
*
* @return mixed|string
*/
public static function extractVerbInLanguage(\Xabbuh\XApi\Model\LanguageMap $languageMap, $language)
public static function extractVerbInLanguage(Xabbuh\XApi\Model\LanguageMap $languageMap, $language)
{
$iso = self::findLanguageIso($languageMap->languageTags(), $language);

@ -487,8 +487,7 @@ class Meeting
*/
public function requiresRegistration()
{
return
MeetingSettings::APPROVAL_TYPE_AUTOMATICALLY_APPROVE === $this->meetingInfoGet->settings->approval_type;
return MeetingSettings::APPROVAL_TYPE_AUTOMATICALLY_APPROVE === $this->meetingInfoGet->settings->approval_type;
/*return
MeetingSettings::APPROVAL_TYPE_NO_REGISTRATION_REQUIRED != $this->meetingInfoGet->settings->approval_type;*/
}

@ -2,7 +2,7 @@
/* For license terms, see /license.txt */
if (!api_is_platform_admin()) {
die('You must have admin permissions to install plugins');
exit('You must have admin permissions to install plugins');
}
ZoomPlugin::create()->install();

@ -2,7 +2,7 @@
/* For license terms, see /license.txt */
if (!api_is_platform_admin()) {
die('You must have admin permissions to uninstall plugins');
exit('You must have admin permissions to uninstall plugins');
}
ZoomPlugin::create()->uninstall();

Loading…
Cancel
Save