Passed
Push — 1.10.x ( 04397c...5e25f1 )
by Angel Fernando Quiroz
181:14 queued 130:00
created
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.
main/inc/lib/pear/OLE/PPS.php 1 patch
Indentation   +86 added lines, -86 removed lines patch added patch discarded remove patch
@@ -33,98 +33,98 @@  discard block
 block discarded – undo
33 33
 class OLE_PPS extends PEAR
34 34
 {
35 35
     /**
36
-    * The PPS index
37
-    * @var integer
38
-    */
36
+     * The PPS index
37
+     * @var integer
38
+     */
39 39
     var $No;
40 40
 
41 41
     /**
42
-    * The PPS name (in Unicode)
43
-    * @var string
44
-    */
42
+     * The PPS name (in Unicode)
43
+     * @var string
44
+     */
45 45
     var $Name;
46 46
 
47 47
     /**
48
-    * The PPS type. Dir, Root or File
49
-    * @var integer
50
-    */
48
+     * The PPS type. Dir, Root or File
49
+     * @var integer
50
+     */
51 51
     var $Type;
52 52
 
53 53
     /**
54
-    * The index of the previous PPS
55
-    * @var integer
56
-    */
54
+     * The index of the previous PPS
55
+     * @var integer
56
+     */
57 57
     var $PrevPps;
58 58
 
59 59
     /**
60
-    * The index of the next PPS
61
-    * @var integer
62
-    */
60
+     * The index of the next PPS
61
+     * @var integer
62
+     */
63 63
     var $NextPps;
64 64
 
65 65
     /**
66
-    * The index of it's first child if this is a Dir or Root PPS
67
-    * @var integer
68
-    */
66
+     * The index of it's first child if this is a Dir or Root PPS
67
+     * @var integer
68
+     */
69 69
     var $DirPps;
70 70
 
71 71
     /**
72
-    * A timestamp
73
-    * @var integer
74
-    */
72
+     * A timestamp
73
+     * @var integer
74
+     */
75 75
     var $Time1st;
76 76
 
77 77
     /**
78
-    * A timestamp
79
-    * @var integer
80
-    */
78
+     * A timestamp
79
+     * @var integer
80
+     */
81 81
     var $Time2nd;
82 82
 
83 83
     /**
84
-    * Starting block (small or big) for this PPS's data  inside the container
85
-    * @var integer
86
-    */
84
+     * Starting block (small or big) for this PPS's data  inside the container
85
+     * @var integer
86
+     */
87 87
     var $_StartBlock;
88 88
 
89 89
     /**
90
-    * The size of the PPS's data (in bytes)
91
-    * @var integer
92
-    */
90
+     * The size of the PPS's data (in bytes)
91
+     * @var integer
92
+     */
93 93
     var $Size;
94 94
 
95 95
     /**
96
-    * The PPS's data (only used if it's not using a temporary file)
97
-    * @var string
98
-    */
96
+     * The PPS's data (only used if it's not using a temporary file)
97
+     * @var string
98
+     */
99 99
     var $_data;
100 100
 
101 101
     /**
102
-    * Array of child PPS's (only used by Root and Dir PPS's)
103
-    * @var array
104
-    */
102
+     * Array of child PPS's (only used by Root and Dir PPS's)
103
+     * @var array
104
+     */
105 105
     var $children = array();
106 106
 
107 107
     /**
108
-    * Pointer to OLE container
109
-    * @var OLE
110
-    */
108
+     * Pointer to OLE container
109
+     * @var OLE
110
+     */
111 111
     var $ole;
112 112
 
113 113
     /**
114
-    * The constructor
115
-    *
116
-    * @access public
117
-    * @param integer $No   The PPS index
118
-    * @param string  $name The PPS name
119
-    * @param integer $type The PPS type. Dir, Root or File
120
-    * @param integer $prev The index of the previous PPS
121
-    * @param integer $next The index of the next PPS
122
-    * @param integer $dir  The index of it's first child if this is a Dir or Root PPS
123
-    * @param integer $time_1st A timestamp
124
-    * @param integer $time_2nd A timestamp
125
-    * @param string  $data  The (usually binary) source data of the PPS
126
-    * @param array   $children Array containing children PPS for this PPS
127
-    */
114
+     * The constructor
115
+     *
116
+     * @access public
117
+     * @param integer $No   The PPS index
118
+     * @param string  $name The PPS name
119
+     * @param integer $type The PPS type. Dir, Root or File
120
+     * @param integer $prev The index of the previous PPS
121
+     * @param integer $next The index of the next PPS
122
+     * @param integer $dir  The index of it's first child if this is a Dir or Root PPS
123
+     * @param integer $time_1st A timestamp
124
+     * @param integer $time_2nd A timestamp
125
+     * @param string  $data  The (usually binary) source data of the PPS
126
+     * @param array   $children Array containing children PPS for this PPS
127
+     */
128 128
     function OLE_PPS($No, $name, $type, $prev, $next, $dir, $time_1st, $time_2nd, $data, $children)
129 129
     {
130 130
         $this->No      = $No;
@@ -145,11 +145,11 @@  discard block
 block discarded – undo
145 145
     }
146 146
 
147 147
     /**
148
-    * Returns the amount of data saved for this PPS
149
-    *
150
-    * @access private
151
-    * @return integer The amount of data (in bytes)
152
-    */
148
+     * Returns the amount of data saved for this PPS
149
+     *
150
+     * @access private
151
+     * @return integer The amount of data (in bytes)
152
+     */
153 153
     function _DataLen()
154 154
     {
155 155
         if (!isset($this->_data)) {
@@ -165,11 +165,11 @@  discard block
 block discarded – undo
165 165
     }
166 166
 
167 167
     /**
168
-    * Returns a string with the PPS's WK (What is a WK?)
169
-    *
170
-    * @access private
171
-    * @return string The binary string
172
-    */
168
+     * Returns a string with the PPS's WK (What is a WK?)
169
+     *
170
+     * @access private
171
+     * @return string The binary string
172
+     */
173 173
     function _getPpsWk()
174 174
     {
175 175
         $ret = $this->Name;
@@ -177,34 +177,34 @@  discard block
 block discarded – undo
177 177
             $ret .= "\x00";
178 178
         }
179 179
         $ret .= pack("v", strlen($this->Name) + 2)  // 66
180
-              . pack("c", $this->Type)              // 67
181
-              . pack("c", 0x00) //UK                // 68
182
-              . pack("V", $this->PrevPps) //Prev    // 72
183
-              . pack("V", $this->NextPps) //Next    // 76
184
-              . pack("V", $this->DirPps)  //Dir     // 80
185
-              . "\x00\x09\x02\x00"                  // 84
186
-              . "\x00\x00\x00\x00"                  // 88
187
-              . "\xc0\x00\x00\x00"                  // 92
188
-              . "\x00\x00\x00\x46"                  // 96 // Seems to be ok only for Root
189
-              . "\x00\x00\x00\x00"                  // 100
190
-              . OLE::LocalDate2OLE($this->Time1st)       // 108
191
-              . OLE::LocalDate2OLE($this->Time2nd)       // 116
192
-              . pack("V", isset($this->_StartBlock)?
180
+                . pack("c", $this->Type)              // 67
181
+                . pack("c", 0x00) //UK                // 68
182
+                . pack("V", $this->PrevPps) //Prev    // 72
183
+                . pack("V", $this->NextPps) //Next    // 76
184
+                . pack("V", $this->DirPps)  //Dir     // 80
185
+                . "\x00\x09\x02\x00"                  // 84
186
+                . "\x00\x00\x00\x00"                  // 88
187
+                . "\xc0\x00\x00\x00"                  // 92
188
+                . "\x00\x00\x00\x46"                  // 96 // Seems to be ok only for Root
189
+                . "\x00\x00\x00\x00"                  // 100
190
+                . OLE::LocalDate2OLE($this->Time1st)       // 108
191
+                . OLE::LocalDate2OLE($this->Time2nd)       // 116
192
+                . pack("V", isset($this->_StartBlock)?
193 193
                         $this->_StartBlock:0)        // 120
194
-              . pack("V", $this->Size)               // 124
195
-              . pack("V", 0);                        // 128
194
+                . pack("V", $this->Size)               // 124
195
+                . pack("V", 0);                        // 128
196 196
         return $ret;
197 197
     }
198 198
 
199 199
     /**
200
-    * Updates index and pointers to previous, next and children PPS's for this
201
-    * PPS. I don't think it'll work with Dir PPS's.
202
-    *
203
-    * @access private
204
-    * @param array &$pps_array Reference to the array of PPS's for the whole OLE
205
-    *                          container
206
-    * @return integer          The index for this PPS
207
-    */
200
+     * Updates index and pointers to previous, next and children PPS's for this
201
+     * PPS. I don't think it'll work with Dir PPS's.
202
+     *
203
+     * @access private
204
+     * @param array &$pps_array Reference to the array of PPS's for the whole OLE
205
+     *                          container
206
+     * @return integer          The index for this PPS
207
+     */
208 208
     function _savePpsSetPnt(&$pps_array)
209 209
     {
210 210
         $pps_array[count($pps_array)] = &$this;
Please login to merge, or discard this patch.
main/inc/lib/pear/Text/CAPTCHA/Driver/Word.php 1 patch
Indentation   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -1,18 +1,18 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Text_CAPTCHA_Driver_Word - Text_CAPTCHA driver word CAPTCHAs
4
- * Class to create a textual Turing test
5
- *
6
- * PHP version 5
7
- *
8
- * @category Text
9
- * @package  Text_CAPTCHA
10
- * @author   Tobias Schlitt <[email protected]>
11
- * @author   Christian Wenz <[email protected]>
12
- * @author   Michael Cramer <[email protected]>
13
- * @license  http://www.opensource.org/licenses/bsd-license.php BSD License
14
- * @link     http://pear.php.net/package/Text_CAPTCHA
15
- */
3
+     * Text_CAPTCHA_Driver_Word - Text_CAPTCHA driver word CAPTCHAs
4
+     * Class to create a textual Turing test
5
+     *
6
+     * PHP version 5
7
+     *
8
+     * @category Text
9
+     * @package  Text_CAPTCHA
10
+     * @author   Tobias Schlitt <[email protected]>
11
+     * @author   Christian Wenz <[email protected]>
12
+     * @author   Michael Cramer <[email protected]>
13
+     * @license  http://www.opensource.org/licenses/bsd-license.php BSD License
14
+     * @link     http://pear.php.net/package/Text_CAPTCHA
15
+     */
16 16
 
17 17
 /**
18 18
  * Require Numbers_Words class for generating the text.
Please login to merge, or discard this patch.
main/inc/lib/pear/Text/CAPTCHA/Driver/Base.php 1 patch
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -1,15 +1,15 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Base class file for all Text_CAPTCHA drivers.
4
- *
5
- * PHP version 5
6
- *
7
- * @category Text
8
- * @package  Text_CAPTCHA
9
- * @author   Michael Cramer <[email protected]>
10
- * @license  http://www.opensource.org/licenses/bsd-license.php BSD License
11
- * @link     http://pear.php.net/package/Text_CAPTCHA
12
- */
3
+     * Base class file for all Text_CAPTCHA drivers.
4
+     *
5
+     * PHP version 5
6
+     *
7
+     * @category Text
8
+     * @package  Text_CAPTCHA
9
+     * @author   Michael Cramer <[email protected]>
10
+     * @license  http://www.opensource.org/licenses/bsd-license.php BSD License
11
+     * @link     http://pear.php.net/package/Text_CAPTCHA
12
+     */
13 13
 
14 14
 /**
15 15
  * Base class file for all Text_CAPTCHA drivers.
Please login to merge, or discard this patch.
main/inc/lib/pear/Text/CAPTCHA/Driver/Equation.php 1 patch
Indentation   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -1,18 +1,18 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Equation driver for Text_CAPTCHA.
4
- * Returns simple equations as string, e.g. "9 - 2"
5
- *
6
- * PHP version 5
7
- *
8
- * @category Text
9
- * @package  Text_CAPTCHA
10
- * @author   Christian Weiske <[email protected]>
11
- * @author   Christian Wenz <[email protected]>
12
- * @author   Michael Cramer <[email protected]>
13
- * @license  http://www.opensource.org/licenses/bsd-license.php BSD License
14
- * @link     http://pear.php.net/package/Text_CAPTCHA
15
- */
3
+     * Equation driver for Text_CAPTCHA.
4
+     * Returns simple equations as string, e.g. "9 - 2"
5
+     *
6
+     * PHP version 5
7
+     *
8
+     * @category Text
9
+     * @package  Text_CAPTCHA
10
+     * @author   Christian Weiske <[email protected]>
11
+     * @author   Christian Wenz <[email protected]>
12
+     * @author   Michael Cramer <[email protected]>
13
+     * @license  http://www.opensource.org/licenses/bsd-license.php BSD License
14
+     * @link     http://pear.php.net/package/Text_CAPTCHA
15
+     */
16 16
 
17 17
 /**
18 18
  * Equation driver for Text_CAPTCHA.
Please login to merge, or discard this patch.
main/inc/lib/pear/Text/CAPTCHA/Driver/Numeral.php 1 patch
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -1,17 +1,17 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Class used for numeral captchas
4
- *
5
- * PHP version 5
6
- *
7
- * @category Text
8
- * @package  Text_CAPTCHA
9
- * @author   David Coallier <[email protected]>
10
- * @author   Christian Wenz <[email protected]>
11
- * @author   Michael Cramer <[email protected]>
12
- * @license  http://www.opensource.org/licenses/bsd-license.php BSD License
13
- * @link     http://pear.php.net/package/Text_CAPTCHA
14
- */
3
+     * Class used for numeral captchas
4
+     *
5
+     * PHP version 5
6
+     *
7
+     * @category Text
8
+     * @package  Text_CAPTCHA
9
+     * @author   David Coallier <[email protected]>
10
+     * @author   Christian Wenz <[email protected]>
11
+     * @author   Michael Cramer <[email protected]>
12
+     * @license  http://www.opensource.org/licenses/bsd-license.php BSD License
13
+     * @link     http://pear.php.net/package/Text_CAPTCHA
14
+     */
15 15
 
16 16
 /**
17 17
  * Class used for numeral captchas
Please login to merge, or discard this patch.
main/inc/lib/pear/Text/CAPTCHA/Driver/Image.php 1 patch
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -1,16 +1,16 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Require Image_Text class for generating the text.
4
- *
5
- * PHP version 5
6
- *
7
- * @category Text
8
- * @package  Text_CAPTCHA
9
- * @author   Christian Wenz <[email protected]>
10
- * @author   Michael Cramer <[email protected]>
11
- * @license  http://www.opensource.org/licenses/bsd-license.php BSD License
12
- * @link     http://pear.php.net/package/Text_CAPTCHA
13
- */
3
+     * Require Image_Text class for generating the text.
4
+     *
5
+     * PHP version 5
6
+     *
7
+     * @category Text
8
+     * @package  Text_CAPTCHA
9
+     * @author   Christian Wenz <[email protected]>
10
+     * @author   Michael Cramer <[email protected]>
11
+     * @license  http://www.opensource.org/licenses/bsd-license.php BSD License
12
+     * @link     http://pear.php.net/package/Text_CAPTCHA
13
+     */
14 14
 
15 15
 /**
16 16
  * Text_CAPTCHA_Driver_Image - Text_CAPTCHA driver graphical CAPTCHAs
Please login to merge, or discard this patch.
main/inc/lib/pear/Text/CAPTCHA/Exception.php 1 patch
Indentation   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -1,26 +1,26 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Exception for Text_CAPTCHA
4
- *
5
- * PHP version 5
6
- *
7
- * @category Text
8
- * @package  Text_CAPTCHA
9
- * @author   Christian Weiske <[email protected]>
10
- * @author   Christian Wenz <[email protected]>
11
- * @author   Michael Cramer <[email protected]>
12
- * @license  http://www.opensource.org/licenses/bsd-license.php BSD License
13
- * @link     http://pear.php.net/package/Text_CAPTCHA
14
- */
3
+     * Exception for Text_CAPTCHA
4
+     *
5
+     * PHP version 5
6
+     *
7
+     * @category Text
8
+     * @package  Text_CAPTCHA
9
+     * @author   Christian Weiske <[email protected]>
10
+     * @author   Christian Wenz <[email protected]>
11
+     * @author   Michael Cramer <[email protected]>
12
+     * @license  http://www.opensource.org/licenses/bsd-license.php BSD License
13
+     * @link     http://pear.php.net/package/Text_CAPTCHA
14
+     */
15 15
 /**
16
- * Exception for Text_CAPTCHA
17
- *
18
- * @category Text
19
- * @package  Text_CAPTCHA
20
- * @author   Michael Cramer <[email protected]>
21
- * @license  http://www.opensource.org/licenses/bsd-license.php BSD License
22
- * @link     http://pear.php.net/package/Text_CAPTCHA
23
- */
16
+     * Exception for Text_CAPTCHA
17
+     *
18
+     * @category Text
19
+     * @package  Text_CAPTCHA
20
+     * @author   Michael Cramer <[email protected]>
21
+     * @license  http://www.opensource.org/licenses/bsd-license.php BSD License
22
+     * @link     http://pear.php.net/package/Text_CAPTCHA
23
+     */
24 24
 class Text_CAPTCHA_Exception extends PEAR_Exception
25 25
 {
26 26
 
Please login to merge, or discard this patch.
main/inc/lib/pear/Text/Password.php 1 patch
Indentation   +37 added lines, -37 removed lines patch added patch discarded remove patch
@@ -441,17 +441,17 @@  discard block
 block discarded – undo
441 441
          * List of vowels and vowel sounds
442 442
          */
443 443
         $v = array('a', 'e', 'i', 'o', 'u', 'ae', 'ou', 'io',
444
-                   'ea', 'ou', 'ia', 'ai'
445
-                   );
444
+                    'ea', 'ou', 'ia', 'ai'
445
+                    );
446 446
 
447 447
         /**
448 448
          * List of consonants and consonant sounds
449 449
          */
450 450
         $c = array('b', 'c', 'd', 'g', 'h', 'j', 'k', 'l', 'm',
451
-                   'n', 'p', 'r', 's', 't', 'u', 'v', 'w',
452
-                   'tr', 'cr', 'fr', 'dr', 'wr', 'pr', 'th',
453
-                   'ch', 'ph', 'st', 'sl', 'cl'
454
-                   );
451
+                    'n', 'p', 'r', 's', 't', 'u', 'v', 'w',
452
+                    'tr', 'cr', 'fr', 'dr', 'wr', 'pr', 'th',
453
+                    'ch', 'ph', 'st', 'sl', 'cl'
454
+                    );
455 455
 
456 456
         $v_count = 12;
457 457
         $c_count = 29;
@@ -484,50 +484,50 @@  discard block
 block discarded – undo
484 484
         /**
485 485
          * List of character which could be use in the password
486 486
          */
487
-         switch($chars) {
487
+            switch($chars) {
488 488
 
489
-         case 'alphanumeric':
489
+            case 'alphanumeric':
490 490
              $chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';
491
-             $GLOBALS['_Text_Password_NumberOfPossibleCharacters'] = 62;
492
-             break;
491
+                $GLOBALS['_Text_Password_NumberOfPossibleCharacters'] = 62;
492
+                break;
493 493
 
494
-         case 'alphabetical':
494
+            case 'alphabetical':
495 495
              $chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz';
496
-             $GLOBALS['_Text_Password_NumberOfPossibleCharacters'] = 52;
497
-             break;
496
+                $GLOBALS['_Text_Password_NumberOfPossibleCharacters'] = 52;
497
+                break;
498 498
 
499
-         case 'numeric':
499
+            case 'numeric':
500 500
              $chars = '0123456789';
501
-             $GLOBALS['_Text_Password_NumberOfPossibleCharacters'] = 10;
502
-             break;
501
+                $GLOBALS['_Text_Password_NumberOfPossibleCharacters'] = 10;
502
+                break;
503 503
 
504
-         case '':
504
+            case '':
505 505
              $chars = '_#@%&ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';
506
-             $GLOBALS['_Text_Password_NumberOfPossibleCharacters'] = 67;
507
-             break;
506
+                $GLOBALS['_Text_Password_NumberOfPossibleCharacters'] = 67;
507
+                break;
508 508
 
509
-         default:
509
+            default:
510 510
              /**
511 511
               * Some characters shouldn't be used
512 512
               */
513 513
              $chars = trim($chars);
514
-             $chars = str_replace(array('+', '|', '$', '^', '/', '\\', ','), '', $chars);
515
-
516
-             $GLOBALS['_Text_Password_NumberOfPossibleCharacters'] = strlen($chars);
517
-         }
518
-
519
-         /**
520
-          * Generate password
521
-          */
522
-         for ($i = 0; $i < $length; $i++) {
523
-             $num = mt_rand(0, $GLOBALS['_Text_Password_NumberOfPossibleCharacters'] - 1);
524
-             $password .= $chars{$num};
525
-         }
526
-
527
-         /**
528
-          * Return password
529
-          */
530
-         return $password;
514
+                $chars = str_replace(array('+', '|', '$', '^', '/', '\\', ','), '', $chars);
515
+
516
+                $GLOBALS['_Text_Password_NumberOfPossibleCharacters'] = strlen($chars);
517
+            }
518
+
519
+            /**
520
+             * Generate password
521
+             */
522
+            for ($i = 0; $i < $length; $i++) {
523
+                $num = mt_rand(0, $GLOBALS['_Text_Password_NumberOfPossibleCharacters'] - 1);
524
+                $password .= $chars{$num};
525
+            }
526
+
527
+            /**
528
+             * Return password
529
+             */
530
+            return $password;
531 531
     }
532 532
 }
533 533
 ?>
Please login to merge, or discard this patch.