- Removes space between IF and statement

This commit is contained in:
Vlad
2016-05-18 09:26:36 -04:00
parent bf1ab3a593
commit 31e082eb2b
22 changed files with 48 additions and 48 deletions

View File

@ -8,9 +8,9 @@ class PostContentManager {
const MAX_EXCERPT_LENGTH = 60;
function getContent($post, $displayType) {
if ($displayType === 'titleOnly') {
if($displayType === 'titleOnly') {
return '';
} elseif ($displayType === 'excerpt') {
} elseif($displayType === 'excerpt') {
// get excerpt
if(!empty($post->post_excerpt)) {
return $post->post_excerpt;
@ -50,7 +50,7 @@ class PostContentManager {
private function generateExcerpt($content) {
// if excerpt is empty then try to find the "more" tag
$excerpts = explode('<!--more-->', $content);
if (count($excerpts) > 1) {
if(count($excerpts) > 1) {
// <!--more--> separator was present
return $excerpts[0];
} else {