Completed
Push — master ( 754537...f00877 )
by Petrus
04:14
created
vendor/ezyang/htmlpurifier/library/HTMLPurifier/EntityLookup.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
     public function setup($file = false)
22 22
     {
23 23
         if (!$file) {
24
-            $file = HTMLPURIFIER_PREFIX . '/HTMLPurifier/EntityLookup/entities.ser';
24
+            $file = HTMLPURIFIER_PREFIX.'/HTMLPurifier/EntityLookup/entities.ser';
25 25
         }
26 26
         $this->table = unserialize(file_get_contents($file));
27 27
     }
Please login to merge, or discard this patch.
vendor/ezyang/htmlpurifier/library/HTMLPurifier/AttrTransform/Textarea.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -14,11 +14,11 @@
 block discarded – undo
14 14
     public function transform($attr, $config, $context)
15 15
     {
16 16
         // Calculated from Firefox
17
-        if (!isset($attr['cols'])) {
18
-            $attr['cols'] = '22';
17
+        if (!isset($attr[ 'cols' ])) {
18
+            $attr[ 'cols' ] = '22';
19 19
         }
20
-        if (!isset($attr['rows'])) {
21
-            $attr['rows'] = '3';
20
+        if (!isset($attr[ 'rows' ])) {
21
+            $attr[ 'rows' ] = '3';
22 22
         }
23 23
         return $attr;
24 24
     }
Please login to merge, or discard this patch.
vendor/ezyang/htmlpurifier/library/HTMLPurifier/AttrTransform/Lang.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -16,13 +16,13 @@
 block discarded – undo
16 16
      */
17 17
     public function transform($attr, $config, $context)
18 18
     {
19
-        $lang = isset($attr['lang']) ? $attr['lang'] : false;
20
-        $xml_lang = isset($attr['xml:lang']) ? $attr['xml:lang'] : false;
19
+        $lang = isset($attr[ 'lang' ]) ? $attr[ 'lang' ] : false;
20
+        $xml_lang = isset($attr[ 'xml:lang' ]) ? $attr[ 'xml:lang' ] : false;
21 21
 
22 22
         if ($lang !== false && $xml_lang === false) {
23
-            $attr['xml:lang'] = $lang;
23
+            $attr[ 'xml:lang' ] = $lang;
24 24
         } elseif ($xml_lang !== false) {
25
-            $attr['lang'] = $xml_lang;
25
+            $attr[ 'lang' ] = $xml_lang;
26 26
         }
27 27
         return $attr;
28 28
     }
Please login to merge, or discard this patch.
vendor/ezyang/htmlpurifier/library/HTMLPurifier/AttrTransform/BgColor.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
      */
14 14
     public function transform($attr, $config, $context)
15 15
     {
16
-        if (!isset($attr['bgcolor'])) {
16
+        if (!isset($attr[ 'bgcolor' ])) {
17 17
             return $attr;
18 18
         }
19 19
 
Please login to merge, or discard this patch.
vendor/ezyang/htmlpurifier/library/HTMLPurifier/AttrTransform/ImgSpace.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -24,8 +24,8 @@  discard block
 block discarded – undo
24 24
     public function __construct($attr)
25 25
     {
26 26
         $this->attr = $attr;
27
-        if (!isset($this->css[$attr])) {
28
-            trigger_error(htmlspecialchars($attr) . ' is not valid space attribute');
27
+        if (!isset($this->css[ $attr ])) {
28
+            trigger_error(htmlspecialchars($attr).' is not valid space attribute');
29 29
         }
30 30
     }
31 31
 
@@ -37,19 +37,19 @@  discard block
 block discarded – undo
37 37
      */
38 38
     public function transform($attr, $config, $context)
39 39
     {
40
-        if (!isset($attr[$this->attr])) {
40
+        if (!isset($attr[ $this->attr ])) {
41 41
             return $attr;
42 42
         }
43 43
 
44 44
         $width = $this->confiscateAttr($attr, $this->attr);
45 45
         // some validation could happen here
46 46
 
47
-        if (!isset($this->css[$this->attr])) {
47
+        if (!isset($this->css[ $this->attr ])) {
48 48
             return $attr;
49 49
         }
50 50
 
51 51
         $style = '';
52
-        foreach ($this->css[$this->attr] as $suffix) {
52
+        foreach ($this->css[ $this->attr ] as $suffix) {
53 53
             $property = "margin-$suffix";
54 54
             $style .= "$property:{$width}px;";
55 55
         }
Please login to merge, or discard this patch.
ezyang/htmlpurifier/library/HTMLPurifier/AttrTransform/TargetBlank.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -27,16 +27,16 @@
 block discarded – undo
27 27
      */
28 28
     public function transform($attr, $config, $context)
29 29
     {
30
-        if (!isset($attr['href'])) {
30
+        if (!isset($attr[ 'href' ])) {
31 31
             return $attr;
32 32
         }
33 33
 
34 34
         // XXX Kind of inefficient
35
-        $url = $this->parser->parse($attr['href']);
35
+        $url = $this->parser->parse($attr[ 'href' ]);
36 36
         $scheme = $url->getSchemeObj($config, $context);
37 37
 
38 38
         if ($scheme->browsable && !$url->isBenign($config, $context)) {
39
-            $attr['target'] = '_blank';
39
+            $attr[ 'target' ] = '_blank';
40 40
         }
41 41
         return $attr;
42 42
     }
Please login to merge, or discard this patch.
ezyang/htmlpurifier/library/HTMLPurifier/AttrTransform/Background.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
      */
14 14
     public function transform($attr, $config, $context)
15 15
     {
16
-        if (!isset($attr['background'])) {
16
+        if (!isset($attr[ 'background' ])) {
17 17
             return $attr;
18 18
         }
19 19
 
Please login to merge, or discard this patch.
vendor/ezyang/htmlpurifier/library/HTMLPurifier/AttrTransform/NameSync.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -21,18 +21,18 @@
 block discarded – undo
21 21
      */
22 22
     public function transform($attr, $config, $context)
23 23
     {
24
-        if (!isset($attr['name'])) {
24
+        if (!isset($attr[ 'name' ])) {
25 25
             return $attr;
26 26
         }
27
-        $name = $attr['name'];
28
-        if (isset($attr['id']) && $attr['id'] === $name) {
27
+        $name = $attr[ 'name' ];
28
+        if (isset($attr[ 'id' ]) && $attr[ 'id' ] === $name) {
29 29
             return $attr;
30 30
         }
31 31
         $result = $this->idDef->validate($name, $config, $context);
32 32
         if ($result === false) {
33
-            unset($attr['name']);
33
+            unset($attr[ 'name' ]);
34 34
         } else {
35
-            $attr['name'] = $result;
35
+            $attr[ 'name' ] = $result;
36 36
         }
37 37
         return $attr;
38 38
     }
Please login to merge, or discard this patch.
ezyang/htmlpurifier/library/HTMLPurifier/AttrTransform/SafeObject.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,8 +18,8 @@
 block discarded – undo
18 18
      */
19 19
     public function transform($attr, $config, $context)
20 20
     {
21
-        if (!isset($attr['type'])) {
22
-            $attr['type'] = 'application/x-shockwave-flash';
21
+        if (!isset($attr[ 'type' ])) {
22
+            $attr[ 'type' ] = 'application/x-shockwave-flash';
23 23
         }
24 24
         return $attr;
25 25
     }
Please login to merge, or discard this patch.