Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
georgmaisser committed Oct 6, 2023
1 parent 0b7277b commit 1f428bc
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions classes/settings_manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ public function update_or_createentity(stdClass $data): int {
&& empty($data->maplink_0)
&& empty($data->mapembed_0)) {
$data->addresscount = 0;
}else{
} else {
$data->addresscount = 1;
}

Expand All @@ -138,8 +138,8 @@ public function update_or_createentity(stdClass $data): int {
&& empty($data->surname_0)
&& empty($data->mail_0)) {
$data->contactscount = 0;
}else{
$data->contactscount=1;
} else {
$data->contactscount = 1;
}

if (isset($data->id) && $data->id > 0) {
Expand Down Expand Up @@ -260,7 +260,7 @@ public function prepare_image($data, $id): stdClass {
if (isset($data->ogimage_filemanager)) {
$context = \context_system::instance();
$options = array('subdirs' => 0, 'maxbytes' => 204800, 'maxfiles' => 1, 'accepted_types' => '*');
$data = file_postupdate_standard_filemanager($data, 'image', $options, $context->id, 'local_entities', 'image', $id);
$data = file_postupdate_standard_filemanager($data, 'image', $options, $context, 'local_entities', 'image', $id);
}
return $data;
}
Expand Down Expand Up @@ -397,7 +397,7 @@ public static function get_standardcategories(): array {
*
* @param int $entityid
* @return stdClass
* @throws dml_exception
* @throws \dml_exception
*/
public static function get_settings_forform(int $entityid): stdClass {
global $DB;
Expand All @@ -414,7 +414,7 @@ public static function get_settings_forform(int $entityid): stdClass {
*
* @param int $entityid
* @return stdClass
* @throws dml_exception
* @throws \dml_exception
*/
public static function get_settings(int $entityid): stdClass {
global $DB;
Expand Down

0 comments on commit 1f428bc

Please sign in to comment.