Passed
Push — staging ( 9639f2...81b4f0 )
by
unknown
13:26 queued 10s
created
app/bundles/LeadBundle/Views/Lead/header/name.html.php 1 patch
Switch Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@  discard block
 block discarded – undo
1
-<?php
1
+    <?php
2 2
 
3 3
 /*
4 4
  * @copyright   2019 Mautic Contributors. All rights reserved
@@ -9,9 +9,9 @@  discard block
 block discarded – undo
9 9
  * @license     GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
10 10
  */
11 11
 
12
-echo $view->render('MauticCoreBundle:Helper:tableheader.html.php', [
13
-    'sessionVar' => 'lead',
14
-    'orderBy'    => 'l.lastname, l.firstname, l.company, l.email',
15
-    'text'       => 'mautic.core.name',
16
-    'class'      => 'col-lead-name '.$class,
17
-]);
12
+    echo $view->render('MauticCoreBundle:Helper:tableheader.html.php', [
13
+        'sessionVar' => 'lead',
14
+        'orderBy'    => 'l.lastname, l.firstname, l.company, l.email',
15
+        'text'       => 'mautic.core.name',
16
+        'class'      => 'col-lead-name '.$class,
17
+    ]);
Please login to merge, or discard this patch.
app/bundles/LeadBundle/Views/Lead/header/default.html.php 1 patch
Switch Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@  discard block
 block discarded – undo
1
-<?php
1
+    <?php
2 2
 
3 3
 /*
4 4
  * @copyright   2019 Mautic Contributors. All rights reserved
@@ -9,9 +9,9 @@  discard block
 block discarded – undo
9 9
  * @license     GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
10 10
  */
11 11
 
12
-echo $view->render('MauticCoreBundle:Helper:tableheader.html.php', [
13
-    'sessionVar' => 'lead',
14
-    'orderBy'    => 'l.'.$column,
15
-    'text'       => $label,
16
-    'class'      => 'col-lead-'.$column.' '.$class,
17
-]);
12
+    echo $view->render('MauticCoreBundle:Helper:tableheader.html.php', [
13
+        'sessionVar' => 'lead',
14
+        'orderBy'    => 'l.'.$column,
15
+        'text'       => $label,
16
+        'class'      => 'col-lead-'.$column.' '.$class,
17
+    ]);
Please login to merge, or discard this patch.
app/bundles/LeadBundle/Views/Lead/header/stage.html.php 1 patch
Switch Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@  discard block
 block discarded – undo
1
-<?php
1
+    <?php
2 2
 
3 3
 /*
4 4
  * @copyright   2019 Mautic Contributors. All rights reserved
@@ -9,9 +9,9 @@  discard block
 block discarded – undo
9 9
  * @license     GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
10 10
  */
11 11
 
12
-echo $view->render('MauticCoreBundle:Helper:tableheader.html.php', [
13
-    'sessionVar' => 'lead',
14
-    'orderBy'    => 'l.stage_id',
15
-    'text'       => 'mautic.lead.stage.label',
16
-    'class'      => 'col-lead-stage '.$class,
17
-]);
12
+    echo $view->render('MauticCoreBundle:Helper:tableheader.html.php', [
13
+        'sessionVar' => 'lead',
14
+        'orderBy'    => 'l.stage_id',
15
+        'text'       => 'mautic.lead.stage.label',
16
+        'class'      => 'col-lead-stage '.$class,
17
+    ]);
Please login to merge, or discard this patch.
app/bundles/LeadBundle/Views/Lead/header/location.html.php 1 patch
Switch Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@  discard block
 block discarded – undo
1
-<?php
1
+    <?php
2 2
 
3 3
 /*
4 4
  * @copyright   2019 Mautic Contributors. All rights reserved
@@ -9,9 +9,9 @@  discard block
 block discarded – undo
9 9
  * @license     GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
10 10
  */
11 11
 
12
-echo $view->render('MauticCoreBundle:Helper:tableheader.html.php', [
13
-    'sessionVar' => 'lead',
14
-    'orderBy'    => 'l.city, l.state',
15
-    'text'       => 'mautic.lead.lead.thead.location',
16
-    'class'      => 'col-lead-location '.$class,
17
-]);
12
+    echo $view->render('MauticCoreBundle:Helper:tableheader.html.php', [
13
+        'sessionVar' => 'lead',
14
+        'orderBy'    => 'l.city, l.state',
15
+        'text'       => 'mautic.lead.lead.thead.location',
16
+        'class'      => 'col-lead-location '.$class,
17
+    ]);
Please login to merge, or discard this patch.
app/bundles/LeadBundle/Form/Type/ConfigType.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
             ]
37 37
         );
38 38
 
39
-        $formModifier = function (FormInterface $form, $currentColumns) {
39
+        $formModifier = function(FormInterface $form, $currentColumns) {
40 40
             $order        = [];
41 41
             $orderColumns = [];
42 42
             if (!empty($currentColumns)) {
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
 
70 70
         $builder->addEventListener(
71 71
             FormEvents::PRE_SET_DATA,
72
-            function (FormEvent $event) use ($formModifier) {
72
+            function(FormEvent $event) use ($formModifier) {
73 73
                 $data = $event->getData();
74 74
                 $columns = isset($data['contact_columns']) ? $data['contact_columns'] : [];
75 75
                 $formModifier($event->getForm(), $columns);
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
         // Build the columns selector
80 80
         $builder->addEventListener(
81 81
             FormEvents::PRE_SUBMIT,
82
-            function (FormEvent $event) use ($formModifier) {
82
+            function(FormEvent $event) use ($formModifier) {
83 83
                 $data    = $event->getData();
84 84
                 $columns = isset($data['contact_columns']) ? $data['contact_columns'] : [];
85 85
                 $formModifier($event->getForm(), $columns);
Please login to merge, or discard this patch.
app/bundles/LeadBundle/Form/Type/ContactColumnsType.php 1 patch
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -34,17 +34,17 @@
 block discarded – undo
34 34
     public function configureOptions(OptionsResolver $resolver)
35 35
     {
36 36
         $resolver->setDefaults(
37
-          [
38
-              'choices'    => array_flip($this->columnsDictionary->getFields()),
39
-              'label'      => false,
40
-              'label_attr' => ['class' => 'control-label'],
41
-              'required'   => false,
42
-              'multiple'   => true,
43
-              'expanded'   => false,
44
-              'attr'       => [
45
-                  'class'         => 'form-control',
46
-              ],
47
-          ]
37
+            [
38
+                'choices'    => array_flip($this->columnsDictionary->getFields()),
39
+                'label'      => false,
40
+                'label_attr' => ['class' => 'control-label'],
41
+                'required'   => false,
42
+                'multiple'   => true,
43
+                'expanded'   => false,
44
+                'attr'       => [
45
+                    'class'         => 'form-control',
46
+                ],
47
+            ]
48 48
         );
49 49
     }
50 50
 
Please login to merge, or discard this patch.
app/bundles/LeadBundle/Views/Lead/row/id.html.php 1 patch
Switch Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@  discard block
 block discarded – undo
1
-<?php
1
+    <?php
2 2
 
3 3
 /*
4 4
  * @copyright   2019 Mautic Contributors. All rights reserved
@@ -9,8 +9,8 @@  discard block
 block discarded – undo
9 9
  * @license     GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
10 10
  */
11 11
 
12
-?>
13
-<td class="<?php echo $class; ?>">
12
+    ?>
13
+    <td class="<?php echo $class; ?>">
14 14
     <a href="<?php echo $view['router']->path('mautic_contact_action', ['objectAction' => 'view', 'objectId' => $item->getId()]); ?>" data-toggle="ajax">
15 15
     <?php echo $item->getId(); ?>
16 16
     </a>
Please login to merge, or discard this patch.
app/bundles/LeadBundle/Views/Lead/list_rows.html.php 1 patch
Switch Indentation   +82 added lines, -82 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@  discard block
 block discarded – undo
1
-<?php
1
+    <?php
2 2
 
3 3
 /*
4 4
  * @copyright   2014 Mautic Contributors. All rights reserved
@@ -8,98 +8,98 @@  discard block
 block discarded – undo
8 8
  *
9 9
  * @license     GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
10 10
  */
11
-?>
12
-        <?php foreach ($items as $item): ?>
13
-            <?php /** @var \Mautic\LeadBundle\Entity\Lead $item */ ?>
14
-            <?php $fields = $item->getFields(); ?>
15
-            <tr<?php if (!empty($highlight)): echo ' class="warning"'; endif; ?>>
11
+    ?>
12
+            <?php foreach ($items as $item): ?>
13
+                <?php /** @var \Mautic\LeadBundle\Entity\Lead $item */ ?>
14
+                <?php $fields = $item->getFields(); ?>
15
+                <tr<?php if (!empty($highlight)): echo ' class="warning"'; endif; ?>>
16 16
                 <td>
17 17
                     <?php
18
-                    $hasEditAccess = $security->hasEntityAccess(
19
-                        $permissions['lead:leads:editown'],
20
-                        $permissions['lead:leads:editother'],
21
-                        $item->getPermissionUser()
22
-                    );
18
+                        $hasEditAccess = $security->hasEntityAccess(
19
+                            $permissions['lead:leads:editown'],
20
+                            $permissions['lead:leads:editother'],
21
+                            $item->getPermissionUser()
22
+                        );
23 23
 
24
-                    $custom = [];
24
+                        $custom = [];
25 25
 
26
-                    $custom[] = [
27
-                        'attr'      => [
28
-                            'href'        => $view['router']->path(
29
-                                'mautic_contact_action',
30
-                                [
31
-                                    'objectAction' => 'view',
32
-                                    'objectId'     => $item->getId(),
33
-                                ]
34
-                            ),
35
-                            'data-toggle' => 'ajax',
36
-                            'data-method' => 'POST',
37
-                        ],
38
-                        'btnText'   => 'mautic.core.details',
39
-                        'iconClass' => 'fa fa-info-circle',
40
-                    ];
41
-
42
-                    if ($hasEditAccess && !empty($currentList)) {
43
-                        //this lead was manually added to a list so give an option to remove them
44 26
                         $custom[] = [
45
-                            'attr' => [
46
-                                'href' => $view['router']->path('mautic_segment_action', [
47
-                                    'objectAction' => 'removeLead',
48
-                                    'objectId'     => $currentList['id'],
49
-                                    'leadId'       => $item->getId(),
50
-                                ]),
27
+                            'attr'      => [
28
+                                'href'        => $view['router']->path(
29
+                                    'mautic_contact_action',
30
+                                    [
31
+                                        'objectAction' => 'view',
32
+                                        'objectId'     => $item->getId(),
33
+                                    ]
34
+                                ),
51 35
                                 'data-toggle' => 'ajax',
52 36
                                 'data-method' => 'POST',
53 37
                             ],
54
-                            'btnText'   => 'mautic.lead.lead.remove.fromlist',
55
-                            'iconClass' => 'fa fa-remove',
38
+                            'btnText'   => 'mautic.core.details',
39
+                            'iconClass' => 'fa fa-info-circle',
56 40
                         ];
57
-                    }
58 41
 
59
-                    if (!empty($fields['core']['email']['value'])) {
60
-                        $custom[] = [
61
-                            'attr' => [
62
-                                'data-toggle' => 'ajaxmodal',
63
-                                'data-target' => '#MauticSharedModal',
64
-                                'data-header' => $view['translator']->trans('mautic.lead.email.send_email.header', ['%email%' => $fields['core']['email']['value']]),
65
-                                'href'        => $view['router']->path('mautic_contact_action', ['objectId' => $item->getId(), 'objectAction' => 'email', 'list' => 1]),
66
-                            ],
67
-                            'btnText'   => 'mautic.lead.email.send_email',
68
-                            'iconClass' => 'fa fa-send',
69
-                        ];
70
-                    }
42
+                        if ($hasEditAccess && !empty($currentList)) {
43
+                            //this lead was manually added to a list so give an option to remove them
44
+                            $custom[] = [
45
+                                'attr' => [
46
+                                    'href' => $view['router']->path('mautic_segment_action', [
47
+                                        'objectAction' => 'removeLead',
48
+                                        'objectId'     => $currentList['id'],
49
+                                        'leadId'       => $item->getId(),
50
+                                    ]),
51
+                                    'data-toggle' => 'ajax',
52
+                                    'data-method' => 'POST',
53
+                                ],
54
+                                'btnText'   => 'mautic.lead.lead.remove.fromlist',
55
+                                'iconClass' => 'fa fa-remove',
56
+                            ];
57
+                        }
71 58
 
72
-                    echo $view->render('MauticCoreBundle:Helper:list_actions.html.php', [
73
-                        'item'            => $item,
74
-                        'templateButtons' => [
75
-                            'edit'   => $hasEditAccess,
76
-                            'delete' => $security->hasEntityAccess($permissions['lead:leads:deleteown'], $permissions['lead:leads:deleteother'], $item->getPermissionUser()),
77
-                        ],
78
-                        'routeBase'     => 'contact',
79
-                        'langVar'       => 'lead.lead',
80
-                        'customButtons' => $custom,
81
-                    ]);
82
-                    ?>
83
-                </td>
59
+                        if (!empty($fields['core']['email']['value'])) {
60
+                            $custom[] = [
61
+                                'attr' => [
62
+                                    'data-toggle' => 'ajaxmodal',
63
+                                    'data-target' => '#MauticSharedModal',
64
+                                    'data-header' => $view['translator']->trans('mautic.lead.email.send_email.header', ['%email%' => $fields['core']['email']['value']]),
65
+                                    'href'        => $view['router']->path('mautic_contact_action', ['objectId' => $item->getId(), 'objectAction' => 'email', 'list' => 1]),
66
+                                ],
67
+                                'btnText'   => 'mautic.lead.email.send_email',
68
+                                'iconClass' => 'fa fa-send',
69
+                            ];
70
+                        }
71
+
72
+                        echo $view->render('MauticCoreBundle:Helper:list_actions.html.php', [
73
+                            'item'            => $item,
74
+                            'templateButtons' => [
75
+                                'edit'   => $hasEditAccess,
76
+                                'delete' => $security->hasEntityAccess($permissions['lead:leads:deleteown'], $permissions['lead:leads:deleteother'], $item->getPermissionUser()),
77
+                            ],
78
+                            'routeBase'     => 'contact',
79
+                            'langVar'       => 'lead.lead',
80
+                            'customButtons' => $custom,
81
+                        ]);
82
+                        ?>
83
+                    </td>
84 84
                 <?php
85
-                $columsAliases = array_flip($columns);
86
-                foreach ($columns as $column=>$label) {
87
-                    $template = 'MauticLeadBundle:Lead\row:'.$column.'.html.php';
88
-                    if (!$view->exists($template)) {
89
-                        $template = 'MauticLeadBundle:Lead\row:default.html.php';
85
+                    $columsAliases = array_flip($columns);
86
+                    foreach ($columns as $column=>$label) {
87
+                        $template = 'MauticLeadBundle:Lead\row:'.$column.'.html.php';
88
+                        if (!$view->exists($template)) {
89
+                            $template = 'MauticLeadBundle:Lead\row:default.html.php';
90
+                        }
91
+                        echo $view->render(
92
+                            $template,
93
+                            [
94
+                                'item'          => $item,
95
+                                'fields'        => $fields,
96
+                                'label'         => $label,
97
+                                'column'        => $column,
98
+                                'noContactList' => $noContactList,
99
+                                'class'         => array_search($column, $columsAliases) > 1 ? 'hidden-xs' : '',
100
+                            ]
101
+                        );
90 102
                     }
91
-                    echo $view->render(
92
-                        $template,
93
-                        [
94
-                            'item'          => $item,
95
-                            'fields'        => $fields,
96
-                            'label'         => $label,
97
-                            'column'        => $column,
98
-                            'noContactList' => $noContactList,
99
-                            'class'         => array_search($column, $columsAliases) > 1 ? 'hidden-xs' : '',
100
-                        ]
101
-                    );
102
-                }
103
-                ?>
104
-            </tr>
103
+                    ?>
104
+                </tr>
105 105
         <?php endforeach; ?>
Please login to merge, or discard this patch.
app/bundles/LeadBundle/Views/Lead/list.html.php 1 patch
Switch Indentation   +105 added lines, -105 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@  discard block
 block discarded – undo
1
-<?php
1
+    <?php
2 2
 
3 3
 /*
4 4
  * @copyright   2014 Mautic Contributors. All rights reserved
@@ -8,131 +8,131 @@  discard block
 block discarded – undo
8 8
  *
9 9
  * @license     GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
10 10
  */
11
-if ('index' == $tmpl) {
12
-    $view->extend('MauticLeadBundle:Lead:index.html.php');
11
+    if ('index' == $tmpl) {
12
+        $view->extend('MauticLeadBundle:Lead:index.html.php');
13 13
 }
14 14
 
15
-$customButtons = [];
16
-if ($permissions['lead:leads:editown'] || $permissions['lead:leads:editother']) {
17
-    $customButtons = [
18
-        [
19
-            'attr' => [
20
-                'class'       => 'btn btn-default btn-sm btn-nospin',
21
-                'data-toggle' => 'ajaxmodal',
22
-                'data-target' => '#MauticSharedModal',
23
-                'href'        => $view['router']->path('mautic_segment_batch_contact_view'),
24
-                'data-header' => $view['translator']->trans('mautic.lead.batch.lists'),
15
+    $customButtons = [];
16
+    if ($permissions['lead:leads:editown'] || $permissions['lead:leads:editother']) {
17
+        $customButtons = [
18
+            [
19
+                'attr' => [
20
+                    'class'       => 'btn btn-default btn-sm btn-nospin',
21
+                    'data-toggle' => 'ajaxmodal',
22
+                    'data-target' => '#MauticSharedModal',
23
+                    'href'        => $view['router']->path('mautic_segment_batch_contact_view'),
24
+                    'data-header' => $view['translator']->trans('mautic.lead.batch.lists'),
25
+                ],
26
+                'btnText'   => $view['translator']->trans('mautic.lead.batch.lists'),
27
+                'iconClass' => 'fa fa-pie-chart',
25 28
             ],
26
-            'btnText'   => $view['translator']->trans('mautic.lead.batch.lists'),
27
-            'iconClass' => 'fa fa-pie-chart',
28
-        ],
29
-        [
30
-            'attr' => [
31
-                'class'       => 'btn btn-default btn-sm btn-nospin',
32
-                'data-toggle' => 'ajaxmodal',
33
-                'data-target' => '#MauticSharedModal',
34
-                'href'        => $view['router']->path('mautic_contact_action', ['objectAction' => 'batchStages']),
35
-                'data-header' => $view['translator']->trans('mautic.lead.batch.stages'),
29
+            [
30
+                'attr' => [
31
+                    'class'       => 'btn btn-default btn-sm btn-nospin',
32
+                    'data-toggle' => 'ajaxmodal',
33
+                    'data-target' => '#MauticSharedModal',
34
+                    'href'        => $view['router']->path('mautic_contact_action', ['objectAction' => 'batchStages']),
35
+                    'data-header' => $view['translator']->trans('mautic.lead.batch.stages'),
36
+                ],
37
+                'btnText'   => $view['translator']->trans('mautic.lead.batch.stages'),
38
+                'iconClass' => 'fa fa-tachometer',
36 39
             ],
37
-            'btnText'   => $view['translator']->trans('mautic.lead.batch.stages'),
38
-            'iconClass' => 'fa fa-tachometer',
39
-        ],
40
-        [
41
-            'attr' => [
42
-                'class'       => 'btn btn-default btn-sm btn-nospin',
43
-                'data-toggle' => 'ajaxmodal',
44
-                'data-target' => '#MauticSharedModal',
45
-                'href'        => $view['router']->path('mautic_contact_action', ['objectAction' => 'batchCampaigns']),
46
-                'data-header' => $view['translator']->trans('mautic.lead.batch.campaigns'),
40
+            [
41
+                'attr' => [
42
+                    'class'       => 'btn btn-default btn-sm btn-nospin',
43
+                    'data-toggle' => 'ajaxmodal',
44
+                    'data-target' => '#MauticSharedModal',
45
+                    'href'        => $view['router']->path('mautic_contact_action', ['objectAction' => 'batchCampaigns']),
46
+                    'data-header' => $view['translator']->trans('mautic.lead.batch.campaigns'),
47
+                ],
48
+                'btnText'   => $view['translator']->trans('mautic.lead.batch.campaigns'),
49
+                'iconClass' => 'fa fa-clock-o',
47 50
             ],
48
-            'btnText'   => $view['translator']->trans('mautic.lead.batch.campaigns'),
49
-            'iconClass' => 'fa fa-clock-o',
50
-        ],
51
-        [
52
-            'attr' => [
53
-                'class'       => 'btn btn-default btn-sm btn-nospin',
54
-                'data-toggle' => 'ajaxmodal',
55
-                'data-target' => '#MauticSharedModal',
56
-                'href'        => $view['router']->path('mautic_contact_action', ['objectAction' => 'batchOwners']),
57
-                'data-header' => $view['translator']->trans('mautic.lead.batch.owner'),
51
+            [
52
+                'attr' => [
53
+                    'class'       => 'btn btn-default btn-sm btn-nospin',
54
+                    'data-toggle' => 'ajaxmodal',
55
+                    'data-target' => '#MauticSharedModal',
56
+                    'href'        => $view['router']->path('mautic_contact_action', ['objectAction' => 'batchOwners']),
57
+                    'data-header' => $view['translator']->trans('mautic.lead.batch.owner'),
58
+                ],
59
+                'btnText'   => $view['translator']->trans('mautic.lead.batch.owner'),
60
+                'iconClass' => 'fa fa-user',
58 61
             ],
59
-            'btnText'   => $view['translator']->trans('mautic.lead.batch.owner'),
60
-            'iconClass' => 'fa fa-user',
61
-        ],
62
-        [
63
-            'attr' => [
64
-                'class'       => 'btn btn-default btn-sm btn-nospin',
65
-                'data-toggle' => 'ajaxmodal',
66
-                'data-target' => '#MauticSharedModal',
67
-                'href'        => $view['router']->path('mautic_contact_action', ['objectAction' => 'batchDnc']),
68
-                'data-header' => $view['translator']->trans('mautic.lead.batch.dnc'),
62
+            [
63
+                'attr' => [
64
+                    'class'       => 'btn btn-default btn-sm btn-nospin',
65
+                    'data-toggle' => 'ajaxmodal',
66
+                    'data-target' => '#MauticSharedModal',
67
+                    'href'        => $view['router']->path('mautic_contact_action', ['objectAction' => 'batchDnc']),
68
+                    'data-header' => $view['translator']->trans('mautic.lead.batch.dnc'),
69
+                ],
70
+                'btnText'   => $view['translator']->trans('mautic.lead.batch.dnc'),
71
+                'iconClass' => 'fa fa-ban text-danger',
69 72
             ],
70
-            'btnText'   => $view['translator']->trans('mautic.lead.batch.dnc'),
71
-            'iconClass' => 'fa fa-ban text-danger',
72
-        ],
73
-    ];
73
+        ];
74 74
 }
75
-?>
76
-
77
-<?php if (count($items)): ?>
75
+    ?>
76
+    
77
+    <?php if (count($items)): ?>
78 78
 <div class="table-responsive">
79 79
     <table class="table table-hover table-striped table-bordered" id="leadTable">
80 80
         <thead>
81 81
             <tr>
82 82
                 <?php
83
-                echo $view->render('MauticCoreBundle:Helper:tableheader.html.php', [
84
-                    'checkall'        => 'true',
85
-                    'target'          => '#leadTable',
86
-                    'templateButtons' => [
87
-                        'delete' => $permissions['lead:leads:deleteown'] || $permissions['lead:leads:deleteother'],
88
-                    ],
89
-                    'customButtons' => $customButtons,
90
-                    'langVar'       => 'lead.lead',
91
-                    'routeBase'     => 'contact',
92
-                    'tooltip'       => $view['translator']->trans('mautic.lead.list.checkall.help'),
93
-                ]);
83
+                    echo $view->render('MauticCoreBundle:Helper:tableheader.html.php', [
84
+                        'checkall'        => 'true',
85
+                        'target'          => '#leadTable',
86
+                        'templateButtons' => [
87
+                            'delete' => $permissions['lead:leads:deleteown'] || $permissions['lead:leads:deleteother'],
88
+                        ],
89
+                        'customButtons' => $customButtons,
90
+                        'langVar'       => 'lead.lead',
91
+                        'routeBase'     => 'contact',
92
+                        'tooltip'       => $view['translator']->trans('mautic.lead.list.checkall.help'),
93
+                    ]);
94 94
 
95
-                $columsAliases = array_flip($columns);
96
-                foreach ($columns as $column=>$label) {
97
-                    $template = 'MauticLeadBundle:Lead\header:'.$column.'.html.php';
98
-                    if (!$view->exists($template)) {
99
-                        $template = 'MauticLeadBundle:Lead\header:default.html.php';
95
+                    $columsAliases = array_flip($columns);
96
+                    foreach ($columns as $column=>$label) {
97
+                        $template = 'MauticLeadBundle:Lead\header:'.$column.'.html.php';
98
+                        if (!$view->exists($template)) {
99
+                            $template = 'MauticLeadBundle:Lead\header:default.html.php';
100
+                        }
101
+                        echo $view->render(
102
+                            $template,
103
+                            [
104
+                                'label'  => $label,
105
+                                'column' => $column,
106
+                                'class'  => array_search($column, $columsAliases) > 1 ? 'hidden-xs' : '',
107
+                            ]
108
+                        );
100 109
                     }
101
-                    echo $view->render(
102
-                        $template,
103
-                        [
104
-                            'label'  => $label,
105
-                            'column' => $column,
106
-                            'class'  => array_search($column, $columsAliases) > 1 ? 'hidden-xs' : '',
107
-                        ]
108
-                    );
109
-                }
110
-                ?>
110
+                    ?>
111 111
             </tr>
112 112
         </thead>
113 113
         <tbody>
114 114
         <?php echo $view->render('MauticLeadBundle:Lead:list_rows.html.php', [
115
-            'items'         => $items,
116
-            'columns'       => $columns,
117
-            'security'      => $security,
118
-            'currentList'   => $currentList,
119
-            'permissions'   => $permissions,
120
-            'noContactList' => $noContactList,
121
-        ]); ?>
115
+                'items'         => $items,
116
+                'columns'       => $columns,
117
+                'security'      => $security,
118
+                'currentList'   => $currentList,
119
+                'permissions'   => $permissions,
120
+                'noContactList' => $noContactList,
121
+            ]); ?>
122 122
         </tbody>
123 123
     </table>
124 124
 </div>
125 125
 <div class="panel-footer">
126 126
     <?php echo $view->render('MauticCoreBundle:Helper:pagination.html.php', [
127
-        'totalItems' => $totalItems,
128
-        'page'       => $page,
129
-        'limit'      => $limit,
130
-        'menuLinkId' => 'mautic_contact_index',
131
-        'baseUrl'    => $view['router']->path('mautic_contact_index'),
132
-        'tmpl'       => $indexMode,
133
-        'sessionVar' => 'lead',
134
-    ]); ?>
135
-</div>
136
-<?php else: ?>
137
-<?php echo $view->render('MauticCoreBundle:Helper:noresults.html.php'); ?>
138
-<?php endif; ?>
127
+            'totalItems' => $totalItems,
128
+            'page'       => $page,
129
+            'limit'      => $limit,
130
+            'menuLinkId' => 'mautic_contact_index',
131
+            'baseUrl'    => $view['router']->path('mautic_contact_index'),
132
+            'tmpl'       => $indexMode,
133
+            'sessionVar' => 'lead',
134
+        ]); ?>
135
+    </div>
136
+    <?php else: ?>
137
+    <?php echo $view->render('MauticCoreBundle:Helper:noresults.html.php'); ?>
138
+    <?php endif; ?>
Please login to merge, or discard this patch.