added spaces (coding convention)

Signed-off-by: Roland Häder <roland@mxchange.org>
This commit is contained in:
Roland Häder 2017-01-27 11:53:56 +01:00 committed by Roland Haeder
parent 951006dd10
commit c2d8738285
No known key found for this signature in database
GPG Key ID: B72F8185C6C7BD78
11 changed files with 336 additions and 330 deletions

View File

@ -1,6 +1,7 @@
<?php
if(class_exists('BaseObject'))
if (class_exists('BaseObject')) {
return;
}
require_once('boot.php');
@ -18,8 +19,9 @@ class BaseObject {
* Same as get_app from boot.php
*/
public function get_app() {
if(self::$app)
if (self::$app) {
return self::$app;
}
self::$app = get_app();

View File

@ -1,6 +1,7 @@
<?php
if(class_exists('Conversation'))
if (class_exists('Conversation')) {
return;
}
require_once('boot.php');
require_once('object/BaseObject.php');
@ -133,8 +134,9 @@ class Conversation extends BaseObject {
$i = 0;
foreach ($this->threads as $item) {
if($item->get_data_value('network') === NETWORK_MAIL && local_user() != $item->get_data_value('uid'))
if ($item->get_data_value('network') === NETWORK_MAIL && local_user() != $item->get_data_value('uid')) {
continue;
}
$item_data = $item->get_template_data($conv_responses);
@ -157,9 +159,10 @@ class Conversation extends BaseObject {
*/
private function get_thread($id) {
foreach ($this->threads as $item) {
if($item->get_id() == $id)
if ($item->get_id() == $id) {
return $item;
}
}
return false;
}

View File

@ -1,6 +1,7 @@
<?php
if(class_exists('Item'))
if (class_exists('Item')) {
return;
}
require_once('object/BaseObject.php');
require_once('include/text.php');