@@ -115,7 +115,7 @@ discard block |
||
| 115 | 115 | **/ |
| 116 | 116 | public static function prepareCardHtml($parameters, $post) |
| 117 | 117 | { |
| 118 | - if (! is_null($post)) { |
|
| 118 | + if (!is_null($post)) { |
|
| 119 | 119 | $ret = "<div class='row featurette' style='".$parameters['bkg_color'].' '.$parameters['text_color']."'>"; |
| 120 | 120 | if ($parameters['container_wrap']) { |
| 121 | 121 | $ret .= "<div class='container'>"; |
@@ -125,7 +125,7 @@ discard block |
||
| 125 | 125 | $ret .= "<div class='lead mb-4'>".$post['body'].'</div>'; |
| 126 | 126 | $ret .= '</div>'; |
| 127 | 127 | $ret .= "<div class='image ".$parameters['img_col_size_class'].' '.$parameters['img_col_order_class']."'>"; |
| 128 | - if (! empty($post['post_image_src'])) { |
|
| 128 | + if (!empty($post['post_image_src'])) { |
|
| 129 | 129 | $ret .= "<img class='featurette-image img-fluid mx-auto' src='".$post['image']."' alt='".$post['image_alt']."'>"; |
| 130 | 130 | } |
| 131 | 131 | $ret .= '</div>'; |
@@ -153,7 +153,7 @@ discard block |
||
| 153 | 153 | { |
| 154 | 154 | $matches = self::getCardSnippetOccurrences($text); |
| 155 | 155 | |
| 156 | - if ($matches){ |
|
| 156 | + if ($matches) { |
|
| 157 | 157 | foreach ($matches as $key => $single_gallery_matches) { |
| 158 | 158 | $parameters = self::getParameters($single_gallery_matches); |
| 159 | 159 | $post = self::getPost($parameters['post_id']); |