31
0
mirror of https://github.com/joomla-extensions/patchtester.git synced 2024-05-28 19:40:47 +00:00

Apply suggestions from code review

Added some new lines at the end of templates, whites-spaces between casting and attribute, replaced back ticks with double quotes.

Co-Authored-By: SharkyKZ <sharkykz@gmail.com>
This commit is contained in:
Sebastian Enns 2019-10-01 13:23:01 +02:00 committed by GitHub
parent 502a4937ba
commit 6f4a9518b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 8 deletions

View File

@ -132,4 +132,4 @@ $filterRtc = $this->escape($this->state->get('filter.rtc'));
<input type="hidden" name="pull_id" id="pull_id" value=""/>
<?php echo HTMLHelper::_('form.token'); ?>
</div>
</form>
</form>

View File

@ -68,12 +68,12 @@ foreach ($this->items as $i => $item) :
<td class="center">
<?php if ($item->applied) : ?>
<button type="button" class="btn btn-sm btn-success submitPatch"
data-task="revert-<?php echo (int)$item->applied; ?>"><?php echo Text::_('COM_PATCHTESTER_REVERT_PATCH'); ?></button>
data-task="revert-<?php echo (int) $item->applied; ?>"><?php echo Text::_('COM_PATCHTESTER_REVERT_PATCH'); ?></button>
<br/>
<?php else : ?>
<button type="button" class="btn btn-sm btn-primary submitPatch"
data-task="apply-<?php echo (int)$item->pull_id; ?>"><?php echo Text::_('COM_PATCHTESTER_APPLY_PATCH'); ?></button>
data-task="apply-<?php echo (int) $item->pull_id; ?>"><?php echo Text::_('COM_PATCHTESTER_APPLY_PATCH'); ?></button>
<?php endif; ?>
</td>
</tr>
<?php endforeach;
<?php endforeach;

View File

@ -24,5 +24,5 @@ CREATE TABLE IF NOT EXISTS "#__patchtester_chain" (
"id" serial NOT NULL,
"insert_id" bigint NOT NULL,
"pull_id" bigint NOT NULL,
PRIMARY KEY (`id`)
PRIMARY KEY ("id")
);

View File

@ -16,7 +16,7 @@ foreach ($this->items as $i => $item) :
if ($item->applied) :
$status = ' class="table-active"';
endif;
?>
?>
<tr<?php echo $status; ?>>
<th scope="row" class="text-center">
<?php echo $item->pull_id; ?>
@ -66,10 +66,10 @@ foreach ($this->items as $i => $item) :
<td class="text-center">
<?php if ($item->applied) : ?>
<button type="button" class="btn btn-sm btn-success submitPatch"
data-task="revert-<?php echo (int)$item->applied; ?>"><?php echo Text::_('COM_PATCHTESTER_REVERT_PATCH'); ?></button>
data-task="revert-<?php echo (int) $item->applied; ?>"><?php echo Text::_('COM_PATCHTESTER_REVERT_PATCH'); ?></button>
<?php else : ?>
<button type="button" class="btn btn-sm btn-primary submitPatch"
data-task="apply-<?php echo (int)$item->pull_id; ?>"><?php echo Text::_('COM_PATCHTESTER_APPLY_PATCH'); ?></button>
data-task="apply-<?php echo (int) $item->pull_id; ?>"><?php echo Text::_('COM_PATCHTESTER_APPLY_PATCH'); ?></button>
<?php endif; ?>
</td>
</tr>