Skip to content

Commit

Permalink
chore: Minor code tweaks.
Browse files Browse the repository at this point in the history
Signed-off-by: Rubén D <[email protected]>
  • Loading branch information
nuxsmin committed May 26, 2022
1 parent 0fb21d5 commit e1f7374
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions app/modules/web/themes/material-blue/views/config/info.inc
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
<td class="valField">
<div class="lowres-title"><?php echo __('PHP'); ?></div>

<?php printf('%s: %s', Html::strongText(__('Version')), phpversion()); ?>
<?php printf('%s: %s', Html::strongText(__('Version')), PHP_VERSION); ?>
<br>
<?php printf('%s: %s', Html::strongText(__('Extensions')), implode(', ', get_loaded_extensions())); ?>
<br>
Expand All @@ -73,7 +73,7 @@
<?php printf('%s: %s', Html::strongText(__('User')), (!$_getvar('isDemo')) ? get_current_user() : '***'); ?>
<br>
<?php printf('%s: %d MB/s', Html::strongText(__('Download rate')), $_getvar('downloadRate')); ?>
<?php if (function_exists('opcache_get_status') && version_compare(PHP_VERSION, '5.6.0', '>=')): ?>
<?php if (function_exists('opcache_get_status') && PHP_VERSION_ID >= 50600): ?>
<br>
<?php echo Html::strongText(__('OP Cache')); ?>
<?php foreach (opcache_get_status(false)['opcache_statistics'] as $key => $value): ?>
Expand Down
2 changes: 1 addition & 1 deletion app/modules/web/themes/material-blue/views/config/wiki.inc
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ use SP\Mvc\View\Template;
</p>

<p>
<?php __('Example:'); ?>
<?php echo __('Example:'); ?>
</p>

<p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ $data = $_getvar('data');
<tr data-item-id="<?php echo $dataItem->{$data->getData()->getDataRowSourceId()}; ?>">
<?php foreach ($data->getData()->getDataRowSources() as $rowSrc): ?>
<?php $value = $rowSrc['isMethod'] === true && method_exists($dataItem, $rowSrc['name']) ? $dataItem->{$rowSrc['name']}() : $dataItem->{$rowSrc['name']}; ?>
<?php $value = $rowSrc['filter'] !== null && $rowSrc['filter'] ? $rowSrc['filter']($value) : $value; ?>
<?php $value = isset($rowSrc['filter']) ? $rowSrc['filter']($value) : $value; ?>
<td class="cell-data"><?php echo $value !== '' ? $value : '&nbsp;'; // Fix height ?></td>
<?php endforeach; ?>
</tr>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ if (!isset($data)) {
$data = $_getvar('data');
}

$index = isset($index) ? $index : 0;
$index = $index ?? 0;
?>

<div class="tab-actions">
Expand Down

0 comments on commit e1f7374

Please sign in to comment.