Add space between if and ‘(‘

[MAILPOET-1791]
This commit is contained in:
Ján Mikláš
2019-02-13 13:08:49 +01:00
committed by M. Shull
parent a935b091d3
commit 3ee58aea10
333 changed files with 4001 additions and 4001 deletions

View File

@ -1,7 +1,7 @@
<?php
namespace MailPoet\Newsletter\Editor;
if(!defined('ABSPATH')) exit;
if (!defined('ABSPATH')) exit;
class MetaInformationManager {
@ -11,14 +11,14 @@ class MetaInformationManager {
$position_field = $position . 'Text';
$text = array();
if($args['showAuthor'] === $position_field) {
if ($args['showAuthor'] === $position_field) {
$text[] = self::getPostAuthor(
$post->post_author,
$args['authorPrecededBy']
);
}
if($args['showCategories'] === $position_field) {
if ($args['showCategories'] === $position_field) {
$text[] = self::getPostCategories(
$post->ID,
$post->post_type,
@ -26,9 +26,9 @@ class MetaInformationManager {
);
}
if(!empty($text)) {
if (!empty($text)) {
$text = '<p>' . implode('<br />', $text) . '</p>';
if($position === 'above') $content = $text . $content;
if ($position === 'above') $content = $text . $content;
else if ($position === 'below') $content .= $text;
}
}
@ -46,9 +46,9 @@ class MetaInformationManager {
array('category'),
array('fields' => 'names')
);
if(!empty($categories)) {
if (!empty($categories)) {
// check if the user specified a label to be displayed before the author's name
if(strlen($preceded_by) > 0) {
if (strlen($preceded_by) > 0) {
$content = stripslashes($preceded_by) . ' ';
} else {
$content = '';
@ -64,7 +64,7 @@ class MetaInformationManager {
$author_name = get_the_author_meta('display_name', (int)$author_id);
$preceded_by = trim($preceded_by);
if(strlen($preceded_by) > 0) {
if (strlen($preceded_by) > 0) {
$author_name = stripslashes($preceded_by) . ' ' . $author_name;
}