@@ -18,7 +18,7 @@ discard block |
||
18 | 18 | if(!isset($_COOKIE["JodelDeviceId"])) |
19 | 19 | { |
20 | 20 | $deviceUid = createAccount(); |
21 | - setcookie("JodelDeviceId", $deviceUid, time()+60*60*24*365*10); |
|
21 | + setcookie("JodelDeviceId", $deviceUid, time() + 60 * 60 * 24 * 365 * 10); |
|
22 | 22 | |
23 | 23 | } |
24 | 24 | else |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | |
38 | 38 | if(isset($_GET['view'])) |
39 | 39 | { |
40 | - switch ($_GET['view']) { |
|
40 | + switch($_GET['view']) { |
|
41 | 41 | case 'comment': |
42 | 42 | $view = 'comment'; |
43 | 43 | break; |
@@ -56,13 +56,13 @@ discard block |
||
56 | 56 | $view = 'time'; |
57 | 57 | } |
58 | 58 | |
59 | - if($view=='comment') |
|
59 | + if($view == 'comment') |
|
60 | 60 | { |
61 | 61 | $url = "/v2/posts/location/discussed/"; |
62 | 62 | } |
63 | 63 | else |
64 | 64 | { |
65 | - if($view=='upVote') |
|
65 | + if($view == 'upVote') |
|
66 | 66 | { |
67 | 67 | $url = "/v2/posts/location/popular/"; |
68 | 68 | } |
@@ -82,7 +82,7 @@ discard block |
||
82 | 82 | ?> |
83 | 83 | <div class="nextPosts"> |
84 | 84 | <?php |
85 | - for($i = 0; $i<$loops; $i++) |
|
85 | + for($i = 0; $i < $loops; $i++) |
|
86 | 86 | { |
87 | 87 | if(isset($posts[$i])) |
88 | 88 | { |