Minor: Format code

pull/4601/head
Angel Fernando Quiroz Campos 3 years ago
parent bfb19c7339
commit 7b586e09dd
  1. 2
      main/inc/lib/Compilatio.php
  2. 1
      main/inc/lib/webservices/Rest.php
  3. 2
      plugin/buycourses/src/configure_course.php
  4. 10
      plugin/check_extra_field_author_company/CheckExtraFieldAuthorsCompanyPlugin.php

@ -461,7 +461,7 @@ class Compilatio
*/
public static function isMd5($hash)
{
return (preg_match('`^[a-f0-9]{32}$`', $hash) || preg_match('`^[a-f0-9]{40}$`', $hash));
return preg_match('`^[a-f0-9]{32}$`', $hash) || preg_match('`^[a-f0-9]{40}$`', $hash);
}
/**

@ -3060,6 +3060,7 @@ class Rest extends WebService
$sessionId = $this->session ? $this->session->getId() : 0;
$courseInfo = api_get_course_info_by_id($this->course->getId());
return ExerciseLib::get_all_exercises($courseInfo, $sessionId);
}

@ -341,7 +341,7 @@ $interbreadcrumb[] = [
'url' => 'paymentsetup.php',
'name' => get_lang('Configuration'),
];
switch($type) {
switch ($type) {
case 2:
$interbreadcrumb[] = [
'url' => 'list_session.php',

@ -286,8 +286,6 @@ class CheckExtraFieldAuthorsCompanyPlugin extends Plugin
/**
* Verify that the "company" field exists in the database.
*
* @return bool
*/
public function companyFieldExists(): bool
{
@ -317,8 +315,6 @@ class CheckExtraFieldAuthorsCompanyPlugin extends Plugin
/**
* Verify that the "authors" field exists in the database.
*
* @return bool
*/
public function authorsFieldExists(): bool
{
@ -349,8 +345,6 @@ class CheckExtraFieldAuthorsCompanyPlugin extends Plugin
/**
* Verify that the "price" field exists in the database.
*
* @return bool
*/
public function priceFieldExists(): bool
{
@ -381,8 +375,6 @@ class CheckExtraFieldAuthorsCompanyPlugin extends Plugin
/**
* Verify that the "authorlpitem" field exists in the database.
*
* @return bool
*/
public function authorLpItemFieldExists(): bool
{
@ -413,8 +405,6 @@ class CheckExtraFieldAuthorsCompanyPlugin extends Plugin
/**
* Verify that the "authorlp" field exists in the database.
*
* @return bool
*/
public function authorLpFieldExists(): bool
{

Loading…
Cancel
Save