Completed
Pull Request — master (#14)
by
unknown
03:22
created
concrete5/magnific_popup/blocks/magnific_popup/includes/gallerypopup.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
 
12 12
 ?>
13 13
 <?php if (false !== $images): ?>
14
-    <ul id="<?php echo $magnific_type . '-' . $bID ?>" class="<?php echo $magnific_type . '-gallery' . ' ' . $cssFrameworkClass; ?>">
14
+    <ul id="<?php echo $magnific_type.'-'.$bID ?>" class="<?php echo $magnific_type.'-gallery'.' '.$cssFrameworkClass; ?>">
15 15
         <?php foreach ($images as $image): ?>
16 16
             <?php $thumbnail = $ih->getThumbnail($image, (int)$controller->thumbnailWidth, (int)$controller->thumbnailHeight); ?>
17 17
             <?php $fileName = $image->getFileName(); ?>
Please login to merge, or discard this patch.
assets/js/magnific_popup/redaxo/magnific_popup/config.inc.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -11,12 +11,12 @@
 block discarded – undo
11 11
 $REX['PERM'][] = 'magnific_popup[]';
12 12
 
13 13
 // includes
14
-require($REX['INCLUDE_PATH'] . '/addons/magnific_popup/settings.inc.php');
15
-require($REX['INCLUDE_PATH'] . '/addons/magnific_popup/classes/class.rex_magnific_popup_utils.inc.php');
14
+require($REX['INCLUDE_PATH'].'/addons/magnific_popup/settings.inc.php');
15
+require($REX['INCLUDE_PATH'].'/addons/magnific_popup/classes/class.rex_magnific_popup_utils.inc.php');
16 16
 
17 17
 if ($REX['REDAXO']) {
18 18
     // add lang file
19
-    $I18N->appendFile($REX['INCLUDE_PATH'] . '/addons/magnific_popup/lang/');
19
+    $I18N->appendFile($REX['INCLUDE_PATH'].'/addons/magnific_popup/lang/');
20 20
 
21 21
     // add subpages
22 22
     $REX['ADDON']['magnific_popup']['SUBPAGES'] = array(
Please login to merge, or discard this patch.
assets/js/magnific_popup/redaxo/magnific_popup/pages/image_module.inc.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,12 +1,12 @@  discard block
 block discarded – undo
1 1
 <?php
2
-$moduleInput  = rex_get_file_contents($REX['INCLUDE_PATH'] . '/addons/magnific_popup/module/image/input.php');
3
-$moduleOutput = rex_get_file_contents($REX['INCLUDE_PATH'] . '/addons/magnific_popup/module/image/output.php');
2
+$moduleInput  = rex_get_file_contents($REX['INCLUDE_PATH'].'/addons/magnific_popup/module/image/input.php');
3
+$moduleOutput = rex_get_file_contents($REX['INCLUDE_PATH'].'/addons/magnific_popup/module/image/output.php');
4 4
 
5 5
 // Ist Modul schon vorhanden ?
6 6
 $searchtext = 'module: magnific_popup_image_out';
7 7
 
8 8
 $gm = rex_sql::factory();
9
-$gm->setQuery('SELECT * FROM ' . $REX['TABLE_PREFIX'] . 'module WHERE ausgabe LIKE "%' . $searchtext . '%"');
9
+$gm->setQuery('SELECT * FROM '.$REX['TABLE_PREFIX'].'module WHERE ausgabe LIKE "%'.$searchtext.'%"');
10 10
 
11 11
 $module_id   = 0;
12 12
 $module_name = '';
@@ -27,13 +27,13 @@  discard block
 block discarded – undo
27 27
 
28 28
     if (isset($_REQUEST['module_id']) && $module_id == $_REQUEST['module_id']) {
29 29
         // altes Module aktualisieren
30
-        $mi->setWhere('id="' . $module_id . '"');
30
+        $mi->setWhere('id="'.$module_id.'"');
31 31
         $mi->update();
32 32
 
33 33
         // article updaten
34 34
         rex_generateAll();
35 35
 
36
-        echo rex_info($I18N->msg('module_updated') . ' | ' . $I18N->msg('delete_cache_message'));
36
+        echo rex_info($I18N->msg('module_updated').' | '.$I18N->msg('delete_cache_message'));
37 37
     } else {
38 38
         // neues Modul einf&uuml;gen
39 39
         $mi->setValue('name', $module_name);
@@ -52,11 +52,11 @@  discard block
 block discarded – undo
52 52
             <?php
53 53
             if ($module_id > 0) {
54 54
                 if (!isset($_REQUEST['install'])) {
55
-                    echo '<li><a href="index.php?page=magnific_popup&amp;subpage=image_module&amp;install=1&amp;module_id=' . $module_id . '">' . $I18N->msg('magnific_popup_module_update') . '</a></li>';
55
+                    echo '<li><a href="index.php?page=magnific_popup&amp;subpage=image_module&amp;install=1&amp;module_id='.$module_id.'">'.$I18N->msg('magnific_popup_module_update').'</a></li>';
56 56
                 }
57 57
             } else {
58 58
                 if (!isset($_REQUEST['install'])) {
59
-                    echo '<li><a href="index.php?page=magnific_popup&amp;subpage=image_module&amp;install=1">' . $I18N->msg('magnific_popup_module_install') . '</a></li>';
59
+                    echo '<li><a href="index.php?page=magnific_popup&amp;subpage=image_module&amp;install=1">'.$I18N->msg('magnific_popup_module_install').'</a></li>';
60 60
                 }
61 61
             }
62 62
             ?>
Please login to merge, or discard this patch.
assets/js/magnific_popup/redaxo/magnific_popup/pages/index.inc.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -9,13 +9,13 @@  discard block
 block discarded – undo
9 9
 }
10 10
 
11 11
 // layout top
12
-require($REX['INCLUDE_PATH'] . '/layout/top.php');
12
+require($REX['INCLUDE_PATH'].'/layout/top.php');
13 13
 
14 14
 // title
15
-rex_title($REX['ADDON']['name']['magnific_popup'] . ' <span style="font-size:14px; color:silver;">' . $REX['ADDON']['version']['magnific_popup'] . '</span>', $REX['ADDON']['magnific_popup']['SUBPAGES']);
15
+rex_title($REX['ADDON']['name']['magnific_popup'].' <span style="font-size:14px; color:silver;">'.$REX['ADDON']['version']['magnific_popup'].'</span>', $REX['ADDON']['magnific_popup']['SUBPAGES']);
16 16
 
17 17
 // include subpage
18
-include($REX['INCLUDE_PATH'] . '/addons/magnific_popup/pages/' . $subpage . '.inc.php');
18
+include($REX['INCLUDE_PATH'].'/addons/magnific_popup/pages/'.$subpage.'.inc.php');
19 19
 ?>
20 20
 
21 21
 <style type="text/css">
@@ -65,5 +65,5 @@  discard block
 block discarded – undo
65 65
 
66 66
 <?php
67 67
 // layout bottom
68
-require($REX['INCLUDE_PATH'] . '/layout/bottom.php');
68
+require($REX['INCLUDE_PATH'].'/layout/bottom.php');
69 69
 ?>
Please login to merge, or discard this patch.
assets/js/magnific_popup/redaxo/magnific_popup/pages/gallery_module.inc.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,12 +1,12 @@  discard block
 block discarded – undo
1 1
 <?php
2
-$moduleInput  = rex_get_file_contents($REX['INCLUDE_PATH'] . '/addons/magnific_popup/module/gallery/input.php');
3
-$moduleOutput = rex_get_file_contents($REX['INCLUDE_PATH'] . '/addons/magnific_popup/module/gallery/output.php');
2
+$moduleInput  = rex_get_file_contents($REX['INCLUDE_PATH'].'/addons/magnific_popup/module/gallery/input.php');
3
+$moduleOutput = rex_get_file_contents($REX['INCLUDE_PATH'].'/addons/magnific_popup/module/gallery/output.php');
4 4
 
5 5
 // Ist Modul schon vorhanden ?
6 6
 $searchtext = 'module: magnific_popup_gallery_out';
7 7
 
8 8
 $gm = rex_sql::factory();
9
-$gm->setQuery('SELECT * FROM ' . $REX['TABLE_PREFIX'] . 'module WHERE ausgabe LIKE %' . $searchtext . '%');
9
+$gm->setQuery('SELECT * FROM '.$REX['TABLE_PREFIX'].'module WHERE ausgabe LIKE %'.$searchtext.'%');
10 10
 
11 11
 $module_id   = 0;
12 12
 $module_name = '';
@@ -27,13 +27,13 @@  discard block
 block discarded – undo
27 27
 
28 28
     if (isset($_REQUEST['module_id']) && $module_id == $_REQUEST['module_id']) {
29 29
         // altes Module aktualisieren
30
-        $mi->setWhere('id="' . $module_id . '"');
30
+        $mi->setWhere('id="'.$module_id.'"');
31 31
         $mi->update();
32 32
 
33 33
         // article updaten
34 34
         rex_generateAll();
35 35
 
36
-        echo rex_info($I18N->msg('module_updated') . ' | ' . $I18N->msg('delete_cache_message'));
36
+        echo rex_info($I18N->msg('module_updated').' | '.$I18N->msg('delete_cache_message'));
37 37
     } else {
38 38
         // neues Modul einf&uuml;gen
39 39
         $mi->setValue('name', $module_name);
@@ -52,11 +52,11 @@  discard block
 block discarded – undo
52 52
             <?php
53 53
             if ($module_id > 0) {
54 54
                 if (!isset($_REQUEST['install'])) {
55
-                    echo '<li><a href="index.php?page=magnific_popup&amp;subpage=gallery_module&amp;install=1&amp;module_id=' . $module_id . '">' . $I18N->msg('magnific_popup_module_update') . '</a></li>';
55
+                    echo '<li><a href="index.php?page=magnific_popup&amp;subpage=gallery_module&amp;install=1&amp;module_id='.$module_id.'">'.$I18N->msg('magnific_popup_module_update').'</a></li>';
56 56
                 }
57 57
             } else {
58 58
                 if (!isset($_REQUEST['install'])) {
59
-                    echo '<li><a href="index.php?page=magnific_popup&amp;subpage=gallery_module&amp;install=1">' . $I18N->msg('magnific_popup_module_install') . '</a></li>';
59
+                    echo '<li><a href="index.php?page=magnific_popup&amp;subpage=gallery_module&amp;install=1">'.$I18N->msg('magnific_popup_module_install').'</a></li>';
60 60
                 }
61 61
             }
62 62
             ?>
Please login to merge, or discard this patch.
assets/js/magnific_popup/redaxo/magnific_popup/pages/settings.inc.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-$configFile = $REX['INCLUDE_PATH'] . '/addons/magnific_popup/settings.inc.php';
3
+$configFile = $REX['INCLUDE_PATH'].'/addons/magnific_popup/settings.inc.php';
4 4
 
5 5
 if ('update' === rex_request('func', 'string')) {
6 6
     $include_jquery = trim(rex_request('include_jquery', 'string'));
@@ -8,7 +8,7 @@  discard block
 block discarded – undo
8 8
     $REX['ADDON']['magnific_popup']['settings']['include_jquery'] = $include_jquery;
9 9
 
10 10
     $content = '
11
-        $REX[\'ADDON\'][\'magnific_popup\'][\'settings\'][\'include_jquery\'] = "' . $include_jquery . '";
11
+        $REX[\'ADDON\'][\'magnific_popup\'][\'settings\'][\'include_jquery\'] = "' . $include_jquery.'";
12 12
     ';
13 13
 
14 14
     if (false !== rex_replace_dynamic_contents($configFile, str_replace("\t", '', $content))) {
@@ -25,18 +25,18 @@  discard block
 block discarded – undo
25 25
 // retrieve links to imagetypes
26 26
 $sql = new rex_sql();
27 27
 //$sql->debugsql = true;
28
-$sql->setQuery('SELECT id FROM `' . $REX['TABLE_PREFIX'] . "679_types` WHERE name LIKE 'magnific_popup_image_thumb'");
28
+$sql->setQuery('SELECT id FROM `'.$REX['TABLE_PREFIX']."679_types` WHERE name LIKE 'magnific_popup_image_thumb'");
29 29
 
30 30
 if (1 == $sql->getRows()) {
31
-    $imageManagerLinkImage = 'index.php?page=image_manager&subpage=effects&type_id=' . $sql->getValue('id');
31
+    $imageManagerLinkImage = 'index.php?page=image_manager&subpage=effects&type_id='.$sql->getValue('id');
32 32
 } else {
33 33
     $imageManagerLinkImage = 'index.php?page=image_manager&subpage=types';
34 34
 }
35 35
 
36
-$sql->setQuery('SELECT id FROM `' . $REX['TABLE_PREFIX'] . "679_types` WHERE name LIKE 'magnific_popup_gallery_thumb'");
36
+$sql->setQuery('SELECT id FROM `'.$REX['TABLE_PREFIX']."679_types` WHERE name LIKE 'magnific_popup_gallery_thumb'");
37 37
 
38 38
 if (1 == $sql->getRows()) {
39
-    $imageManagerLinkGallery = 'index.php?page=image_manager&subpage=effects&type_id=' . $sql->getValue('id');
39
+    $imageManagerLinkGallery = 'index.php?page=image_manager&subpage=effects&type_id='.$sql->getValue('id');
40 40
 } else {
41 41
     $imageManagerLinkGallery = 'index.php?page=image_manager&subpage=types';
42 42
 }
Please login to merge, or discard this patch.
assets/js/magnific_popup/redaxo/magnific_popup/pages/help.inc.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@  discard block
 block discarded – undo
7 7
 
8 8
 // include markdwon parser
9 9
 if (!class_exists('Parsedown')) {
10
-    require($REX['INCLUDE_PATH'] . '/addons/magnific_popup/classes/class.parsedown.inc.php');
10
+    require($REX['INCLUDE_PATH'].'/addons/magnific_popup/classes/class.parsedown.inc.php');
11 11
 }
12 12
 
13 13
 // chapters
@@ -23,27 +23,27 @@  discard block
 block discarded – undo
23 23
 foreach ($chapterpages as $chapterparam => $chapterprops) {
24 24
     if ('' != $chapterprops[0]) {
25 25
         if ($chapter != $chapterparam) {
26
-            $chapternav .= ' | <a href="?page=' . $mypage . '&amp;subpage=' . $subpage . '&amp;chapter=' . $chapterparam . '">' . $chapterprops[0] . '</a>';
26
+            $chapternav .= ' | <a href="?page='.$mypage.'&amp;subpage='.$subpage.'&amp;chapter='.$chapterparam.'">'.$chapterprops[0].'</a>';
27 27
         } else {
28
-            $chapternav .= ' | <a class="rex-active" href="?page=' . $mypage . '&amp;subpage=' . $subpage . '&amp;chapter=' . $chapterparam . '">' . $chapterprops[0] . '</a>';
28
+            $chapternav .= ' | <a class="rex-active" href="?page='.$mypage.'&amp;subpage='.$subpage.'&amp;chapter='.$chapterparam.'">'.$chapterprops[0].'</a>';
29 29
         }
30 30
     }
31 31
 }
32 32
 $chapternav = ltrim($chapternav, ' | ');
33 33
 
34 34
 // build chapter output
35
-$addonroot = $REX['INCLUDE_PATH'] . '/addons/' . $mypage . '/';
35
+$addonroot = $REX['INCLUDE_PATH'].'/addons/'.$mypage.'/';
36 36
 $source    = $chapterpages[$chapter][1];
37 37
 
38 38
 // output
39 39
 echo '
40
-<div class="rex-addon-output" id="subpage-' . $subpage . '">
41
-  <h2 class="rex-hl2" style="font-size:1em">' . $chapternav . '</h2>
40
+<div class="rex-addon-output" id="subpage-' . $subpage.'">
41
+  <h2 class="rex-hl2" style="font-size:1em">' . $chapternav.'</h2>
42 42
   <div class="rex-addon-content">
43 43
     <div class= "addon-template">
44 44
     ';
45 45
 
46
-include($addonroot . $source);
46
+include($addonroot.$source);
47 47
 
48 48
 echo '
49 49
     </div>
Please login to merge, or discard this patch.
assets/js/magnific_popup/redaxo/magnific_popup/uninstall.inc.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -4,29 +4,29 @@
 block discarded – undo
4 4
 //$sql->debugsql = true;
5 5
 
6 6
 // remove single image imagetype
7
-$sql->setQuery('SELECT id FROM `' . $REX['TABLE_PREFIX'] . "679_types` WHERE name LIKE 'magnific_popup_image_thumb'");
7
+$sql->setQuery('SELECT id FROM `'.$REX['TABLE_PREFIX']."679_types` WHERE name LIKE 'magnific_popup_image_thumb'");
8 8
 
9 9
 if (1 == $sql->getRows()) {
10 10
     $imageTypeId = $sql->getValue('id');
11 11
 
12 12
     // imagetype
13
-    $sql->setQuery('DELETE FROM `' . $REX['TABLE_PREFIX'] . '679_types` WHERE id = ' . $imageTypeId);
13
+    $sql->setQuery('DELETE FROM `'.$REX['TABLE_PREFIX'].'679_types` WHERE id = '.$imageTypeId);
14 14
 
15 15
     // effects
16
-    $sql->setQuery('DELETE FROM `' . $REX['TABLE_PREFIX'] . '679_type_effects` WHERE type_id = ' . $imageTypeId);
16
+    $sql->setQuery('DELETE FROM `'.$REX['TABLE_PREFIX'].'679_type_effects` WHERE type_id = '.$imageTypeId);
17 17
 }
18 18
 
19 19
 // add gallery image imagetype
20
-$sql->setQuery('SELECT id FROM `' . $REX['TABLE_PREFIX'] . "679_types` WHERE name LIKE 'magnific_popup_gallery_thumb'");
20
+$sql->setQuery('SELECT id FROM `'.$REX['TABLE_PREFIX']."679_types` WHERE name LIKE 'magnific_popup_gallery_thumb'");
21 21
 
22 22
 if (1 == $sql->getRows()) {
23 23
     $imageTypeId = $sql->getValue('id');
24 24
 
25 25
     // imagetype
26
-    $sql->setQuery('DELETE FROM `' . $REX['TABLE_PREFIX'] . '679_types` WHERE id = ' . $imageTypeId);
26
+    $sql->setQuery('DELETE FROM `'.$REX['TABLE_PREFIX'].'679_types` WHERE id = '.$imageTypeId);
27 27
 
28 28
     // effects
29
-    $sql->setQuery('DELETE FROM `' . $REX['TABLE_PREFIX'] . '679_type_effects` WHERE type_id = ' . $imageTypeId);
29
+    $sql->setQuery('DELETE FROM `'.$REX['TABLE_PREFIX'].'679_type_effects` WHERE type_id = '.$imageTypeId);
30 30
 }
31 31
 
32 32
 // done!
Please login to merge, or discard this patch.
js/magnific_popup/redaxo/magnific_popup/classes/class.parsedown.inc.php 1 patch
Spacing   +30 added lines, -30 removed lines patch added patch discarded remove patch
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
 
90 90
             foreach ($escape_sequences as $index => $escape_sequence) {
91 91
                 if (false !== strpos($text, $escape_sequence)) {
92
-                    $code = "\x1A" . '\\' . $index . ';';
92
+                    $code = "\x1A".'\\'.$index.';';
93 93
 
94 94
                     $text = str_replace($escape_sequence, $code, $text);
95 95
 
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
                 case 'fenced block':
144 144
 
145 145
                     if (!isset($element['closed'])) {
146
-                        if (preg_match('/^[ ]*' . $element['fence'][0] . '{3,}[ ]*$/', $line)) {
146
+                        if (preg_match('/^[ ]*'.$element['fence'][0].'{3,}[ ]*$/', $line)) {
147 147
                             $element['closed'] = true;
148 148
                         } else {
149 149
                             '' !== $element['text'] and $element['text'] .= "\n";
@@ -167,7 +167,7 @@  discard block
 block discarded – undo
167 167
                             $element['depth'] > 0 ? $element['depth']-- : $element['closed'] = true;
168 168
                         }
169 169
 
170
-                        $element['text'] .= "\n" . $line;
170
+                        $element['text'] .= "\n".$line;
171 171
 
172 172
                         continue 2;
173 173
                     }
@@ -263,7 +263,7 @@  discard block
 block discarded – undo
263 263
                                 unset($element['interrupted']);
264 264
                             }
265 265
 
266
-                            $element['text'] .= "\n" . $code_line;
266
+                            $element['text'] .= "\n".$code_line;
267 267
                         } else {
268 268
                             $elements [] = $element;
269 269
 
@@ -376,8 +376,8 @@  discard block
 block discarded – undo
376 376
                         $element = array(
377 377
                             'type'  => 'block-level markup',
378 378
                             'text'  => $deindented_line,
379
-                            'start' => '<' . $name . '>',
380
-                            'end'   => '</' . $name . '>',
379
+                            'start' => '<'.$name.'>',
380
+                            'end'   => '</'.$name.'>',
381 381
                             'depth' => 0
382 382
                         );
383 383
 
@@ -514,7 +514,7 @@  discard block
 block discarded – undo
514 514
 
515 515
                     unset($element['interrupted']);
516 516
                 } else {
517
-                    $element['text'] .= "\n" . $line;
517
+                    $element['text'] .= "\n".$line;
518 518
                 }
519 519
             } else {
520 520
                 $elements [] = $element;
@@ -544,12 +544,12 @@  discard block
 block discarded – undo
544 544
 
545 545
                     if ('li' === $context and '' === $markup) {
546 546
                         if (isset($element['interrupted'])) {
547
-                            $markup .= "\n" . '<p>' . $text . '</p>' . "\n";
547
+                            $markup .= "\n".'<p>'.$text.'</p>'."\n";
548 548
                         } else {
549 549
                             $markup .= $text;
550 550
                         }
551 551
                     } else {
552
-                        $markup .= '<p>' . $text . '</p>' . "\n";
552
+                        $markup .= '<p>'.$text.'</p>'."\n";
553 553
                     }
554 554
 
555 555
                     break;
@@ -558,7 +558,7 @@  discard block
 block discarded – undo
558 558
 
559 559
                     $text = $this->parse_block_elements($element['lines']);
560 560
 
561
-                    $markup .= '<blockquote>' . "\n" . $text . '</blockquote>' . "\n";
561
+                    $markup .= '<blockquote>'."\n".$text.'</blockquote>'."\n";
562 562
 
563 563
                     break;
564 564
 
@@ -568,7 +568,7 @@  discard block
 block discarded – undo
568 568
 
569 569
                     false !== strpos($text, "\x1A\\") and $text = strtr($text, $this->escape_sequence_map);
570 570
 
571
-                    $markup .= isset($element['language']) ? '<pre><code class="language-' . $element['language'] . '">' . $text . '</code></pre>' : '<pre><code>' . $text . '</code></pre>';
571
+                    $markup .= isset($element['language']) ? '<pre><code class="language-'.$element['language'].'">'.$text.'</code></pre>' : '<pre><code>'.$text.'</code></pre>';
572 572
 
573 573
                     $markup .= "\n";
574 574
 
@@ -580,7 +580,7 @@  discard block
 block discarded – undo
580 580
 
581 581
                     false !== strpos($text, "\x1A\\") and $text = strtr($text, $this->escape_sequence_map);
582 582
 
583
-                    $markup .= rex_highlight_string($text, true) . "\n";
583
+                    $markup .= rex_highlight_string($text, true)."\n";
584 584
 
585 585
                     $markup .= "\n";
586 586
 
@@ -590,13 +590,13 @@  discard block
 block discarded – undo
590 590
 
591 591
                     $text = $this->parse_span_elements($element['text']);
592 592
 
593
-                    $markup .= '<h' . $element['level'] . '>' . $text . '</h' . $element['level'] . '>' . "\n";
593
+                    $markup .= '<h'.$element['level'].'>'.$text.'</h'.$element['level'].'>'."\n";
594 594
 
595 595
                     break;
596 596
 
597 597
                 case 'hr':
598 598
 
599
-                    $markup .= '<hr >' . "\n";
599
+                    $markup .= '<hr >'."\n";
600 600
 
601 601
                     break;
602 602
 
@@ -605,7 +605,7 @@  discard block
 block discarded – undo
605 605
                     if (isset($element['ordered'])) { # first
606 606
                         $list_type = $element['ordered'] ? 'ol' : 'ul';
607 607
 
608
-                        $markup .= '<' . $list_type . '>' . "\n";
608
+                        $markup .= '<'.$list_type.'>'."\n";
609 609
                     }
610 610
 
611 611
                     if (isset($element['interrupted']) and !isset($element['last'])) {
@@ -614,21 +614,21 @@  discard block
 block discarded – undo
614 614
 
615 615
                     $text = $this->parse_block_elements($element['lines'], 'li');
616 616
 
617
-                    $markup .= '<li>' . $text . '</li>' . "\n";
617
+                    $markup .= '<li>'.$text.'</li>'."\n";
618 618
 
619
-                    isset($element['last']) and $markup .= '</' . $list_type . '>' . "\n";
619
+                    isset($element['last']) and $markup .= '</'.$list_type.'>'."\n";
620 620
 
621 621
                     break;
622 622
 
623 623
                 case 'block-level markup':
624 624
 
625
-                    $markup .= $element['text'] . "\n";
625
+                    $markup .= $element['text']."\n";
626 626
 
627 627
                     break;
628 628
 
629 629
                 default:
630 630
 
631
-                    $markup .= $element['text'] . "\n";
631
+                    $markup .= $element['text']."\n";
632 632
             }
633 633
         }
634 634
 
@@ -743,11 +743,11 @@  discard block
 block discarded – undo
743 743
                         $element['»'] = str_replace('<', '&lt;', $element['»']);
744 744
 
745 745
                         if ($element['!']) {
746
-                            $markup .= '<img alt="' . $element['a'] . '" src="' . $element['»'] . '" >';
746
+                            $markup .= '<img alt="'.$element['a'].'" src="'.$element['»'].'" >';
747 747
                         } else {
748 748
                             $element['a'] = $this->parse_span_elements($element['a'], $markers);
749 749
 
750
-                            $markup .= isset($element['#']) ? '<a href="' . $element['»'] . '" title="' . $element['#'] . '">' . $element['a'] . '</a>' : '<a href="' . $element['»'] . '">' . $element['a'] . '</a>';
750
+                            $markup .= isset($element['#']) ? '<a href="'.$element['»'].'" title="'.$element['#'].'">'.$element['a'].'</a>' : '<a href="'.$element['»'].'">'.$element['a'].'</a>';
751 751
                         }
752 752
 
753 753
                         unset($element);
@@ -779,25 +779,25 @@  discard block
 block discarded – undo
779 779
                     if ($text[1] === $closest_marker and preg_match($this->strong_regex[$closest_marker], $text, $matches)) {
780 780
                         $matches[1] = $this->parse_span_elements($matches[1], $markers);
781 781
 
782
-                        $markup .= '<strong>' . $matches[1] . '</strong>';
782
+                        $markup .= '<strong>'.$matches[1].'</strong>';
783 783
                     } elseif (preg_match($this->em_regex[$closest_marker], $text, $matches)) {
784 784
                         $matches[1] = $this->parse_span_elements($matches[1], $markers);
785 785
 
786
-                        $markup .= '<em>' . $matches[1] . '</em>';
786
+                        $markup .= '<em>'.$matches[1].'</em>';
787 787
                     } elseif ($text[1] === $closest_marker and preg_match($this->strong_em_regex[$closest_marker], $text, $matches)) {
788 788
                         $matches[2] = $this->parse_span_elements($matches[2], $markers);
789 789
 
790 790
                         $matches[1] and $matches[1] = $this->parse_span_elements($matches[1], $markers);
791 791
                         $matches[3] and $matches[3] = $this->parse_span_elements($matches[3], $markers);
792 792
 
793
-                        $markup .= '<strong>' . $matches[1] . '<em>' . $matches[2] . '</em>' . $matches[3] . '</strong>';
793
+                        $markup .= '<strong>'.$matches[1].'<em>'.$matches[2].'</em>'.$matches[3].'</strong>';
794 794
                     } elseif (preg_match($this->em_strong_regex[$closest_marker], $text, $matches)) {
795 795
                         $matches[2] = $this->parse_span_elements($matches[2], $markers);
796 796
 
797 797
                         $matches[1] and $matches[1] = $this->parse_span_elements($matches[1], $markers);
798 798
                         $matches[3] and $matches[3] = $this->parse_span_elements($matches[3], $markers);
799 799
 
800
-                        $markup .= '<em>' . $matches[1] . '<strong>' . $matches[2] . '</strong>' . $matches[3] . '</em>';
800
+                        $markup .= '<em>'.$matches[1].'<strong>'.$matches[2].'</strong>'.$matches[3].'</em>';
801 801
                     }
802 802
 
803 803
                     if (isset($matches) and $matches) {
@@ -818,7 +818,7 @@  discard block
 block discarded – undo
818 818
                             $element_url = str_replace('&', '&amp;', $element_url);
819 819
                             $element_url = str_replace('<', '&lt;', $element_url);
820 820
 
821
-                            $markup .= '<a href="' . $element_url . '">' . $element_url . '</a>';
821
+                            $markup .= '<a href="'.$element_url.'">'.$element_url.'</a>';
822 822
 
823 823
                             $offset = strlen($matches[0]);
824 824
                         } elseif (preg_match('/^<\/?\w.*?>/', $text, $matches)) {
@@ -848,7 +848,7 @@  discard block
 block discarded – undo
848 848
                             $element_text = strtr($element_text, $this->escape_sequence_map);
849 849
                         }
850 850
 
851
-                        $markup .= '<code>' . $element_text . '</code>';
851
+                        $markup .= '<code>'.$element_text.'</code>';
852 852
 
853 853
                         $offset = strlen($matches[0]);
854 854
                     } else {
@@ -866,7 +866,7 @@  discard block
 block discarded – undo
866 866
                         $element_url = str_replace('&', '&amp;', $element_url);
867 867
                         $element_url = str_replace('<', '&lt;', $element_url);
868 868
 
869
-                        $markup .= '<a href="' . $element_url . '">' . $element_url . '</a>';
869
+                        $markup .= '<a href="'.$element_url.'">'.$element_url.'</a>';
870 870
 
871 871
                         $offset = strlen($matches[0]);
872 872
                     } else {
@@ -882,7 +882,7 @@  discard block
 block discarded – undo
882 882
                     if (preg_match('/^~~(?=\S)(.+?)(?<=\S)~~/', $text, $matches)) {
883 883
                         $matches[1] = $this->parse_span_elements($matches[1], $markers);
884 884
 
885
-                        $markup .= '<del>' . $matches[1] . '</del>';
885
+                        $markup .= '<del>'.$matches[1].'</del>';
886 886
 
887 887
                         $offset = strlen($matches[0]);
888 888
                     } else {
@@ -901,7 +901,7 @@  discard block
 block discarded – undo
901 901
             $markers[$closest_marker_index] = $closest_marker;
902 902
         }
903 903
 
904
-        $markup = str_replace($this->break_marker, '<br >' . "\n", $markup);
904
+        $markup = str_replace($this->break_marker, '<br >'."\n", $markup);
905 905
 
906 906
         return $markup;
907 907
     }
Please login to merge, or discard this patch.