Skip to content

Commit 3d54fcd

Browse files
committed
FIX: Code Syntax - actions.php
1 parent 025fd3a commit 3d54fcd

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

Template/project_header/actions.php

+6-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1-
<?php $actions = $this->model->actionModel->getAllByProject($project['id']); ?>
2-
1+
<?php
2+
$actions = $this->model->actionModel->getAllByProject($project['id']);
3+
// phpcs:disable Squiz.ControlStructures.ControlSignature.NewlineAfterOpenBrace,Squiz.WhiteSpace.ScopeClosingBrace.ContentBefore -- code must be kept intact
4+
?>
35
<li id="BoardActions" class="board-actions <?php if ($this->app->checkMenuSelection('ActionController')): ?> display-none <?php endif ?>">
6+
<?php // phpcs:enable ?>
47
<?php if ($this->user->hasProjectAccess('ActionController', 'index', $project['id'])): ?>
58
<a href="<?= $this->url->href('ActionController', 'index', array('project_id' => $project['id']), false, '', '') ?>">
69
<?php endif ?>
@@ -15,7 +18,7 @@
1518
</g>
1619
</svg> &nbsp;<?= t('Automatic Actions') ?>
1720
</div>
18-
<div class="board-actions-counts">
21+
<div class="board-actions-counts">
1922
<div class="action-page-count" title="<?= t('Actions for this project')?>">
2023
<?php if ($this->user->hasProjectAccess('ActionController', 'index', $project['id'])): ?>
2124
<?= $this->url->link(count($actions), 'ActionController', 'index', array('project_id' => $project['id']), '', 'board-action-link', t('View all actions for this project')) ?>

0 commit comments

Comments
 (0)