Completed
Push — 1.10.x ( 4c5f4c...61bcd5 )
by Yannick
419:40 queued 371:43
created
main/inc/lib/pear/HTML/QuickForm/hiddenselect.php 2 patches
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.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
      * @access    public
52 52
      * @return    void
53 53
      */
54
-    function HTML_QuickForm_hiddenselect($elementName=null, $elementLabel=null, $options=null, $attributes=null)
54
+    function HTML_QuickForm_hiddenselect($elementName = null, $elementLabel = null, $options = null, $attributes = null)
55 55
     {
56 56
         parent::__construct($elementName, $elementLabel, $attributes);
57 57
         $this->_persistantFreeze = true;
@@ -85,11 +85,11 @@  discard block
 block discarded – undo
85 85
         foreach ($this->_values as $key => $val) {
86 86
             for ($i = 0, $optCount = count($this->_options); $i < $optCount; $i++) {
87 87
                 if ($val == $this->_options[$i]['attr']['value']) {
88
-                    $strHtml .= $tabs . '<input' . $this->_getAttrString(array(
88
+                    $strHtml .= $tabs.'<input'.$this->_getAttrString(array(
89 89
                         'type'  => 'hidden',
90 90
                         'name'  => $name,
91 91
                         'value' => $val
92
-                    )) . " />\n" ;
92
+                    ))." />\n";
93 93
                 }
94 94
             }
95 95
         }
Please login to merge, or discard this patch.
main/inc/lib/pear/HTML/QuickForm/input.php 3 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -183,9 +183,9 @@
 block discarded – undo
183 183
         return true;
184 184
     }
185 185
 
186
-   /**
187
-    * We don't need values from button-type elements (except submit) and files
188
-    */
186
+    /**
187
+     * We don't need values from button-type elements (except submit) and files
188
+     */
189 189
     function exportValue(&$submitValues, $assoc = false)
190 190
     {
191 191
         $type = $this->getType();
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
      * @access    public
48 48
      * @return    void
49 49
      */
50
-    public function __construct($elementName=null, $elementLabel=null, $attributes=null)
50
+    public function __construct($elementName = null, $elementLabel = null, $attributes = null)
51 51
     {
52 52
         parent::__construct($elementName, $elementLabel, $attributes);
53 53
     } //end constructor
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
         if ($this->_flagFrozen) {
147 147
             return $this->getFrozenHtml();
148 148
         } else {
149
-            return $this->_getTabs() . '<input' . $this->_getAttrString($this->_attributes) . ' />';
149
+            return $this->_getTabs().'<input'.$this->_getAttrString($this->_attributes).' />';
150 150
         }
151 151
     } //end func toHtml
152 152
 
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
      * Freeze the element so that only its value is returned
61 61
      *
62 62
      * @access    public
63
-     * @return    void
63
+     * @return    boolean
64 64
      */
65 65
     function freeze()
66 66
     {
Please login to merge, or discard this patch.
main/inc/lib/pear/HTML/QuickForm/static.php 3 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -184,9 +184,9 @@
 block discarded – undo
184 184
     // }}}
185 185
     // {{{ exportValue()
186 186
 
187
-   /**
188
-    * We override this here because we don't want any values from static elements
189
-    */
187
+    /**
188
+     * We override this here because we don't want any values from static elements
189
+     */
190 190
     function exportValue(&$submitValues, $assoc = false)
191 191
     {
192 192
         return null;
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -131,7 +131,7 @@
 block discarded – undo
131 131
      */
132 132
     public function toHtml()
133 133
     {
134
-        return $this->_getTabs() . $this->_text;
134
+        return $this->_getTabs().$this->_text;
135 135
     } //end func toHtml
136 136
 
137 137
     // }}}
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
      * Freeze the element so that only its value is returned
61 61
      *
62 62
      * @access    public
63
-     * @return    void
63
+     * @return    boolean
64 64
      */
65 65
     function freeze()
66 66
     {
Please login to merge, or discard this patch.
main/inc/lib/pear/HTML/QuickForm/checkbox.php 3 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -175,7 +175,7 @@  discard block
 block discarded – undo
175 175
     {
176 176
         if ($this->getChecked()) {
177 177
             return '<code>[x]</code>' .
178
-                   $this->_getPersistantData();
178
+                    $this->_getPersistantData();
179 179
         } else {
180 180
             return '<code>[ ]</code>';
181 181
         }
@@ -288,9 +288,9 @@  discard block
 block discarded – undo
288 288
     // }}}
289 289
     // {{{ exportValue()
290 290
 
291
-   /**
292
-    * Return true if the checkbox is checked, null if it is not checked (getValue() returns false)
293
-    */
291
+    /**
292
+     * Return true if the checkbox is checked, null if it is not checked (getValue() returns false)
293
+     */
294 294
     function exportValue(&$submitValues, $assoc = false)
295 295
     {
296 296
         $value = $this->_findValue($submitValues);
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
      */
125 125
     function getChecked()
126 126
     {
127
-        return (bool)$this->getAttribute('checked');
127
+        return (bool) $this->getAttribute('checked');
128 128
     } //end func getChecked
129 129
 
130 130
     // }}}
@@ -147,9 +147,9 @@  discard block
 block discarded – undo
147 147
             $labelClass = $this->labelClass;
148 148
             $checkboxClass = $this->checkboxClass;
149 149
 
150
-            $label ='
150
+            $label = '
151 151
                 <div class="'.$checkboxClass.'">
152
-                <label class="'.$labelClass.'">' .
152
+                <label class="'.$labelClass.'">'.
153 153
                     HTML_QuickForm_input::toHtml().$this->_text.
154 154
                 '</label>
155 155
                 </div>
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
             return $label;
159 159
         }
160 160
 
161
-        return HTML_QuickForm_input::toHtml() . $label;
161
+        return HTML_QuickForm_input::toHtml().$label;
162 162
     } //end func toHtml
163 163
 
164 164
     // }}}
@@ -174,7 +174,7 @@  discard block
 block discarded – undo
174 174
     function getFrozenHtml()
175 175
     {
176 176
         if ($this->getChecked()) {
177
-            return '<code>[x]</code>' .
177
+            return '<code>[x]</code>'.
178 178
                    $this->_getPersistantData();
179 179
         } else {
180 180
             return '<code>[ ]</code>';
@@ -295,7 +295,7 @@  discard block
 block discarded – undo
295 295
     {
296 296
         $value = $this->_findValue($submitValues);
297 297
         if (null === $value) {
298
-            $value = $this->getChecked()? true: null;
298
+            $value = $this->getChecked() ? true : null;
299 299
         }
300 300
         return $this->_prepareValue($value, $assoc);
301 301
     }
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
      * Freeze the element so that only its value is returned
61 61
      *
62 62
      * @access    public
63
-     * @return    void
63
+     * @return    boolean
64 64
      */
65 65
     function freeze()
66 66
     {
Please login to merge, or discard this patch.
main/inc/lib/pear/HTML/QuickForm/Rule/Email.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
     function validate($email, $checkDomain = false)
46 46
     {
47 47
         // Fix for bug #10799: add 'D' modifier to regex
48
-        if (preg_match($this->regex . 'D', $email)) {
48
+        if (preg_match($this->regex.'D', $email)) {
49 49
             if ($checkDomain && function_exists('checkdnsrr')) {
50 50
                 $tokens = explode('@', $email);
51 51
                 if (checkdnsrr($tokens[1], 'MX') || checkdnsrr($tokens[1], 'A')) {
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
 
62 62
     function getValidationScript($options = null)
63 63
     {
64
-        return array("  var regex = " . $this->regex . ";\n", "{jsVar} != '' && !regex.test({jsVar})");
64
+        return array("  var regex = ".$this->regex.";\n", "{jsVar} != '' && !regex.test({jsVar})");
65 65
     } // end func getValidationScript
66 66
 
67 67
 } // end class HTML_QuickForm_Rule_Email
Please login to merge, or discard this patch.
main/inc/lib/pear/HTML/QuickForm/Rule/Callback.php 2 patches
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -44,16 +44,16 @@
 block discarded – undo
44 44
      */
45 45
     var $_data = array();
46 46
 
47
-   /**
48
-    * Whether to use BC mode for specific rules
49
-    *
50
-    * Previous versions of QF passed element's name as a first parameter
51
-    * to validation functions, but not to validation methods. This behaviour
52
-    * is emulated if you are using 'function' as rule type when registering.
53
-    *
54
-    * @var array
55
-    * @access private
56
-    */
47
+    /**
48
+     * Whether to use BC mode for specific rules
49
+     *
50
+     * Previous versions of QF passed element's name as a first parameter
51
+     * to validation functions, but not to validation methods. This behaviour
52
+     * is emulated if you are using 'function' as rule type when registering.
53
+     *
54
+     * @var array
55
+     * @access private
56
+     */
57 57
     var $_BCMode = array();
58 58
 
59 59
     /**
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -106,10 +106,10 @@
 block discarded – undo
106 106
     {
107 107
         if (isset($this->_data[$this->name])) {
108 108
             $callback = $this->_data[$this->name][0];
109
-            $params   = ($this->_BCMode[$this->name]? "'', {jsVar}": '{jsVar}') .
110
-                        (isset($options)? ", '{$options}'": '');
109
+            $params   = ($this->_BCMode[$this->name] ? "'', {jsVar}" : '{jsVar}').
110
+                        (isset($options) ? ", '{$options}'" : '');
111 111
         } else {
112
-            $callback = is_array($options)? $options[1]: $options;
112
+            $callback = is_array($options) ? $options[1] : $options;
113 113
             $params   = '{jsVar}';
114 114
         }
115 115
         return array('', "{jsVar} != '' && !{$callback}({$params})");
Please login to merge, or discard this patch.
main/inc/lib/pear/HTML/QuickForm/Rule/Required.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -48,14 +48,14 @@
 block discarded – undo
48 48
                 isset($value['tmp_name']) &&
49 49
                 isset($value['size']) &&
50 50
                 isset($value['error'])
51
-            ){
51
+            ) {
52 52
                 if (empty($value['tmp_name'])) {
53 53
 
54 54
                     return false;
55 55
                 }
56 56
             }
57 57
         } else {
58
-            if ((string)$value == '') {
58
+            if ((string) $value == '') {
59 59
 
60 60
                 return false;
61 61
             }
Please login to merge, or discard this patch.
main/inc/lib/pear/HTML/QuickForm/Rule/Regex.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -61,11 +61,11 @@  discard block
 block discarded – undo
61 61
     {
62 62
         // Fix for bug #10799: add 'D' modifier to regex
63 63
         if (isset($this->_data[$this->name])) {
64
-            if (!preg_match($this->_data[$this->name] . 'D', $value)) {
64
+            if (!preg_match($this->_data[$this->name].'D', $value)) {
65 65
                 return false;
66 66
             }
67 67
         } else {
68
-            if (!preg_match($regex . 'D', $value)) {
68
+            if (!preg_match($regex.'D', $value)) {
69 69
                 return false;
70 70
             }
71 71
         }
@@ -91,11 +91,11 @@  discard block
 block discarded – undo
91 91
 
92 92
         // bug #12376, converting unicode escapes and stripping 'u' modifier
93 93
         if ($pos = strpos($regex, 'u', strrpos($regex, '/'))) {
94
-            $regex = substr($regex, 0, $pos) . substr($regex, $pos + 1);
94
+            $regex = substr($regex, 0, $pos).substr($regex, $pos + 1);
95 95
             $regex = preg_replace('/(?<!\\\\)(?>\\\\\\\\)*\\\\x{([a-fA-F0-9]+)}/', '\\u$1', $regex);
96 96
         }
97 97
 
98
-        return array("  var regex = " . $regex . ";\n", "{jsVar} != '' && !regex.test({jsVar})");
98
+        return array("  var regex = ".$regex.";\n", "{jsVar} != '' && !regex.test({jsVar})");
99 99
     } // end func getValidationScript
100 100
 
101 101
 } // end class HTML_QuickForm_Rule_Regex
Please login to merge, or discard this patch.
main/inc/lib/pear/OLE/ChainedBlockStream.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -83,8 +83,8 @@  discard block
 block discarded – undo
83 83
         // 25 is length of "ole-chainedblockstream://"
84 84
         parse_str(substr($path, 25), $this->params);
85 85
         if (!isset($this->params['oleInstanceId'],
86
-                   $this->params['blockId'],
87
-                   $GLOBALS['_OLE_INSTANCES'][$this->params['oleInstanceId']])) {
86
+                    $this->params['blockId'],
87
+                    $GLOBALS['_OLE_INSTANCES'][$this->params['oleInstanceId']])) {
88 88
 
89 89
             if ($options & STREAM_REPORT_ERRORS) {
90 90
                 trigger_error('OLE stream not found', E_USER_WARNING);
@@ -163,7 +163,7 @@  discard block
 block discarded – undo
163 163
         if (version_compare(PHP_VERSION, '5.0', '>=') &&
164 164
             version_compare(PHP_VERSION, '5.1', '<')) {
165 165
 
166
-           $eof = !$eof;
166
+            $eof = !$eof;
167 167
         }
168 168
         return $eof;
169 169
     }
Please login to merge, or discard this patch.