Completed
Push — master ( 925f8b...411610 )
by mains
03:48
created
php/View.php 1 patch
Braces   +13 added lines, -6 removed lines patch added patch discarded remove patch
@@ -48,7 +48,8 @@  discard block
 block discarded – undo
48 48
 	 * Compute HTML Code
49 49
 	 */
50 50
  	function jodelToHtml($post)
51
-    {   //ToDO
51
+ 	{
52
+//ToDO
52 53
         //Replace # with link
53 54
         //preg_replace('~(\#)([^\s!,. /()"\'?]+)~', '<a href="tag/$2">#$2</a>', $text);
54 55
 
@@ -104,7 +105,8 @@  discard block
 block discarded – undo
104 105
 
105 106
                     echo '<img src="' . $post['image_url'] . '" alt="' . htmlspecialchars(preg_replace($regexRest, '', $post['message'])) . '">';
106 107
                 }
107
-                else {
108
+                else
109
+                {
108 110
                     echo str_replace('  ', ' &nbsp;', nl2br(htmlspecialchars($post['message'])));
109 111
                 }
110 112
                 ?>
@@ -130,15 +132,20 @@  discard block
 block discarded – undo
130 132
                                 <span class="tiptext"><?php echo $d->format('Y-m-d H:i:s');?></span>
131 133
                             </span> 
132 134
                         </span>
133
-						<?php if(!$this->isDetailedView) {?>
135
+						<?php if(!$this->isDetailedView)
136
+{
137
+?>
134 138
                         <span class="comments">
135 139
                             <span data-tooltip="Comments">
136 140
                                 <a href="<?php echo $this->changePostId($post['post_id'])->toUrl();?>">
137 141
                                     <i class="fa fa-commenting-o"></i>
138 142
                                     <?php if(array_key_exists("child_count", $post))
139
-                                    {
143
+{
140 144
                                         echo $post["child_count"];
141
-                                    } else echo "0";
145
+                                    }
146
+                                    else {
147
+                                    	echo "0";
148
+                                    }
142 149
                                     ?>
143 150
                                 </a>
144 151
                             </span>
@@ -313,7 +320,7 @@  discard block
 block discarded – undo
313 320
             $data = $accountCreator->execute();
314 321
         }
315 322
     	if(is_array($data) && array_key_exists('recent', $data) && array_key_exists(0, $data['recent']))
316
-        {
323
+    	{
317 324
             return $data['recent'];
318 325
         }
319 326
         else if(is_array($data) && array_key_exists('posts', $data)&& array_key_exists(0, $data['posts']))
Please login to merge, or discard this patch.