Passed
Pull Request — 1.10.x (#1065)
by
unknown
100:42 queued 54:05
created
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.php 1 patch
Indentation   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -1,23 +1,23 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Text_CAPTCHA - creates a CAPTCHA for Turing tests.
4
- * Base class file for using Text_CAPTCHA.
5
- *
6
- * PHP version 5
7
- *
8
- * @category Text
9
- * @package  Text_CAPTCHA
10
- * @author   Christian Wenz <[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
+     * Text_CAPTCHA - creates a CAPTCHA for Turing tests.
4
+     * Base class file for using Text_CAPTCHA.
5
+     *
6
+     * PHP version 5
7
+     *
8
+     * @category Text
9
+     * @package  Text_CAPTCHA
10
+     * @author   Christian Wenz <[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
- * Require Exception class for error handling.
16
- */
15
+     * Require Exception class for error handling.
16
+     */
17 17
 //require_once 'Text/CAPTCHA/Exception.php';
18 18
 /**
19
- * Require Text_Password class for generating the phrase.
20
- */
19
+     * Require Text_Password class for generating the phrase.
20
+     */
21 21
 //require_once 'Text/Password.php';
22 22
 
23 23
 /**
Please login to merge, or discard this patch.
main/inc/lib/pear/Text/CAPTCHA/Driver.php 1 patch
Indentation   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -1,24 +1,24 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Interface for 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
+     * Interface for 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
- * Interface for Text_CAPTCHA drivers
15
- *
16
- * @category Text
17
- * @package  Text_CAPTCHA
18
- * @author   Michael Cramer <[email protected]>
19
- * @license  http://www.opensource.org/licenses/bsd-license.php BSD License
20
- * @link     http://pear.php.net/package/Text_CAPTCHA
21
- */
14
+     * Interface for Text_CAPTCHA drivers
15
+     *
16
+     * @category Text
17
+     * @package  Text_CAPTCHA
18
+     * @author   Michael Cramer <[email protected]>
19
+     * @license  http://www.opensource.org/licenses/bsd-license.php BSD License
20
+     * @link     http://pear.php.net/package/Text_CAPTCHA
21
+     */
22 22
 interface Text_CAPTCHA_Driver
23 23
 {
24 24
     /**
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/Figlet.php 1 patch
Indentation   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -1,28 +1,28 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Require Figlet class for rendering the text.
4
- *
5
- * PHP version 5
6
- *
7
- * @category Text
8
- * @package  Text_CAPTCHA
9
- * @author   Aaron Wormus <[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
+     * Require Figlet class for rendering the text.
4
+     *
5
+     * PHP version 5
6
+     *
7
+     * @category Text
8
+     * @package  Text_CAPTCHA
9
+     * @author   Aaron Wormus <[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
- * Text_CAPTCHA_Driver_Figlet - Text_CAPTCHA driver Figlet based CAPTCHAs
17
- *
18
- * @category Text
19
- * @package  Text_CAPTCHA
20
- * @author   Aaron Wormus <[email protected]>
21
- * @author   Christian Wenz <[email protected]>
22
- * @license  http://www.opensource.org/licenses/bsd-license.php BSD License
23
- * @link     http://pear.php.net/package/Text_CAPTCHA
24
- * @todo     define an obfuscation algorithm
25
- */
16
+     * Text_CAPTCHA_Driver_Figlet - Text_CAPTCHA driver Figlet based CAPTCHAs
17
+     *
18
+     * @category Text
19
+     * @package  Text_CAPTCHA
20
+     * @author   Aaron Wormus <[email protected]>
21
+     * @author   Christian Wenz <[email protected]>
22
+     * @license  http://www.opensource.org/licenses/bsd-license.php BSD License
23
+     * @link     http://pear.php.net/package/Text_CAPTCHA
24
+     * @todo     define an obfuscation algorithm
25
+     */
26 26
 class Text_CAPTCHA_Driver_Figlet extends Text_CAPTCHA_Driver_Base
27 27
 {
28 28
     /**
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/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.