1
0
Fork 0
mirror of synced 2024-05-20 20:52:36 +12:00

Fix code style in views

This commit is contained in:
Alexey Pyltsyn 2019-10-01 02:15:44 +03:00
parent 2d07625c2a
commit 9544160276
5 changed files with 9 additions and 9 deletions

View file

@ -86,11 +86,11 @@ $collection = $this->getParam('collection', []);
<table class="vertical">
<thead>
<tr>
<?php foreach($collection['rules'] as $rule): ?>
<?php foreach ($collection['rules'] as $rule): ?>
<th width="220">
<?php echo $rule['label']; ?>
<?php if(!empty($rule['description'])): ?>
<?php if (!empty($rule['description'])): ?>
<span class="tooltip large" data-tooltip="<?php echo $rule['description']; ?>"><i class="icon-question"></i></span>
<?php endif; ?>
</th>
@ -101,9 +101,9 @@ $collection = $this->getParam('collection', []);
</thead>
<tbody data-ls-loop="project-documents.documents" data-ls-as="document">
<tr>
<?php foreach($collection['rules'] as $rule): ?>
<?php foreach ($collection['rules'] as $rule): ?>
<td>
<?php switch($rule['type']):
<?php switch ($rule['type']):
case 'numeric':?>
<span class="tag" data-ls-bind="{{document.<?php echo $rule['key']; ?>|emptyDash}}" data-ls-attrs="title={{document.<?php echo $rule['key']; ?>}}"></span>
<?php break;?>

View file

@ -315,7 +315,7 @@ $providers = $this->getParam('providers', []);
data-param-project-id="{{router.params.project}}"
data-scope="console">
<ul class="list">
<?php foreach ($providers as $provider => $data): if(isset($data['enabled']) && !$data['enabled']) { continue; } ?>
<?php foreach ($providers as $provider => $data): if (isset($data['enabled']) && !$data['enabled']) { continue; } ?>
<li class="clear <?php echo (isset($data['enabled']) && !$data['enabled']) ? 'dev-feature' : ''; ?>">
<div data-ui-modal class="modal close" data-button-text="Settings" data-button-class="pull-end">
<button type="button" class="close pull-end" data-ui-modal-close=""><i class="icon-cancel"></i></button>

View file

@ -13,7 +13,7 @@ $projectURL = $this->getParam('projectURL', '');
<small>Error ID: <?php echo $errorID; ?></small>
<?php if(!empty($projectURL)): ?>
<?php if (!empty($projectURL)): ?>
<hr class="margin-top margin-bottom" />
<p><a href="<?php echo $this->escape($projectURL); ?>" rel="noopener">Back to <?php echo $projectName; ?></a></p>

View file

@ -27,7 +27,7 @@ $canonical = $this->getParam('canonical', '');
<link href="https://fonts.googleapis.com/css?family=Poppins:100,300,400,500,600" rel="stylesheet">
<link rel="apple-touch-icon" href="/images/apple.png">
<link rel="preconnect" href="<?php echo $api; ?>" />
<?php if(!empty($canonical)): ?>
<?php if (!empty($canonical)): ?>
<link rel="canonical" href="<?php echo $canonical; ?>" />
<?php endif; ?>
<?php foreach ($this->getParam('prefetch', []) as $prefetch): ?>
@ -63,7 +63,7 @@ $canonical = $this->getParam('canonical', '');
PAGING_LIMIT: <?PHP echo APP_PAGING_LIMIT; ?>
};
<?php if($litespeed): ?>
<?php if ($litespeed): ?>
document.addEventListener("DOMContentLoaded", function() {
var head = document.getElementsByTagName('head')[0];
var script = document.createElement('script');

View file

@ -9,7 +9,7 @@
$list = [];
foreach ($clients as $client) {
if(empty($client)) {
if (empty($client)) {
continue;
}