Fix if for foreach while spacing

This commit is contained in:
Dennis Eichhorn 2017-10-27 17:56:33 +02:00
parent 2b1127ef56
commit e1b0cdce94
24 changed files with 34 additions and 34 deletions

View File

@ -11,7 +11,7 @@
* @version 1.0.0
* @link http://orange-management.com
*/
declare(strict_types=1);
declare(strict_types = 1);
namespace Modules\Kanban\Admin;
use phpOMS\DataStorage\Database\DatabasePool;

View File

@ -11,7 +11,7 @@
* @version 1.0.0
* @link http://orange-management.com
*/
declare(strict_types=1);
declare(strict_types = 1);
namespace Modules\Kanban\Admin;
use phpOMS\DataStorage\Database\DatabasePool;

View File

@ -11,7 +11,7 @@
* @version 1.0.0
* @link http://orange-management.com
*/
declare(strict_types=1);
declare(strict_types = 1);
namespace Modules\Kanban\Admin\Install;
use phpOMS\DataStorage\Database\DatabasePool;

View File

@ -11,7 +11,7 @@
* @version 1.0.0
* @link http://orange-management.com
*/
declare(strict_types=1);
declare(strict_types = 1);
namespace Modules\Kanban\Admin;
use phpOMS\DataStorage\Database\DatabaseType;

View File

@ -11,7 +11,7 @@
* @version 1.0.0
* @link http://orange-management.com
*/
declare(strict_types=1);
declare(strict_types = 1);
namespace Modules\Kanban\Admin;
use phpOMS\DataStorage\Database\DatabasePool;

View File

@ -11,7 +11,7 @@
* @version 1.0.0
* @link http://orange-management.com
*/
declare(strict_types=1);
declare(strict_types = 1);
namespace Modules\Kanban\Admin;
use phpOMS\DataStorage\Database\DatabasePool;

View File

@ -11,7 +11,7 @@
* @version 1.0.0
* @link http://orange-management.com
*/
declare(strict_types=1);
declare(strict_types = 1);
namespace Modules\Kanban;
use phpOMS\Message\RequestAbstract;

View File

@ -11,7 +11,7 @@
* @version 1.0.0
* @link http://orange-management.com
*/
declare(strict_types=1);
declare(strict_types = 1);
namespace Modules\Kanban\Models;
use phpOMS\Stdlib\Base\Enum;

View File

@ -11,7 +11,7 @@
* @version 1.0.0
* @link http://orange-management.com
*/
declare(strict_types=1);
declare(strict_types = 1);
namespace Modules\Kanban\Models;
use phpOMS\Stdlib\Base\Enum;

View File

@ -11,7 +11,7 @@
* @version 1.0.0
* @link http://orange-management.com
*/
declare(strict_types=1);
declare(strict_types = 1);
namespace Modules\Kanban\Models;

View File

@ -11,7 +11,7 @@
* @version 1.0.0
* @link http://orange-management.com
*/
declare(strict_types=1);
declare(strict_types = 1);
namespace Modules\Kanban\Models;
/**
@ -118,7 +118,7 @@ class KanbanBoard implements \JsonSerializable
public function removeColumn(int $id) : bool
{
if(isset($this->columns[$id])) {
if (isset($this->columns[$id])) {
unset($this->columns[$id]);
return true;

View File

@ -11,7 +11,7 @@
* @version 1.0.0
* @link http://orange-management.com
*/
declare(strict_types=1);
declare(strict_types = 1);
namespace Modules\Kanban\Models;
use phpOMS\DataStorage\Database\DataMapperAbstract;
@ -109,7 +109,7 @@ class KanbanBoardMapper extends DataMapperAbstract
try {
$objId = parent::create($obj, $relations);
if($objId === null || !is_scalar($objId)) {
if ($objId === null || !is_scalar($objId)) {
return $objId;
}
} catch (\Exception $e) {

View File

@ -11,7 +11,7 @@
* @version 1.0.0
* @link http://orange-management.com
*/
declare(strict_types=1);
declare(strict_types = 1);
namespace Modules\Kanban\Models;
use Modules\Media\Models\Media;
@ -160,7 +160,7 @@ class KanbanCard implements \JsonSerializable
public function removeComment(int $id) : bool
{
if(isset($this->comment[$id])) {
if (isset($this->comment[$id])) {
unset($this->comment[$id]);
return true;

View File

@ -11,7 +11,7 @@
* @version 1.0.0
* @link http://orange-management.com
*/
declare(strict_types=1);
declare(strict_types = 1);
namespace Modules\Kanban\Models;
use Modules\Media\Models\Media;

View File

@ -11,7 +11,7 @@
* @version 1.0.0
* @link http://orange-management.com
*/
declare(strict_types=1);
declare(strict_types = 1);
namespace Modules\Kanban\Models;
use phpOMS\DataStorage\Database\DataMapperAbstract;
@ -100,7 +100,7 @@ class KanbanCardCommentMapper extends DataMapperAbstract
try {
$objId = parent::create($obj, $relations);
if($objId === null || !is_scalar($objId)) {
if ($objId === null || !is_scalar($objId)) {
return $objId;
}
} catch (\Exception $e) {

View File

@ -11,7 +11,7 @@
* @version 1.0.0
* @link http://orange-management.com
*/
declare(strict_types=1);
declare(strict_types = 1);
namespace Modules\Kanban\Models;
use phpOMS\DataStorage\Database\DataMapperAbstract;
@ -125,7 +125,7 @@ class KanbanCardMapper extends DataMapperAbstract
try {
$objId = parent::create($obj, $relations);
if($objId === null || !is_scalar($objId)) {
if ($objId === null || !is_scalar($objId)) {
return $objId;
}
} catch (\Exception $e) {

View File

@ -11,7 +11,7 @@
* @version 1.0.0
* @link http://orange-management.com
*/
declare(strict_types=1);
declare(strict_types = 1);
namespace Modules\Kanban\Models;
@ -87,7 +87,7 @@ class KanbanColumn implements \JsonSerializable
public function removeCard(int $id) : bool
{
if(isset($this->cards[$id])) {
if (isset($this->cards[$id])) {
unset($this->cards[$id]);
return true;

View File

@ -11,7 +11,7 @@
* @version 1.0.0
* @link http://orange-management.com
*/
declare(strict_types=1);
declare(strict_types = 1);
namespace Modules\Kanban\Models;
use phpOMS\DataStorage\Database\DataMapperAbstract;
@ -90,7 +90,7 @@ class KanbanColumnMapper extends DataMapperAbstract
try {
$objId = parent::create($obj, $relations);
if($objId === null || !is_scalar($objId)) {
if ($objId === null || !is_scalar($objId)) {
return $objId;
}
} catch (\Exception $e) {

View File

@ -11,7 +11,7 @@
* @version 1.0.0
* @link http://orange-management.com
*/
declare(strict_types=1);
declare(strict_types = 1);
namespace Modules\Kanban\Models;
use Modules\Media\Models\Media;

View File

@ -11,7 +11,7 @@
* @version 1.0.0
* @link http://orange-management.com
*/
declare(strict_types=1);
declare(strict_types = 1);
namespace Modules\Kanban\Models;
use phpOMS\DataStorage\Database\DataMapperAbstract;
@ -75,7 +75,7 @@ class KanbanLabelMapper extends DataMapperAbstract
try {
$objId = parent::create($obj, $relations);
if($objId === null || !is_scalar($objId)) {
if ($objId === null || !is_scalar($objId)) {
return $objId;
}
} catch (\Exception $e) {

View File

@ -11,7 +11,7 @@
* @version 1.0.0
* @link http://orange-management.com
*/
declare(strict_types=1);
declare(strict_types = 1);
namespace Modules\Kanban\Models;

View File

@ -4,16 +4,16 @@ $columns = $board->getColumns();
// todo: column width should be % but with min-width and on small screens full width
?>
<div class="row">
<?php $i = 0; foreach($columns as $column) : $i++; $cards = $column->getCards(); ?>
<?php $i = 0; foreach ($columns as $column) : $i++; $cards = $column->getCards(); ?>
<div id="kanban-column-<?= $this->printHtml($i); ?>" class="col-xs-12 col-sm-3" draggable="true">
<header><?= $this->printHtml($column->getName()); ?></header>
<?php $j = 0; foreach($cards as $card) : $j++; $labels = $card->getLabels(); ?>
<?php $j = 0; foreach ($cards as $card) : $j++; $labels = $card->getLabels(); ?>
<a href="<?= $this->printHtml(\phpOMS\Uri\UriFactory::build('{/base}/{/lang}/backend/kanban/card?{?}&id=' . $card->getId())); ?>">
<section id="kanban-card-<?= $this->printHtml($i . '-' . $j); ?>" class="box wf-100" draggable="true">
<header><h1><?= $this->printHtml($card->getName()); ?></h1></header>
<div class="inner">
<?= $this->printHtml($card->getDescription()); ?>
<?php foreach($labels as $label) : ?>
<?php foreach ($labels as $label) : ?>
<span class="tag" style="background: #<?= $this->printHtml(dechex($label->getColor())); ?>"><?= $this->printHtml($label->getName()); ?></span>
<?php endforeach; ?>
</div>

View File

@ -14,7 +14,7 @@ $comments = $card->getComments();
</div>
</div>
<?php foreach($comments as $comment) : ?>
<?php foreach ($comments as $comment) : ?>
<div class="row">
<div class="col-xs-12">
<section class="box wf-100">

View File

@ -4,7 +4,7 @@ $boards = $this->getData('boards');
echo $this->getData('nav')->render(); ?>
<div class="row">
<?php foreach($boards as $board) : ?>
<?php foreach ($boards as $board) : ?>
<div class="col-xs-12 col-sm-6 col-lg-3">
<a href="<?= $this->printHtml(\phpOMS\Uri\UriFactory::build('{/base}/{/lang}/backend/kanban/board?{?}&id=' . $board->getId())); ?>">
<section class="box wf-100">