Passed
Push — 1.10.x ( 5654d2...115d5a )
by Yannick
263:14 queued 212:07
created
main/inc/lib/pear/HTML/QuickForm/textarea.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -194,13 +194,13 @@
 block discarded – undo
194 194
             return $this->getFrozenHtml();
195 195
         } else {
196 196
             return $this->_getTabs() .
197
-                   '<textarea' . $this->_getAttrString($this->_attributes) . '>' .
198
-                   // because we wrap the form later we don't want the text indented
199
-                   // Modified by Ivan Tcholakov, 16-MAR-2010.
200
-                   //preg_replace("/(\r\n|\n|\r)/", '&#010;', htmlspecialchars($this->_value)) .
201
-                   preg_replace("/(\r\n|\n|\r)/", '&#010;', @htmlspecialchars($this->_value, ENT_COMPAT, HTML_Common::charset())) .
202
-                   //
203
-                   '</textarea>';
197
+                    '<textarea' . $this->_getAttrString($this->_attributes) . '>' .
198
+                    // because we wrap the form later we don't want the text indented
199
+                    // Modified by Ivan Tcholakov, 16-MAR-2010.
200
+                    //preg_replace("/(\r\n|\n|\r)/", '&#010;', htmlspecialchars($this->_value)) .
201
+                    preg_replace("/(\r\n|\n|\r)/", '&#010;', @htmlspecialchars($this->_value, ENT_COMPAT, HTML_Common::charset())) .
202
+                    //
203
+                    '</textarea>';
204 204
         }
205 205
     }
206 206
 
Please login to merge, or discard this patch.
main/inc/lib/pear/HTML/QuickForm/header.php 1 patch
Indentation   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -34,14 +34,14 @@  discard block
 block discarded – undo
34 34
 {
35 35
     // {{{ constructor
36 36
 
37
-   /**
38
-    * Class constructor
39
-    *
40
-    * @param string $elementName    Header name
41
-    * @param string $text           Header text
42
-    * @access public
43
-    * @return void
44
-    */
37
+    /**
38
+     * Class constructor
39
+     *
40
+     * @param string $elementName    Header name
41
+     * @param string $text           Header text
42
+     * @access public
43
+     * @return void
44
+     */
45 45
     function HTML_QuickForm_header($elementName = null, $text = null)
46 46
     {
47 47
         if (!empty($elementName)) {
@@ -54,13 +54,13 @@  discard block
 block discarded – undo
54 54
     // }}}
55 55
     // {{{ accept()
56 56
 
57
-   /**
58
-    * Accepts a renderer
59
-    *
60
-    * @param HTML_QuickForm_Renderer    renderer object
61
-    * @access public
62
-    * @return void
63
-    */
57
+    /**
58
+     * Accepts a renderer
59
+     *
60
+     * @param HTML_QuickForm_Renderer    renderer object
61
+     * @access public
62
+     * @return void
63
+     */
64 64
     function accept(&$renderer, $required=false, $error=null)
65 65
     {
66 66
         $renderer->renderHeader($this);
Please login to merge, or discard this patch.
main/inc/lib/pear/HTML/QuickForm/advanced_settings.php 1 patch
Indentation   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -6,12 +6,12 @@  discard block
 block discarded – undo
6 6
 class HTML_QuickForm_advanced_settings extends HTML_QuickForm_static
7 7
 {
8 8
     /**
9
-    * Class constructor
10
-    *
11
-    * @param string $text   raw HTML to add
12
-    * @access public
13
-    * @return void
14
-    */
9
+     * Class constructor
10
+     *
11
+     * @param string $text   raw HTML to add
12
+     * @access public
13
+     * @return void
14
+     */
15 15
     public function __construct($name = '', $label = '')
16 16
     {
17 17
         if (empty($label)) {
@@ -26,13 +26,13 @@  discard block
 block discarded – undo
26 26
         $this->_type = 'html';
27 27
     }
28 28
 
29
-   /**
30
-    * Accepts a renderer
31
-    *
32
-    * @param HTML_QuickForm_Renderer    renderer object (only works with Default renderer!)
33
-    * @access public
34
-    * @return void
35
-    */
29
+    /**
30
+     * Accepts a renderer
31
+     *
32
+     * @param HTML_QuickForm_Renderer    renderer object (only works with Default renderer!)
33
+     * @access public
34
+     * @return void
35
+     */
36 36
     function accept(&$renderer, $required = false, $error = null)
37 37
     {
38 38
         $renderer->renderHtml($this);
Please login to merge, or discard this patch.
main/inc/lib/pear/HTML/QuickForm/advmultiselect.php 1 patch
Indentation   +40 added lines, -40 removed lines patch added patch discarded remove patch
@@ -1,45 +1,45 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Copyright (c) 2005-2009, Laurent Laville <[email protected]>
4
- *
5
- * All rights reserved.
6
- *
7
- * Redistribution and use in source and binary forms, with or without
8
- * modification, are permitted provided that the following conditions
9
- * are met:
10
- *
11
- *     * Redistributions of source code must retain the above copyright
12
- *       notice, this list of conditions and the following disclaimer.
13
- *     * Redistributions in binary form must reproduce the above copyright
14
- *       notice, this list of conditions and the following disclaimer in the
15
- *       documentation and/or other materials provided with the distribution.
16
- *     * Neither the name of the authors nor the names of its contributors
17
- *       may be used to endorse or promote products derived from this software
18
- *       without specific prior written permission.
19
- *
20
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
24
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
25
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
26
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
27
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
28
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
29
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
30
- * POSSIBILITY OF SUCH DAMAGE.
31
- *
32
- * PHP versions 4 and 5
33
- *
34
- * @category  HTML
35
- * @package   HTML_QuickForm_advmultiselect
36
- * @author    Laurent Laville <[email protected]>
37
- * @copyright 2005-2009 Laurent Laville
38
- * @license   http://www.opensource.org/licenses/bsd-license.php  BSD
39
- * @version   CVS: $Id: advmultiselect.php,v 1.36 2009/04/05 07:03:39 farell Exp $
40
- * @link      http://pear.php.net/package/HTML_QuickForm_advmultiselect
41
- * @since     File available since Release 0.4.0
42
- */
3
+     * Copyright (c) 2005-2009, Laurent Laville <[email protected]>
4
+     *
5
+     * All rights reserved.
6
+     *
7
+     * Redistribution and use in source and binary forms, with or without
8
+     * modification, are permitted provided that the following conditions
9
+     * are met:
10
+     *
11
+     *     * Redistributions of source code must retain the above copyright
12
+     *       notice, this list of conditions and the following disclaimer.
13
+     *     * Redistributions in binary form must reproduce the above copyright
14
+     *       notice, this list of conditions and the following disclaimer in the
15
+     *       documentation and/or other materials provided with the distribution.
16
+     *     * Neither the name of the authors nor the names of its contributors
17
+     *       may be used to endorse or promote products derived from this software
18
+     *       without specific prior written permission.
19
+     *
20
+     * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21
+     * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22
+     * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23
+     * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
24
+     * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
25
+     * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
26
+     * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
27
+     * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
28
+     * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
29
+     * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
30
+     * POSSIBILITY OF SUCH DAMAGE.
31
+     *
32
+     * PHP versions 4 and 5
33
+     *
34
+     * @category  HTML
35
+     * @package   HTML_QuickForm_advmultiselect
36
+     * @author    Laurent Laville <[email protected]>
37
+     * @copyright 2005-2009 Laurent Laville
38
+     * @license   http://www.opensource.org/licenses/bsd-license.php  BSD
39
+     * @version   CVS: $Id: advmultiselect.php,v 1.36 2009/04/05 07:03:39 farell Exp $
40
+     * @link      http://pear.php.net/package/HTML_QuickForm_advmultiselect
41
+     * @since     File available since Release 0.4.0
42
+     */
43 43
 
44 44
 /**
45 45
  * Basic error codes
Please login to merge, or discard this patch.
main/inc/lib/pear/HTML/QuickForm/advcheckbox.php 1 patch
Indentation   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -156,12 +156,12 @@  discard block
 block discarded – undo
156 156
     // }}}
157 157
     // {{{ setValue()
158 158
 
159
-   /**
160
-    * Sets the element's value
161
-    *
162
-    * @param    mixed   Element's value
163
-    * @access   public
164
-    */
159
+    /**
160
+     * Sets the element's value
161
+     *
162
+     * @param    mixed   Element's value
163
+     * @access   public
164
+     */
165 165
     function setValue($value)
166 166
     {
167 167
         $this->setChecked(isset($this->_values[1]) && $value == $this->_values[1]);
@@ -171,12 +171,12 @@  discard block
 block discarded – undo
171 171
     // }}}
172 172
     // {{{ getValue()
173 173
 
174
-   /**
175
-    * Returns the element's value
176
-    *
177
-    * @access   public
178
-    * @return   mixed
179
-    */
174
+    /**
175
+     * Returns the element's value
176
+     *
177
+     * @access   public
178
+     * @return   mixed
179
+     */
180 180
     function getValue()
181 181
     {
182 182
         if (is_array($this->_values)) {
@@ -205,7 +205,7 @@  discard block
 block discarded – undo
205 205
                         'type'  => 'hidden',
206 206
                         'name'  => $this->getName(),
207 207
                         'value' => $this->_values[0]
208
-                   )) . ' />' . parent::toHtml();
208
+                    )) . ' />' . parent::toHtml();
209 209
 
210 210
         }
211 211
     } //end func toHtml
@@ -213,14 +213,14 @@  discard block
 block discarded – undo
213 213
     // }}}
214 214
     // {{{ getFrozenHtml()
215 215
 
216
-   /**
217
-    * Unlike checkbox, this has to append a hidden input in both
218
-    * checked and non-checked states
219
-    */
216
+    /**
217
+     * Unlike checkbox, this has to append a hidden input in both
218
+     * checked and non-checked states
219
+     */
220 220
     function getFrozenHtml()
221 221
     {
222 222
         return ($this->getChecked()? '<tt>[x]</tt>': '<tt>[ ]</tt>') .
223
-               $this->_getPersistantData();
223
+                $this->_getPersistantData();
224 224
     }
225 225
 
226 226
     // }}}
@@ -262,10 +262,10 @@  discard block
 block discarded – undo
262 262
     // }}}
263 263
     // {{{ exportValue()
264 264
 
265
-   /**
266
-    * This element has a value even if it is not checked, thus we override
267
-    * checkbox's behaviour here
268
-    */
265
+    /**
266
+     * This element has a value even if it is not checked, thus we override
267
+     * checkbox's behaviour here
268
+     */
269 269
     function exportValue(&$submitValues, $assoc)
270 270
     {
271 271
         $value = $this->_findValue($submitValues);
Please login to merge, or discard this patch.
main/inc/lib/pear/HTML/QuickForm/html.php 1 patch
Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -37,26 +37,26 @@
 block discarded – undo
37 37
 class HTML_QuickForm_html extends HTML_QuickForm_static
38 38
 {
39 39
 
40
-   /**
41
-    * Class constructor
42
-    *
43
-    * @param string $text   raw HTML to add
44
-    * @access public
45
-    * @return void
46
-    */
40
+    /**
41
+     * Class constructor
42
+     *
43
+     * @param string $text   raw HTML to add
44
+     * @access public
45
+     * @return void
46
+     */
47 47
     public function __construct($text = null)
48 48
     {
49 49
         parent::__construct(null, null, $text);
50 50
         $this->_type = 'html';
51 51
     }
52 52
 
53
-   /**
54
-    * Accepts a renderer
55
-    *
56
-    * @param HTML_QuickForm_Renderer    renderer object (only works with Default renderer!)
57
-    * @access public
58
-    * @return void
59
-    */
53
+    /**
54
+     * Accepts a renderer
55
+     *
56
+     * @param HTML_QuickForm_Renderer    renderer object (only works with Default renderer!)
57
+     * @access public
58
+     * @return void
59
+     */
60 60
     public function accept(&$renderer, $required = false, $error = null)
61 61
     {
62 62
         $renderer->renderHtml($this);
Please login to merge, or discard this patch.
main/inc/lib/pear/HTML/QuickForm/password.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -91,6 +91,6 @@
 block discarded – undo
91 91
     {
92 92
         $value = $this->getValue();
93 93
         return ('' != $value? '**********': '&nbsp;') .
94
-               $this->_getPersistantData();
94
+                $this->_getPersistantData();
95 95
     }
96 96
 }
Please login to merge, or discard this patch.
main/inc/lib/pear/HTML/QuickForm/radio.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
     {
151 151
         if ($this->getChecked()) {
152 152
             return '<code>(x)</code>' .
153
-                   $this->_getPersistantData();
153
+                    $this->_getPersistantData();
154 154
         } else {
155 155
             return '<code>( )</code>';
156 156
         }
@@ -224,9 +224,9 @@  discard block
 block discarded – undo
224 224
         return true;
225 225
     }
226 226
 
227
-   /**
228
-    * Returns the value attribute if the radio is checked, null if it is not
229
-    */
227
+    /**
228
+     * Returns the value attribute if the radio is checked, null if it is not
229
+     */
230 230
     public function exportValue(&$submitValues, $assoc = false)
231 231
     {
232 232
         $value = $this->_findValue($submitValues);
Please login to merge, or discard this patch.
main/inc/lib/pear/HTML/QuickForm/hiddenselect.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -100,9 +100,9 @@
 block discarded – undo
100 100
     // }}}
101 101
     // {{{ accept()
102 102
 
103
-   /**
104
-    * This is essentially a hidden element and should be rendered as one
105
-    */
103
+    /**
104
+     * This is essentially a hidden element and should be rendered as one
105
+     */
106 106
     function accept(&$renderer)
107 107
     {
108 108
         $renderer->renderHidden($this);
Please login to merge, or discard this patch.