Passed
Push — master ( fdb4d9...be4646 )
by Michael
33s queued 11s
created
comment_reply.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,5 +17,5 @@
 block discarded – undo
17 17
  * @author       XOOPS Development Team,
18 18
  */
19 19
 
20
-include  dirname(dirname(__DIR__)) . '/mainfile.php';
21
-require_once XOOPS_ROOT_PATH . '/include/comment_reply.php';
20
+include  dirname(dirname(__DIR__)).'/mainfile.php';
21
+require_once XOOPS_ROOT_PATH.'/include/comment_reply.php';
Please login to merge, or discard this patch.
comment_edit.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,5 +17,5 @@
 block discarded – undo
17 17
  * @author       XOOPS Development Team,
18 18
  */
19 19
 
20
-include  dirname(dirname(__DIR__)) . '/mainfile.php';
21
-require_once XOOPS_ROOT_PATH . '/include/comment_edit.php';
20
+include  dirname(dirname(__DIR__)).'/mainfile.php';
21
+require_once XOOPS_ROOT_PATH.'/include/comment_edit.php';
Please login to merge, or discard this patch.
public-slideshow.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -17,11 +17,11 @@  discard block
 block discarded – undo
17 17
 
18 18
 use XoopsModules\Extgallery;
19 19
 
20
-include __DIR__ . '/header.php';
20
+include __DIR__.'/header.php';
21 21
 //require_once XOOPS_ROOT_PATH . '/modules/extgallery/class/publicPerm.php';
22 22
 
23 23
 $GLOBALS['xoopsOption']['template_main'] = 'extgallery_public-slideshow.tpl';
24
-include XOOPS_ROOT_PATH . '/header.php';
24
+include XOOPS_ROOT_PATH.'/header.php';
25 25
 
26 26
 /** @var Extgallery\Helper $helper */
27 27
 $helper = Extgallery\Helper::getInstance();
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
 $catObj = $catHandler->getCat($catId);
43 43
 
44 44
 if (null === $catObj) {
45
-    include XOOPS_ROOT_PATH . '/footer.php';
45
+    include XOOPS_ROOT_PATH.'/footer.php';
46 46
     exit;
47 47
 }
48 48
 $ajaxeffect = $helper->getConfig('use_slideshow_effects');
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
 $attributes['rel']   = $rel;
66 66
 $attributes['type']  = 'application/rss+xml';
67 67
 $attributes['title'] = _MD_EXTGALLERY_RSS;
68
-$attributes['href']  = XOOPS_URL . '/modules/extgallery/public-rss.php';
68
+$attributes['href']  = XOOPS_URL.'/modules/extgallery/public-rss.php';
69 69
 $xoTheme->addMeta('link', $rel, $attributes);
70 70
 $xoTheme->addStylesheet('modules/extgallery/assets/css/style.css');
71 71
 
@@ -182,4 +182,4 @@  discard block
 block discarded – undo
182 182
 $xoopsTpl->assign('galleriffic_show_descr', $helper->getConfig('galleriffic_show_descr'));
183 183
 $xoopsTpl->assign('galleriffic_download', $helper->getConfig('galleriffic_download'));
184 184
 
185
-include XOOPS_ROOT_PATH . '/footer.php';
185
+include XOOPS_ROOT_PATH.'/footer.php';
Please login to merge, or discard this patch.
assets/js/ml-slider/inc/slide/metaslide.class.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -202,9 +202,9 @@
 block discarded – undo
202 202
 
203 203
         // update the slide
204 204
         wp_update_post(array(
205
-                           'ID'         => $this->slide->ID,
206
-                           'menu_order' => $menu_order
207
-                       ));
205
+                            'ID'         => $this->slide->ID,
206
+                            'menu_order' => $menu_order
207
+                        ));
208 208
     }
209 209
 
210 210
     /**
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
 
111 111
         foreach ($attributes as $att => $val) {
112 112
             if (strlen($val)) {
113
-                $html .= ' ' . $att . '="' . $val . '"';
113
+                $html .= ' '.$att.'="'.$val.'"';
114 114
             }
115 115
         }
116 116
 
@@ -132,11 +132,11 @@  discard block
 block discarded – undo
132 132
 
133 133
         foreach ($attributes as $att => $val) {
134 134
             if (strlen($val)) {
135
-                $html .= ' ' . $att . '="' . $val . '"';
135
+                $html .= ' '.$att.'="'.$val.'"';
136 136
             }
137 137
         }
138 138
 
139
-        $html .= '>' . $content . '</a>';
139
+        $html .= '>'.$content.'</a>';
140 140
 
141 141
         return $html;
142 142
     }
@@ -217,7 +217,7 @@  discard block
 block discarded – undo
217 217
      */
218 218
     public function add_or_update_or_delete_meta($post_id, $name, $value)
219 219
     {
220
-        $key = 'ml-slider_' . $name;
220
+        $key = 'ml-slider_'.$name;
221 221
 
222 222
         if ('false' === $value || '' === $value || !$value) {
223 223
             if (get_post_meta($post_id, $key)) {
Please login to merge, or discard this patch.
assets/js/ml-slider/inc/slide/metaslide.image.class.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -374,10 +374,10 @@
 block discarded – undo
374 374
     {
375 375
         // update the slide
376 376
         wp_update_post(array(
377
-                           'ID'           => $this->slide->ID,
378
-                           'post_excerpt' => $fields['post_excerpt'],
379
-                           'menu_order'   => $fields['menu_order']
380
-                       ));
377
+                            'ID'           => $this->slide->ID,
378
+                            'post_excerpt' => $fields['post_excerpt'],
379
+                            'menu_order'   => $fields['menu_order']
380
+                        ));
381 381
 
382 382
         // store the URL as a meta field against the attachment
383 383
         $this->add_or_update_or_delete_meta($this->slide->ID, 'url', $fields['url']);
Please login to merge, or discard this patch.
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
     {
24 24
         // security check
25 25
         if (!wp_verify_nonce($_REQUEST['_wpnonce'], 'metaslider_addslide')) {
26
-            echo "<tr><td colspan='2'>" . __('Security check failed. Refresh page and try again.', 'metaslider') . '</td></tr>';
26
+            echo "<tr><td colspan='2'>".__('Security check failed. Refresh page and try again.', 'metaslider').'</td></tr>';
27 27
             die();
28 28
         }
29 29
 
@@ -36,9 +36,9 @@  discard block
 block discarded – undo
36 36
                 $this->set_slider($slider_id);
37 37
 
38 38
                 if ($this->slide_exists_in_slideshow($slider_id, $slide_id)) {
39
-                    echo "<tr><td colspan='2'>ID: {$slide_id} \"" . get_the_title($slide_id) . "\" - " . __('Failed to add slide. Slide already exists in slideshow.', 'metaslider') . '</td></tr>';
39
+                    echo "<tr><td colspan='2'>ID: {$slide_id} \"".get_the_title($slide_id)."\" - ".__('Failed to add slide. Slide already exists in slideshow.', 'metaslider').'</td></tr>';
40 40
                 } elseif (!$this->slide_is_unassigned_or_image_slide($slider_id, $slide_id)) {
41
-                    echo "<tr><td colspan='2'>ID: {$slide_id} \"" . get_the_title($slide_id) . "\" - " . __("Failed to add slide. Slide is not of type 'image'.", 'metaslider') . '</td></tr>';
41
+                    echo "<tr><td colspan='2'>ID: {$slide_id} \"".get_the_title($slide_id)."\" - ".__("Failed to add slide. Slide is not of type 'image'.", 'metaslider').'</td></tr>';
42 42
                 } else {
43 43
                     $this->tag_slide_to_slider();
44 44
                     $this->add_or_update_or_delete_meta($slide_id, 'type', 'image');
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
 
76 76
         $url = $imageHelper->get_image_url();
77 77
 
78
-        echo $url . ' (' . $settings['width'] . 'x' . $settings['height'] . ')';
78
+        echo $url.' ('.$settings['width'].'x'.$settings['height'].')';
79 79
 
80 80
         die();
81 81
     }
@@ -109,18 +109,18 @@  discard block
 block discarded – undo
109 109
         $row .= "    <td class='col-1'>";
110 110
         $row .= "        <div class='thumb' style='background-image: url({$thumb})'>";
111 111
         $row .= "            <a class='delete-slide confirm' href='?page=metaslider&amp;id={$this->slider->ID}&amp;deleteSlide={$this->slide->ID}'>x</a>";
112
-        $row .= "            <span class='slide-details'>" . $slide_label . '</span>';
112
+        $row .= "            <span class='slide-details'>".$slide_label.'</span>';
113 113
         $row .= '        </div>';
114 114
         $row .= '    </td>';
115 115
         $row .= "    <td class='col-2'>";
116 116
         $row .= "        <ul class='tabs'>";
117
-        $row .= "            <li class='selected' rel='tab-1'>" . __('General', 'metaslider') . '</li>';
118
-        $row .= "            <li rel='tab-2'>" . __('SEO', 'metaslider') . '</li>';
117
+        $row .= "            <li class='selected' rel='tab-1'>".__('General', 'metaslider').'</li>';
118
+        $row .= "            <li rel='tab-2'>".__('SEO', 'metaslider').'</li>';
119 119
         $row .= '        </ul>';
120 120
         $row .= "        <div class='tabs-content'>";
121 121
         $row .= "            <div class='tab tab-1'>";
122 122
         if (!$this->is_valid_image()) {
123
-            $row .= "<div class='warning'>" . __('Warning: Image data does not exist. Please re-upload the image.') . '</div>';
123
+            $row .= "<div class='warning'>".__('Warning: Image data does not exist. Please re-upload the image.').'</div>';
124 124
         }
125 125
         $row .= "                <textarea name='attachment[{$this->slide->ID}][post_excerpt]' placeholder='{$str_caption}'>{$caption}</textarea>";
126 126
         $row .= "                <input class='url' type='text' name='attachment[{$this->slide->ID}][url]' placeholder='{$str_url}' value='{$url}' >";
@@ -129,9 +129,9 @@  discard block
 block discarded – undo
129 129
         $row .= '                </div>';
130 130
         $row .= '            </div>';
131 131
         $row .= "            <div class='tab tab-2' style='display: none;'>";
132
-        $row .= "                <div class='row'><label>" . __('Image Title Text', 'metaslider') . '</label></div>';
132
+        $row .= "                <div class='row'><label>".__('Image Title Text', 'metaslider').'</label></div>';
133 133
         $row .= "                <div class='row'><input type='text' size='50' name='attachment[{$this->slide->ID}][title]' value='{$title}' ></div>";
134
-        $row .= "                <div class='row'><label>" . __('Image Alt Text', 'metaslider') . '</label></div>';
134
+        $row .= "                <div class='row'><label>".__('Image Alt Text', 'metaslider').'</label></div>';
135 135
         $row .= "                <div class='row'><input type='text' size='50' name='attachment[{$this->slide->ID}][alt]' value='{$alt}' ></div>";
136 136
         $row .= '            </div>';
137 137
         $row .= '        </div>';
@@ -201,7 +201,7 @@  discard block
 block discarded – undo
201 201
 
202 202
         // fix slide URLs
203 203
         if (0 === strpos($slide['url'], 'www.')) {
204
-            $slide['url'] = 'http://' . $slide['url'];
204
+            $slide['url'] = 'http://'.$slide['url'];
205 205
         }
206 206
 
207 207
         $slide = apply_filters('metaslider_image_slide_attributes', $slide, $this->slider->ID, $this->settings);
@@ -286,12 +286,12 @@  discard block
 block discarded – undo
286 286
 
287 287
         // add caption
288 288
         if (strlen($slide['caption'])) {
289
-            $html .= '<div class="caption-wrap"><div class="caption">' . $slide['caption'] . '</div></div>';
289
+            $html .= '<div class="caption-wrap"><div class="caption">'.$slide['caption'].'</div></div>';
290 290
         }
291 291
 
292 292
         $thumb = isset($slide['data-thumb']) && strlen($slide['data-thumb']) ? " data-thumb=\"{$slide['data-thumb']}\"" : '';
293 293
 
294
-        $html = '<li style="display: none;"' . $thumb . '>' . $html . '</li>';
294
+        $html = '<li style="display: none;"'.$thumb.'>'.$html.'</li>';
295 295
 
296 296
         return apply_filters('metaslider_image_flex_slider_markup', $html, $slide, $this->settings);
297 297
     }
@@ -351,7 +351,7 @@  discard block
 block discarded – undo
351 351
         $html = $this->build_image_tag($attributes);
352 352
 
353 353
         if (strlen($slide['caption'])) {
354
-            $html .= '<div class="caption-wrap"><div class="caption">' . $slide['caption'] . '</div></div>';
354
+            $html .= '<div class="caption-wrap"><div class="caption">'.$slide['caption'].'</div></div>';
355 355
         }
356 356
 
357 357
         $anchor_attributes = apply_filters('metaslider_responsive_slider_anchor_attributes', array(
Please login to merge, or discard this patch.
assets/js/ml-slider/inc/metaslider.imagehelper.class.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -171,9 +171,9 @@
 block discarded – undo
171 171
 
172 172
         // if the file exists, just return it without going any further
173 173
         $dest_file_name = $this->get_destination_file_name(array(
174
-                                                               'width'  => $this->container_width,
175
-                                                               'height' => $this->container_height
176
-                                                           ));
174
+                                                                'width'  => $this->container_width,
175
+                                                                'height' => $this->container_height
176
+                                                            ));
177 177
 
178 178
         if (file_exists($dest_file_name)) {
179 179
             return str_replace(basename($this->url), basename($dest_file_name), $this->url);
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
         $upload_dir = wp_upload_dir();
28 28
 
29 29
         $this->id               = $slide_id;
30
-        $this->url              = $upload_dir['baseurl'] . '/' . get_post_meta($slide_id, '_wp_attached_file', true);
30
+        $this->url              = $upload_dir['baseurl'].'/'.get_post_meta($slide_id, '_wp_attached_file', true);
31 31
         $this->path             = get_attached_file($slide_id);
32 32
         $this->container_width  = $width;
33 33
         $this->container_height = $height;
@@ -279,7 +279,7 @@  discard block
 block discarded – undo
279 279
         if (is_wp_error($image)) {
280 280
             if (is_admin()) {
281 281
                 echo '<div id="message" class="error">';
282
-                echo '<p><strong>ERROR</strong> ' . $image->get_error_message() . " Check <a href='http://codex.wordpress.org/Changing_File_Permissions' target='_blank'>file permissions</a></p>";
282
+                echo '<p><strong>ERROR</strong> '.$image->get_error_message()." Check <a href='http://codex.wordpress.org/Changing_File_Permissions' target='_blank'>file permissions</a></p>";
283 283
                 echo "<button class='toggle'>Show Details</button>";
284 284
                 echo "<div class='message' style='display: none;'><br >Slide ID: {$this->id}<pre>";
285 285
                 var_dump($image);
Please login to merge, or discard this patch.
assets/js/ml-slider/inc/metaslider.systemcheck.class.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -113,14 +113,14 @@  discard block
 block discarded – undo
113 113
         $current_theme = wp_get_theme();
114 114
         $theme_name    = $current_theme->Template;
115 115
 
116
-        $key = 'wpFooter:' . $theme_name;
116
+        $key = 'wpFooter:'.$theme_name;
117 117
 
118 118
         if (isset($this->options[$key]) && false === $this->options[$key]) {
119 119
             return;
120 120
         }
121 121
 
122
-        $child_footer  = get_stylesheet_directory() . '/footer.php';
123
-        $parent_footer = TEMPLATEPATH . '/footer.php';
122
+        $child_footer  = get_stylesheet_directory().'/footer.php';
123
+        $parent_footer = TEMPLATEPATH.'/footer.php';
124 124
         $theme_type    = 'parent';
125 125
 
126 126
         if (file_exists($child_footer)) {
@@ -130,9 +130,9 @@  discard block
 block discarded – undo
130 130
             if (strpos($footer_file, 'wp_footer()')) {
131 131
                 return;
132 132
             }
133
-        } elseif (file_exists($parent_footer . '/footer.php')) {
133
+        } elseif (file_exists($parent_footer.'/footer.php')) {
134 134
             $theme_type  = 'parent';
135
-            $footer_file = file_get_contents($parent_footer . '/footer.php');
135
+            $footer_file = file_get_contents($parent_footer.'/footer.php');
136 136
 
137 137
             if (strpos($footer_file, 'wp_footer()')) {
138 138
                 return;
Please login to merge, or discard this patch.
assets/js/ml-slider/inc/metaslider.widget.class.php 2 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -93,12 +93,12 @@
 block discarded – undo
93 93
         }
94 94
 
95 95
         $posts = get_posts(array(
96
-                               'post_type'      => 'ml-slider',
97
-                               'post_status'    => 'publish',
98
-                               'orderby'        => 'date',
99
-                               'order'          => 'ASC',
100
-                               'posts_per_page' => -1
101
-                           ));
96
+                                'post_type'      => 'ml-slider',
97
+                                'post_status'    => 'publish',
98
+                                'orderby'        => 'date',
99
+                                'order'          => 'ASC',
100
+                                'posts_per_page' => -1
101
+                            ));
102 102
 
103 103
         foreach ($posts as $post) {
104 104
             $active = $selected_slider == $post->ID ? true : false;
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
 
45 45
             echo $before_widget;
46 46
             if (!empty($title)) {
47
-                echo $before_title . $title . $after_title;
47
+                echo $before_title.$title.$after_title;
48 48
             }
49 49
 
50 50
             echo do_shortcode("[metaslider id={$slider_id}]");
Please login to merge, or discard this patch.
assets/js/ml-slider/inc/slider/metaslider.class.php 1 patch
Spacing   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
     {
23 23
         $this->id         = $id;
24 24
         $this->settings   = array_merge($shortcode_settings, $this->get_settings());
25
-        $this->identifier = 'metaslider_' . $this->id;
25
+        $this->identifier = 'metaslider_'.$this->id;
26 26
         $this->save();
27 27
         $this->populate_slides();
28 28
     }
@@ -137,11 +137,11 @@  discard block
 block discarded – undo
137 137
 
138 138
         // make changes to slider
139 139
         if (isset($_POST['settings'])) {
140
-            check_admin_referer('metaslider_save_' . $this->id);
140
+            check_admin_referer('metaslider_save_'.$this->id);
141 141
             $this->update_settings($_POST['settings']);
142 142
         }
143 143
         if (isset($_POST['title'])) {
144
-            check_admin_referer('metaslider_save_' . $this->id);
144
+            check_admin_referer('metaslider_save_'.$this->id);
145 145
             $this->update_title($_POST['title']);
146 146
         }
147 147
         if (isset($_GET['deleteSlide'])) {
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
 
151 151
         // make changes to slides
152 152
         if (isset($_POST['attachment'])) {
153
-            check_admin_referer('metaslider_save_' . $this->id);
153
+            check_admin_referer('metaslider_save_'.$this->id);
154 154
             $this->update_slides($_POST['attachment']);
155 155
         }
156 156
     }
@@ -241,14 +241,14 @@  discard block
 block discarded – undo
241 241
     public function render_public_slides()
242 242
     {
243 243
         $html[] = '<!-- meta slider -->';
244
-        $html[] = '<div style="' . $this->get_container_style() . '" class="' . $this->get_container_class() . '">';
245
-        $html[] = '    ' . $this->get_inline_css();
246
-        $html[] = '    <div id="' . $this->get_container_id() . '">';
247
-        $html[] = '        ' . $this->get_html();
248
-        $html[] = '        ' . $this->get_html_after();
244
+        $html[] = '<div style="'.$this->get_container_style().'" class="'.$this->get_container_class().'">';
245
+        $html[] = '    '.$this->get_inline_css();
246
+        $html[] = '    <div id="'.$this->get_container_id().'">';
247
+        $html[] = '        '.$this->get_html();
248
+        $html[] = '        '.$this->get_html_after();
249 249
         $html[] = '    </div>';
250 250
         $html[] = '    <script type="text/javascript">';
251
-        $html[] = '        ' . $this->get_inline_javascript();
251
+        $html[] = '        '.$this->get_inline_javascript();
252 252
         $html[] = '    </script>';
253 253
         $html[] = '</div>';
254 254
         $html[] = '<!--// meta slider-->';
@@ -265,7 +265,7 @@  discard block
 block discarded – undo
265 265
      */
266 266
     private function get_container_id()
267 267
     {
268
-        $container_id = 'metaslider_container_' . $this->id;
268
+        $container_id = 'metaslider_container_'.$this->id;
269 269
 
270 270
         $id = apply_filters('metaslider_container_id', $container_id, $this->id, $this->settings);
271 271
 
@@ -281,7 +281,7 @@  discard block
 block discarded – undo
281 281
 
282 282
         // apply the css class setting
283 283
         if ('false' !== $this->get_setting('cssClass')) {
284
-            $class .= ' ' . $this->get_setting('cssClass');
284
+            $class .= ' '.$this->get_setting('cssClass');
285 285
         }
286 286
 
287 287
         // handle any custom classes
@@ -333,17 +333,17 @@  discard block
 block discarded – undo
333 333
         $custom_js_before = $this->get_custom_javascript_before();
334 334
         $custom_js_after  = $this->get_custom_javascript_after();
335 335
 
336
-        $script = 'var ' . $this->identifier . " = function($) {";
336
+        $script = 'var '.$this->identifier." = function($) {";
337 337
         $script .= $custom_js_before;
338
-        $script .= "\n            $('#" . $this->identifier . "')." . $this->js_function . '({ ';
339
-        $script .= "\n                " . $this->get_javascript_parameters();
338
+        $script .= "\n            $('#".$this->identifier."').".$this->js_function.'({ ';
339
+        $script .= "\n                ".$this->get_javascript_parameters();
340 340
         $script .= "\n            });";
341 341
         $script .= $custom_js_after;
342 342
         $script .= "\n        };";
343
-        $script .= "\n        var timer_" . $this->identifier . ' = function() {';
343
+        $script .= "\n        var timer_".$this->identifier.' = function() {';
344 344
         $script .= "\n            var slider = !window.jQuery ? window.setTimeout(timer_{$this->identifier}, 100) : !jQuery.isReady ? window.setTimeout(timer_{$this->identifier}, 100) : {$this->identifier}(window.jQuery);";
345 345
         $script .= "\n        };";
346
-        $script .= "\n        timer_" . $this->identifier . '();';
346
+        $script .= "\n        timer_".$this->identifier.'();';
347 347
 
348 348
         return $script;
349 349
     }
@@ -419,7 +419,7 @@  discard block
 block discarded – undo
419 419
                 if ('integer' === gettype($default) || 'true' === $val || 'false' === $val) {
420 420
                     $options[$param] = $val;
421 421
                 } else {
422
-                    $options[$param] = '"' . $val . '"';
422
+                    $options[$param] = '"'.$val.'"';
423 423
                 }
424 424
             }
425 425
         }
@@ -432,7 +432,7 @@  discard block
 block discarded – undo
432 432
         // create key:value strings
433 433
         foreach ($options as $key => $value) {
434 434
             if (is_array($value)) {
435
-                $pairs[] = "{$key}: function($arg) {\n                " . implode("\n                ", $value) . "\n                }";
435
+                $pairs[] = "{$key}: function($arg) {\n                ".implode("\n                ", $value)."\n                }";
436 436
             } else {
437 437
                 $pairs[] = "{$key}:{$value}";
438 438
             }
@@ -466,14 +466,14 @@  discard block
 block discarded – undo
466 466
     public function enqueue_scripts()
467 467
     {
468 468
         if ('true' === $this->get_setting('printJs')) {
469
-            wp_enqueue_script('metaslider-' . $this->get_setting('type') . '-slider', METASLIDER_ASSETS_URL . $this->js_path, array('jquery'), METASLIDER_VERSION);
469
+            wp_enqueue_script('metaslider-'.$this->get_setting('type').'-slider', METASLIDER_ASSETS_URL.$this->js_path, array('jquery'), METASLIDER_VERSION);
470 470
         }
471 471
 
472 472
         if ('true' === $this->get_setting('printCss')) {
473 473
             // this will be added to the bottom of the page as <head> has already been processed by WordPress.
474 474
             // For HTML5 compatibility, use a minification plugin to move the CSS to the <head>
475
-            wp_enqueue_style('metaslider-' . $this->get_setting('type') . '-slider', METASLIDER_ASSETS_URL . $this->css_path, false, METASLIDER_VERSION);
476
-            wp_enqueue_style('metaslider-public', METASLIDER_ASSETS_URL . 'metaslider/public.css', false, METASLIDER_VERSION);
475
+            wp_enqueue_style('metaslider-'.$this->get_setting('type').'-slider', METASLIDER_ASSETS_URL.$this->css_path, false, METASLIDER_VERSION);
476
+            wp_enqueue_style('metaslider-public', METASLIDER_ASSETS_URL.'metaslider/public.css', false, METASLIDER_VERSION);
477 477
         }
478 478
 
479 479
         do_action('metaslider_register_public_styles');
Please login to merge, or discard this patch.