Skip to content

Commit

Permalink
FIX: Code Syntax - actions.php
Browse files Browse the repository at this point in the history
  • Loading branch information
aljawaid committed May 21, 2023
1 parent 025fd3a commit 3d54fcd
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Template/project_header/actions.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
<?php $actions = $this->model->actionModel->getAllByProject($project['id']); ?>

<?php
$actions = $this->model->actionModel->getAllByProject($project['id']);
// phpcs:disable Squiz.ControlStructures.ControlSignature.NewlineAfterOpenBrace,Squiz.WhiteSpace.ScopeClosingBrace.ContentBefore -- code must be kept intact
?>
<li id="BoardActions" class="board-actions <?php if ($this->app->checkMenuSelection('ActionController')): ?> display-none <?php endif ?>">
<?php // phpcs:enable ?>
<?php if ($this->user->hasProjectAccess('ActionController', 'index', $project['id'])): ?>
<a href="<?= $this->url->href('ActionController', 'index', array('project_id' => $project['id']), false, '', '') ?>">
<?php endif ?>
Expand All @@ -15,7 +18,7 @@
</g>
</svg> &nbsp;<?= t('Automatic Actions') ?>
</div>
<div class="board-actions-counts">
<div class="board-actions-counts">
<div class="action-page-count" title="<?= t('Actions for this project')?>">
<?php if ($this->user->hasProjectAccess('ActionController', 'index', $project['id'])): ?>
<?= $this->url->link(count($actions), 'ActionController', 'index', array('project_id' => $project['id']), '', 'board-action-link', t('View all actions for this project')) ?>
Expand Down

0 comments on commit 3d54fcd

Please sign in to comment.