Run php-cs-fixer on the code base
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<table class="table-small">
|
||||
<?php foreach($files as $file): ?>
|
||||
<?php foreach ($files as $file): ?>
|
||||
<tr>
|
||||
<th>
|
||||
<i class="fa <?= $this->file->icon($file['name']) ?> fa-fw"></i>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<div class="tooltip-tasklinks">
|
||||
<ul>
|
||||
<?php foreach($links as $link): ?>
|
||||
<?php foreach ($links as $link): ?>
|
||||
<li>
|
||||
<strong><?= t($link['label']) ?></strong>
|
||||
[<i><?= $link['project_name'] ?></i>]
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
<th><?= t('Description') ?></th>
|
||||
</tr>
|
||||
|
||||
<?php foreach($plugins as $plugin): ?>
|
||||
<?php foreach ($plugins as $plugin): ?>
|
||||
<tr>
|
||||
<td>
|
||||
<?php if ($plugin->getPluginHomepage()): ?>
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
data-redirect-regex="PROJECT_ID"
|
||||
data-redirect-url="<?= $this->url->href('board', 'show', array('project_id' => 'PROJECT_ID')) ?>">
|
||||
<option value=""></option>
|
||||
<?php foreach($board_selector as $board_id => $board_name): ?>
|
||||
<?php foreach ($board_selector as $board_id => $board_name): ?>
|
||||
<option value="<?= $board_id ?>"><?= $this->e($board_name) ?></option>
|
||||
<?php endforeach ?>
|
||||
</select>
|
||||
|
||||
@@ -68,7 +68,7 @@
|
||||
<i class="fa fa-caret-down"></i> <a href="#" class="dropdown-menu"><?= t('My filters') ?></a>
|
||||
<ul>
|
||||
<?php foreach ($custom_filters_list as $filter): ?>
|
||||
<li><a href="#" class="filter-helper" data-<?php if($filter['append']): ?><?= 'append-' ?><?php endif ?>filter='<?= $this->e($filter['filter']) ?>'><?= $this->e($filter['name']) ?></a></li>
|
||||
<li><a href="#" class="filter-helper" data-<?php if ($filter['append']): ?><?= 'append-' ?><?php endif ?>filter='<?= $this->e($filter['filter']) ?>'><?= $this->e($filter['name']) ?></a></li>
|
||||
<?php endforeach ?>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
<?php
|
||||
|
||||
foreach ($changes as $field => $value) {
|
||||
|
||||
switch ($field) {
|
||||
case 'title':
|
||||
echo '<li>'.t('New title: %s', $task['title']).'</li>';
|
||||
@@ -11,16 +10,14 @@
|
||||
case 'owner_id':
|
||||
if (empty($task['owner_id'])) {
|
||||
echo '<li>'.t('The task is not assigned anymore').'</li>';
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
echo '<li>'.t('New assignee: %s', $task['assignee_name'] ?: $task['assignee_username']).'</li>';
|
||||
}
|
||||
break;
|
||||
case 'category_id':
|
||||
if (empty($task['category_id'])) {
|
||||
echo '<li>'.t('There is no category now').'</li>';
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
echo '<li>'.t('New category: %s', $task['category_name']).'</li>';
|
||||
}
|
||||
break;
|
||||
@@ -33,8 +30,7 @@
|
||||
case 'date_due':
|
||||
if (empty($task['date_due'])) {
|
||||
echo '<li>'.t('The due date have been removed').'</li>';
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
echo '<li>'.dt('New due date: %B %e, %Y', $task['date_due']).'</li>';
|
||||
}
|
||||
break;
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
<th class="column-15"><?= t('IP address') ?></th>
|
||||
<th><?= t('User agent') ?></th>
|
||||
</tr>
|
||||
<?php foreach($last_logins as $login): ?>
|
||||
<?php foreach ($last_logins as $login): ?>
|
||||
<tr>
|
||||
<td><?= dt('%B %e, %Y at %k:%M %p', $login['date_creation']) ?></td>
|
||||
<td><?= $this->e($login['auth_type']) ?></td>
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
<th><?= t('User agent') ?></th>
|
||||
<th class="column-10"><?= t('Action') ?></th>
|
||||
</tr>
|
||||
<?php foreach($sessions as $session): ?>
|
||||
<?php foreach ($sessions as $session): ?>
|
||||
<tr>
|
||||
<td><?= dt('%B %e, %Y at %k:%M %p', $session['date_creation']) ?></td>
|
||||
<td><?= dt('%B %e, %Y at %k:%M %p', $session['expiration']) ?></td>
|
||||
|
||||
Reference in New Issue
Block a user