Skip to content

Commit 0ad5ea3

Browse files
committed
cs
1 parent d732f48 commit 0ad5ea3

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

administrator/components/com_patchtester/tmpl/pulls/default_items.php

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -137,27 +137,27 @@
137137
endif; ?>
138138
</td>
139139
<td class="text-center">
140-
<?php $hideButton = function($labels) {
141-
foreach ($labels as $label) {
142-
if (in_array(strtolower($label->name), ['npm resource changed', 'composer dependency changed', 'rtc'])) {
143-
return true;
144-
}
145-
}
140+
<?php $hideButton = function ($labels) {
141+
foreach ($labels as $label) {
142+
if (in_array(strtolower($label->name), ['npm resource changed', 'composer dependency changed', 'rtc'])) {
143+
return true;
144+
}
145+
}
146146

147147
return false;
148148
};?>
149149
<?php if ($this->settings->get('advanced', 0) || !$hideButton($item->labels)) : ?>
150-
<?php if ($item->applied) :
151-
?>
150+
<?php if ($item->applied) :
151+
?>
152152
<button type="button" class="btn btn-sm btn-success submitPatch"
153153
data-task="revert" data-id="<?php echo (int) $item->applied; ?>"><?php echo Text::_('COM_PATCHTESTER_REVERT_PATCH'); ?></button>
154-
<?php
155-
else :
156-
?>
154+
<?php
155+
else :
156+
?>
157157
<button type="button" class="btn btn-sm btn-primary submitPatch"
158158
data-task="apply" data-id="<?php echo (int) $item->pull_id; ?>"><?php echo Text::_('COM_PATCHTESTER_APPLY_PATCH'); ?></button>
159-
<?php
160-
endif; ?>
159+
<?php
160+
endif; ?>
161161
<?php endif; ?>
162162
</td>
163163
</tr>

0 commit comments

Comments
 (0)