@@ -57,7 +57,7 @@ |
||
57 | 57 | $this->mergeConfigFrom(__DIR__.'/../config/config.php', 'laravel-cards'); |
58 | 58 | |
59 | 59 | // Register the main class to use with the facade |
60 | - $this->app->singleton('laravel-cards', function () { |
|
60 | + $this->app->singleton('laravel-cards', function() { |
|
61 | 61 | return new LaravelCards; |
62 | 62 | }); |
63 | 63 | } |
@@ -88,15 +88,15 @@ |
||
88 | 88 | $imageAlignment = $matches[4]; |
89 | 89 | |
90 | 90 | switch ($imageAlignment) { |
91 | - case 'left': |
|
91 | + case 'left': |
|
92 | 92 | $ret['img_col_order_class'] = 'order-md-1'; |
93 | - $ret['text_col_order_class'] = 'order-md-2'; |
|
94 | - break; |
|
95 | - case 'right': |
|
93 | + $ret['text_col_order_class'] = 'order-md-2'; |
|
94 | + break; |
|
95 | + case 'right': |
|
96 | 96 | $ret['img_col_order_class'] = 'order-md-2'; |
97 | - $ret['text_col_order_class'] = 'order-md-1'; |
|
98 | - break; |
|
99 | - } |
|
97 | + $ret['text_col_order_class'] = 'order-md-1'; |
|
98 | + break; |
|
99 | + } |
|
100 | 100 | |
101 | 101 | //dump($ret); |
102 | 102 |
@@ -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']); |