@@ -79,8 +79,7 @@ |
||
79 | 79 | Database::updateSchema(self::SCHEMA_MIGRATION_PREFIX, self::SCHEMA_SETTING_NAME, self::SCHEMA_TARGET_VERSION); |
80 | 80 | |
81 | 81 | return !is_null(Module::getModuleByName(Constants::MODULE_MAJ_SOSA_NAME)); |
82 | - } |
|
83 | - catch (\Exception $ex) { } |
|
82 | + } catch (\Exception $ex) { } |
|
84 | 83 | return false; |
85 | 84 | } |
86 | 85 |
@@ -93,16 +93,14 @@ |
||
93 | 93 | if(is_int($key)) { |
94 | 94 | $hook_item = $value; |
95 | 95 | $priority = self::DEFAULT_PRIORITY; |
96 | - } |
|
97 | - else{ |
|
96 | + } else{ |
|
98 | 97 | $hook_item = explode('#', $key, 2); |
99 | 98 | $priority = $value; |
100 | 99 | } |
101 | 100 | if($hook_item && count($hook_item) == 2){ |
102 | 101 | $hook_func = $hook_item[0]; |
103 | 102 | $hook_cont = $hook_item[1]; |
104 | - } |
|
105 | - else{ |
|
103 | + } else{ |
|
106 | 104 | $hook_func = $hook_item[0]; |
107 | 105 | $hook_cont = 'all'; |
108 | 106 | } |
@@ -50,7 +50,9 @@ |
||
50 | 50 | |
51 | 51 | if($fetched = File::fetchUrl($url)) { |
52 | 52 | $content = @unserialize($fetched); |
53 | - if(is_numeric($content)) return $content; |
|
53 | + if(is_numeric($content)) { |
|
54 | + return $content; |
|
55 | + } |
|
54 | 56 | } |
55 | 57 | } |
56 | 58 |
@@ -39,7 +39,8 @@ discard block |
||
39 | 39 | <input type="hidden" name="ged" value="<?= $this->data->get('url_ged') ?>"> |
40 | 40 | <select name="city"> |
41 | 41 | <?php foreach ($cities as $city) { ?> |
42 | - <option value="<?= Functions::encryptToSafeBase64($city) ?>" <?php if(trim($city) == trim($selected_city)) echo 'selected="selected"'?> ><?= $city ?></option> |
|
42 | + <option value="<?= Functions::encryptToSafeBase64($city) ?>" <?php if(trim($city) == trim($selected_city)) { |
|
43 | + echo 'selected="selected"'?> ><?= $city ?></option> |
|
43 | 44 | <?php } ?> |
44 | 45 | </select> |
45 | 46 | <input type="submit" value="<?= I18N::translate('Show') ?>" /> |
@@ -72,9 +73,12 @@ discard block |
||
72 | 73 | <!-- Certificate Name --> |
73 | 74 | <?php |
74 | 75 | $name = $certificate->getCertificateDetails() ?: ''; |
76 | +} |
|
75 | 77 | $sortname = ""; |
76 | 78 | $ct_names=preg_match("/([A-Z]{2,})/", $name, $match); |
77 | - if($ct_names > 0) $sortname = $match[1].'_'; |
|
79 | + if($ct_names > 0) { |
|
80 | + $sortname = $match[1].'_'; |
|
81 | + } |
|
78 | 82 | $sortname .= $name; |
79 | 83 | ?> |
80 | 84 | <td data-sort="<?= Filter::escapeHtml($sortname) ?>"> |