@@ -41,7 +41,7 @@ discard block |
||
| 41 | 41 | Loader::load('collector', 'image/PhotoCollector'); |
| 42 | 42 | $photo_result = PhotoCollector::getRow($id); |
| 43 | 43 | |
| 44 | - if($photo_result == null) |
|
| 44 | + if ($photo_result == null) |
|
| 45 | 45 | return; |
| 46 | 46 | |
| 47 | 47 | $name = $photo_result->name; |
@@ -92,7 +92,7 @@ discard block |
||
| 92 | 92 | $tag_result = $repository->getTagsForPost($post['id']); |
| 93 | 93 | |
| 94 | 94 | $tag_array = array(); |
| 95 | - foreach($tag_result as $tag) |
|
| 95 | + foreach ($tag_result as $tag) |
|
| 96 | 96 | { |
| 97 | 97 | $tag_object = new stdclass(); |
| 98 | 98 | $tag_object->name = $tag['tag']; |
@@ -106,7 +106,7 @@ discard block |
||
| 106 | 106 | { |
| 107 | 107 | $body = $post['body']; |
| 108 | 108 | |
| 109 | - if($trim) |
|
| 109 | + if ($trim) |
|
| 110 | 110 | $body = Content::instance('SmartTrim', $body)->activate(self::$LENGTH_OF_TRIMMED_POST); |
| 111 | 111 | |
| 112 | 112 | $body = Content::instance('FixPhoto', $body)->activate(false, 'standard'); |
@@ -132,9 +132,9 @@ discard block |
||
| 132 | 132 | $maximum_tag_count = $this->get_maximum_tag_count($tag_result); |
| 133 | 133 | |
| 134 | 134 | $cloud_array = array(); |
| 135 | - foreach($tag_result as $tag) |
|
| 135 | + foreach ($tag_result as $tag) |
|
| 136 | 136 | { |
| 137 | - if($tag['count'] < self::$MINIMUM_TAG_COUNT) |
|
| 137 | + if ($tag['count'] < self::$MINIMUM_TAG_COUNT) |
|
| 138 | 138 | continue; |
| 139 | 139 | |
| 140 | 140 | $tag_object = new stdclass(); |
@@ -151,9 +151,9 @@ discard block |
||
| 151 | 151 | { |
| 152 | 152 | $maximum = 1; |
| 153 | 153 | |
| 154 | - foreach($tag_result as $tag) |
|
| 154 | + foreach ($tag_result as $tag) |
|
| 155 | 155 | { |
| 156 | - if($tag['count'] > $maximum) |
|
| 156 | + if ($tag['count'] > $maximum) |
|
| 157 | 157 | $maximum = $tag['count']; |
| 158 | 158 | } |
| 159 | 159 | return $maximum; |
@@ -164,7 +164,7 @@ discard block |
||
| 164 | 164 | $comment_array = CommentCollector::getRecentBlogComments(self::$RECENT_COMMENT_COUNT); |
| 165 | 165 | |
| 166 | 166 | $array = array(); |
| 167 | - foreach($comment_array as $comment) |
|
| 167 | + foreach ($comment_array as $comment) |
|
| 168 | 168 | { |
| 169 | 169 | $body = $comment->body; |
| 170 | 170 | $body = strip_tags($body); |