@@ -282,18 +282,18 @@ |
||
282 | 282 | $type = 'string'; |
283 | 283 | $fieldType = $field['AttributeTypeName']['Value']; |
284 | 284 | if (in_array($fieldType, [ |
285 | - 'LookupType', |
|
286 | - 'OwnerType', |
|
287 | - 'PicklistType', |
|
288 | - 'StateType', |
|
289 | - 'StatusType', |
|
290 | - 'UniqueidentifierType', |
|
285 | + 'LookupType', |
|
286 | + 'OwnerType', |
|
287 | + 'PicklistType', |
|
288 | + 'StateType', |
|
289 | + 'StatusType', |
|
290 | + 'UniqueidentifierType', |
|
291 | 291 | ], true)) { |
292 | 292 | continue; |
293 | 293 | } elseif (in_array($fieldType, [ |
294 | 294 | 'DoubleType', |
295 | - 'IntegerType', |
|
296 | - 'MoneyType', |
|
295 | + 'IntegerType', |
|
296 | + 'MoneyType', |
|
297 | 297 | ], true)) { |
298 | 298 | $type = 'int'; |
299 | 299 | } elseif ('Boolean' === $fieldType) { |
@@ -264,7 +264,7 @@ |
||
264 | 264 | return new JsonResponse( |
265 | 265 | [ |
266 | 266 | 'closeModal' => true, |
267 | - 'flashes' => $this->getFlashContent(), |
|
267 | + 'flashes' => $this->getFlashContent(), |
|
268 | 268 | ] |
269 | 269 | ); |
270 | 270 | } |
@@ -84,11 +84,11 @@ |
||
84 | 84 | $data = []; |
85 | 85 | |
86 | 86 | foreach ([ |
87 | - 'facebook' => 'http://www.facebook.com/', |
|
88 | - 'googleplus' => 'http://plus.google.com/', |
|
89 | - 'linkedin' => 'http://www.linkedin.com/', |
|
90 | - 'twitter' => 'http://www.twitter.com/', |
|
91 | - ] as $p => $u) { |
|
87 | + 'facebook' => 'http://www.facebook.com/', |
|
88 | + 'googleplus' => 'http://plus.google.com/', |
|
89 | + 'linkedin' => 'http://www.linkedin.com/', |
|
90 | + 'twitter' => 'http://www.twitter.com/', |
|
91 | + ] as $p => $u) { |
|
92 | 92 | foreach ($result as $type => $socialProfile) { |
93 | 93 | if ($type === $p && empty($currFields[$p]['value'])) { |
94 | 94 | $data[$p] = (array_key_exists('handle', $socialProfile) && $socialProfile['handle']) ? $u.$socialProfile['handle'] : ''; |
@@ -153,6 +153,9 @@ |
||
153 | 153 | ] |
154 | 154 | ); ?> |
155 | 155 | </div> |
156 | -<?php else: ?> |
|
157 | - <?php echo $view->render('MauticCoreBundle:Helper:noresults.html.php', ['tip' => 'mautic.focus.noresults.tip']); ?> |
|
156 | +<?php else { |
|
157 | + : ?> |
|
158 | + <?php echo $view->render('MauticCoreBundle:Helper:noresults.html.php', ['tip' => 'mautic.focus.noresults.tip']); |
|
159 | +} |
|
160 | +?> |
|
158 | 161 | <?php endif; ?> |
@@ -22,9 +22,9 @@ |
||
22 | 22 | 'method' => $method, |
23 | 23 | 'parameters' => $parameters, |
24 | 24 | 'requestSettings' => [ |
25 | - 'headers' => [ |
|
26 | - 'Accept' => 'application/json;charset=UTF-8', |
|
27 | - ], |
|
25 | + 'headers' => [ |
|
26 | + 'Accept' => 'application/json;charset=UTF-8', |
|
27 | + ], |
|
28 | 28 | ], |
29 | 29 | ]; |
30 | 30 |
@@ -117,7 +117,10 @@ |
||
117 | 117 | ] |
118 | 118 | ); ?> |
119 | 119 | </div> |
120 | -<?php else: ?> |
|
121 | - <?php echo $view->render('MauticCoreBundle:Helper:noresults.html.php', ['tip' => 'mautic.mautic.social.tweet.noresults.tip']); ?> |
|
120 | +<?php else { |
|
121 | + : ?> |
|
122 | + <?php echo $view->render('MauticCoreBundle:Helper:noresults.html.php', ['tip' => 'mautic.mautic.social.tweet.noresults.tip']); |
|
123 | +} |
|
124 | +?> |
|
122 | 125 | <?php endif; ?> |
123 | 126 |
@@ -16,8 +16,10 @@ |
||
16 | 16 | $fontSize = ($t['count'] / 10) + 1; |
17 | 17 | elseif ($t['count'] / 10 > 2): |
18 | 18 | $fontSize = 2; |
19 | - else: |
|
19 | + else { |
|
20 | + : |
|
20 | 21 | $fontSize = $t['count'] / 10; |
22 | + } |
|
21 | 23 | endif; ?> |
22 | 24 | |
23 | 25 | <li style="font-size: <?php echo $fontSize; ?>em"><a href="<?php echo $t['url']; ?>" target="_new"><?php echo $tag; ?></a></li> |
@@ -16,11 +16,11 @@ |
||
16 | 16 | |
17 | 17 | <?php foreach ($activity as $item): ?> |
18 | 18 | <?php |
19 | - $border = 'bdr-b bdr-l-wdh-0 bdr-r-wdh-0'; |
|
20 | - if ($i == 0 || $i == ($total - 1)): |
|
19 | + $border = 'bdr-b bdr-l-wdh-0 bdr-r-wdh-0'; |
|
20 | + if ($i == 0 || $i == ($total - 1)): |
|
21 | 21 | $border = 'bdr-w-0'; |
22 | - endif; |
|
23 | - ?> |
|
22 | + endif; |
|
23 | + ?> |
|
24 | 24 | <li class="<?php echo $border; ?> pa-15 list-group-item"> |
25 | 25 | <p><?php echo $item['tweet']; ?></p> |
26 | 26 | <span class="text-muted"><i class="fa fa-clock-o"></i> <?php echo $view['date']->toFull($item['published']); ?></span> |
@@ -50,7 +50,7 @@ |
||
50 | 50 | <div class="pa-20 tab-pane" id="TwitterPhotos"> |
51 | 51 | <?php echo $view->render('MauticSocialBundle:Integration/Twitter/Profile:photos.html.php', [ |
52 | 52 | 'lead' => $lead, |
53 | - 'activity' => (!empty($details['activity']['photos'])) ? $details['activity']['photos'] : [], |
|
53 | + 'activity' => (!empty($details['activity']['photos'])) ? $details['activity']['photos'] : [], |
|
54 | 54 | ]); ?> |
55 | 55 | </div> |
56 | 56 | <div class="pa-20 tab-pane" id="TwitterTags"> |