Fix if for foreach while spacing

This commit is contained in:
Dennis Eichhorn 2017-10-27 17:56:33 +02:00
parent 67891cc7a8
commit 3bed65a9fa
11 changed files with 14 additions and 14 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -33,9 +33,9 @@ echo $this->getData('nav')->render(); ?>
<tr> <tr>
<td colspan="3"><?= $footerView->render(); ?> <td colspan="3"><?= $footerView->render(); ?>
<tbody> <tbody>
<?php $count = 0; foreach([] as $key => $value) : $count++; ?> <?php $count = 0; foreach ([] as $key => $value) : $count++; ?>
<?php endforeach; ?> <?php endforeach; ?>
<?php if($count === 0) : ?> <?php if ($count === 0) : ?>
<tr><td colspan="5" class="empty"><?= $this->getHtml('Empty', 0, 0); ?> <tr><td colspan="5" class="empty"><?= $this->getHtml('Empty', 0, 0); ?>
<?php endif; ?> <?php endif; ?>
</table> </table>