Completed
Push — master ( 1fd9bf...1ba521 )
by Mihail
04:08
created
src/Ffcms/Core/Helper/HTML/System/NativeGenerator.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
             $purifier = App::$Memory->get('object.purifier.helpers');
24 24
         } else {
25 25
             $config = \HTMLPurifier_Config::createDefault();
26
-            $config->set('Cache.SerializerPath', root . '/Private/Cache/HTMLPurifier/');
26
+            $config->set('Cache.SerializerPath', root.'/Private/Cache/HTMLPurifier/');
27 27
             $config->set('AutoFormat.AutoParagraph', false);
28 28
 
29 29
             // allow use target=_blank for links
@@ -65,9 +65,9 @@  discard block
 block discarded – undo
65 65
         $build = null;
66 66
         foreach ($property as $p => $v) {
67 67
             if ($v === null || $v === false || $v === true) {
68
-                $build .= ' ' . self::nohtml($p);
68
+                $build .= ' '.self::nohtml($p);
69 69
             } else {
70
-                $build .= ' ' . self::nohtml($p) . '="' . self::nohtml($v) . '"';
70
+                $build .= ' '.self::nohtml($p).'="'.self::nohtml($v).'"';
71 71
             }
72 72
         }
73 73
         return $build;
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
      */
83 83
     public static function buildSingleTag($tagName, array $property = null, $closeSlash = true)
84 84
     {
85
-        return '<' . self::nohtml($tagName) . self::applyProperty($property) . ($closeSlash ? '/>' : '>');
85
+        return '<'.self::nohtml($tagName).self::applyProperty($property).($closeSlash ? '/>' : '>');
86 86
     }
87 87
 
88 88
     /**
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
             $value = self::nohtml($value);
101 101
         }
102 102
         
103
-        return '<' . $tagName . self::applyProperty($property) . '>' . $value . '</' . $tagName . '>';
103
+        return '<'.$tagName.self::applyProperty($property).'>'.$value.'</'.$tagName.'>';
104 104
     }
105 105
 
106 106
     /**
@@ -142,13 +142,13 @@  discard block
 block discarded – undo
142 142
                 if (!Str::contains('/', $elementPoint) || count($elementArray) < 2) {
143 143
                     $active = $elementPoint === $currentPoint;
144 144
                 } else {
145
-                    $elementPoint = $elementArray[0] . '/' . $elementArray[1];
145
+                    $elementPoint = $elementArray[0].'/'.$elementArray[1];
146 146
                     $active = Str::startsWith($elementPoint, $currentPoint);
147 147
                 }
148 148
                 break;
149 149
             case 'id':
150 150
                 $elementArray = explode('/', $elementPoint);
151
-                $elementPoint = $elementArray[0] . '/' . $elementArray[1];
151
+                $elementPoint = $elementArray[0].'/'.$elementArray[1];
152 152
                 if ($elementArray[2] === null) { // looks like id is not defined in element
153 153
                     if (Str::contains('?', $currentPoint)) {
154 154
                         $currentPoint = Str::firstIn($currentPoint, '?');
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
                     $currentToId = implode('/', array_slice($currentArray, 0, 3));
158 158
                     $active = $elementPoint === $currentToId;
159 159
                 } else {
160
-                    $elementPoint .= '/' . $elementArray[2];
160
+                    $elementPoint .= '/'.$elementArray[2];
161 161
                     $active = Str::startsWith($elementPoint, $currentPoint);
162 162
                 }
163 163
                 break;
@@ -212,7 +212,7 @@  discard block
 block discarded – undo
212 212
      */
213 213
     public static function convertLink($uri)
214 214
     {
215
-        $link = App::$Alias->baseUrl . '/';
215
+        $link = App::$Alias->baseUrl.'/';
216 216
         if (Obj::isArray($uri)) {
217 217
             $link .= Url::buildPathway($uri);
218 218
         } elseif (Str::startsWith('http', $uri)) {
@@ -232,7 +232,7 @@  discard block
 block discarded – undo
232 232
      */
233 233
     public static function encode($uri)
234 234
     {
235
-        return implode('/', array_map(function($v){
235
+        return implode('/', array_map(function($v) {
236 236
             return urlencode($v);
237 237
         }, explode('/', $uri)));
238 238
     }
Please login to merge, or discard this patch.