Skip to content

Commit 29af88a

Browse files
committed
Fix codestyle part 3
1 parent 0ae9f82 commit 29af88a

File tree

1 file changed

+13
-18
lines changed

1 file changed

+13
-18
lines changed

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

Lines changed: 13 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -137,29 +137,24 @@
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

147-
return false;
147+
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) : ?>
152151
<button type="button" class="btn btn-sm btn-success submitPatch"
153152
data-task="revert" data-id="<?php echo (int) $item->applied; ?>"><?php echo Text::_('COM_PATCHTESTER_REVERT_PATCH'); ?></button>
154-
<?php
155-
else :
156-
?>
157-
<button type="button" class="btn btn-sm btn-primary submitPatch"
153+
<?php else : ?>
154+
<button type="button" class="btn btn-sm btn-primary submitPatch"
158155
data-task="apply" data-id="<?php echo (int) $item->pull_id; ?>"><?php echo Text::_('COM_PATCHTESTER_APPLY_PATCH'); ?></button>
159-
<?php
160-
endif; ?>
156+
<?php endif; ?>
161157
<?php endif; ?>
162158
</td>
163-
</tr>
164-
<?php
165-
endforeach;
159+
</tr>
160+
<?php endforeach;

0 commit comments

Comments
 (0)