Passed
Push — 1.10.x ( a2cc02...b21e58 )
by Yannick
608:36 queued 565:17
created
main/inc/lib/pear/Text/Diff/Renderer/inline.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -129,13 +129,13 @@
 block discarded – undo
129 129
          * preserve whitespace as well. Therefore we split on words,
130 130
          * but include all blocks of whitespace in the wordlist. */
131 131
         $diff = new Text_Diff('native',
132
-                              array($this->_splitOnWords($text1, $nl),
132
+                                array($this->_splitOnWords($text1, $nl),
133 133
                                     $this->_splitOnWords($text2, $nl)));
134 134
 
135 135
         /* Get the diff in inline format. */
136 136
         $renderer = new Text_Diff_Renderer_inline
137 137
             (array_merge($this->getParams(),
138
-                         array('split_level' => 'words')));
138
+                            array('split_level' => 'words')));
139 139
 
140 140
         /* Run the diff and get the output. */
141 141
         return str_replace($nl, "\n", $renderer->render($diff)) . "\n";
Please login to merge, or discard this patch.
main/inc/lib/pear/Text/Diff/Renderer.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -104,8 +104,8 @@  discard block
 block discarded – undo
104 104
                         }
105 105
                         /* @todo */
106 106
                         $output .= $this->_block($x0, $ntrail + $xi - $x0,
107
-                                                 $y0, $ntrail + $yi - $y0,
108
-                                                 $block);
107
+                                                    $y0, $ntrail + $yi - $y0,
108
+                                                    $block);
109 109
                         $block = false;
110 110
                     }
111 111
                 }
@@ -136,8 +136,8 @@  discard block
 block discarded – undo
136 136
 
137 137
         if (is_array($block)) {
138 138
             $output .= $this->_block($x0, $xi - $x0,
139
-                                     $y0, $yi - $y0,
140
-                                     $block);
139
+                                        $y0, $yi - $y0,
140
+                                        $block);
141 141
         }
142 142
 
143 143
         return $output . $this->_endDiff();
Please login to merge, or discard this patch.
main/inc/lib/pear/Text/Diff/Mapped.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
      *                                  of elements as $to_lines.
30 30
      */
31 31
     function Text_Diff_Mapped($from_lines, $to_lines,
32
-                              $mapped_from_lines, $mapped_to_lines)
32
+                                $mapped_from_lines, $mapped_to_lines)
33 33
     {
34 34
         assert(count($from_lines) == count($mapped_from_lines));
35 35
         assert(count($to_lines) == count($mapped_to_lines));
Please login to merge, or discard this patch.
main/inc/lib/pear/Text/Diff/Engine/shell.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -124,9 +124,9 @@
 block discarded – undo
124 124
             array_push($edits,
125 125
                 new Text_Diff_Op_copy(
126 126
                     $this->_getLines($from_lines, $from_line_no,
127
-                                     $from_line_no + count($from_lines) - 1),
127
+                                        $from_line_no + count($from_lines) - 1),
128 128
                     $this->_getLines($to_lines, $to_line_no,
129
-                                     $to_line_no + count($to_lines) - 1)));
129
+                                        $to_line_no + count($to_lines) - 1)));
130 130
         }
131 131
 
132 132
         return $edits;
Please login to merge, or discard this patch.
main/inc/lib/pear/PEAR5.php 1 patch
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -6,17 +6,17 @@
 block discarded – undo
6 6
 class PEAR5
7 7
 {
8 8
     /**
9
-    * If you have a class that's mostly/entirely static, and you need static
10
-    * properties, you can use this method to simulate them. Eg. in your method(s)
11
-    * do this: $myVar = &PEAR5::getStaticProperty('myclass', 'myVar');
12
-    * You MUST use a reference, or they will not persist!
13
-    *
14
-    * @access public
15
-    * @param  string $class  The calling classname, to prevent clashes
16
-    * @param  string $var    The variable to retrieve.
17
-    * @return mixed   A reference to the variable. If not set it will be
18
-    *                 auto initialised to NULL.
19
-    */
9
+     * If you have a class that's mostly/entirely static, and you need static
10
+     * properties, you can use this method to simulate them. Eg. in your method(s)
11
+     * do this: $myVar = &PEAR5::getStaticProperty('myclass', 'myVar');
12
+     * You MUST use a reference, or they will not persist!
13
+     *
14
+     * @access public
15
+     * @param  string $class  The calling classname, to prevent clashes
16
+     * @param  string $var    The variable to retrieve.
17
+     * @return mixed   A reference to the variable. If not set it will be
18
+     *                 auto initialised to NULL.
19
+     */
20 20
     static function &getStaticProperty($class, $var)
21 21
     {
22 22
         static $properties;
Please login to merge, or discard this patch.
main/inc/lib/pear/PEAR.php 1 patch
Indentation   +69 added lines, -69 removed lines patch added patch discarded remove patch
@@ -1,23 +1,23 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * PEAR, the PHP Extension and Application Repository
4
- *
5
- * PEAR class and PEAR_Error class
6
- *
7
- * PHP versions 4 and 5
8
- *
9
- * @category   pear
10
- * @package    PEAR
11
- * @author     Sterling Hughes <[email protected]>
12
- * @author     Stig Bakken <[email protected]>
13
- * @author     Tomas V.V.Cox <[email protected]>
14
- * @author     Greg Beaver <[email protected]>
15
- * @copyright  1997-2009 The Authors
16
- * @license    http://opensource.org/licenses/bsd-license.php New BSD License
17
- * @version    CVS: $Id: PEAR.php 286670 2009-08-02 14:16:06Z dufuz $
18
- * @link       http://pear.php.net/package/PEAR
19
- * @since      File available since Release 0.1
20
- */
3
+     * PEAR, the PHP Extension and Application Repository
4
+     *
5
+     * PEAR class and PEAR_Error class
6
+     *
7
+     * PHP versions 4 and 5
8
+     *
9
+     * @category   pear
10
+     * @package    PEAR
11
+     * @author     Sterling Hughes <[email protected]>
12
+     * @author     Stig Bakken <[email protected]>
13
+     * @author     Tomas V.V.Cox <[email protected]>
14
+     * @author     Greg Beaver <[email protected]>
15
+     * @copyright  1997-2009 The Authors
16
+     * @license    http://opensource.org/licenses/bsd-license.php New BSD License
17
+     * @version    CVS: $Id: PEAR.php 286670 2009-08-02 14:16:06Z dufuz $
18
+     * @link       http://pear.php.net/package/PEAR
19
+     * @since      File available since Release 0.1
20
+     */
21 21
 
22 22
 // Added by Chamilo team, 16-MAR-2010
23 23
 if (class_exists('pear')) { return; }
@@ -205,17 +205,17 @@  discard block
 block discarded – undo
205 205
     // {{{ getStaticProperty()
206 206
 
207 207
     /**
208
-    * If you have a class that's mostly/entirely static, and you need static
209
-    * properties, you can use this method to simulate them. Eg. in your method(s)
210
-    * do this: $myVar = &PEAR::getStaticProperty('myclass', 'myVar');
211
-    * You MUST use a reference, or they will not persist!
212
-    *
213
-    * @access public
214
-    * @param  string $class  The calling classname, to prevent clashes
215
-    * @param  string $var    The variable to retrieve.
216
-    * @return mixed   A reference to the variable. If not set it will be
217
-    *                 auto initialised to NULL.
218
-    */
208
+     * If you have a class that's mostly/entirely static, and you need static
209
+     * properties, you can use this method to simulate them. Eg. in your method(s)
210
+     * do this: $myVar = &PEAR::getStaticProperty('myclass', 'myVar');
211
+     * You MUST use a reference, or they will not persist!
212
+     *
213
+     * @access public
214
+     * @param  string $class  The calling classname, to prevent clashes
215
+     * @param  string $var    The variable to retrieve.
216
+     * @return mixed   A reference to the variable. If not set it will be
217
+     *                 auto initialised to NULL.
218
+     */
219 219
     function &getStaticProperty($class, $var)
220 220
     {
221 221
         static $properties;
@@ -234,14 +234,14 @@  discard block
 block discarded – undo
234 234
     // {{{ registerShutdownFunc()
235 235
 
236 236
     /**
237
-    * Use this function to register a shutdown method for static
238
-    * classes.
239
-    *
240
-    * @access public
241
-    * @param  mixed $func  The function name (or array of class/method) to call
242
-    * @param  mixed $args  The arguments to pass to the function
243
-    * @return void
244
-    */
237
+     * Use this function to register a shutdown method for static
238
+     * classes.
239
+     *
240
+     * @access public
241
+     * @param  mixed $func  The function name (or array of class/method) to call
242
+     * @param  mixed $args  The arguments to pass to the function
243
+     * @return void
244
+     */
245 245
     function registerShutdownFunc($func, $args = array())
246 246
     {
247 247
         // if we are called statically, there is a potential
@@ -513,12 +513,12 @@  discard block
 block discarded – undo
513 513
      * @since PHP 4.0.5
514 514
      */
515 515
     function &raiseError($message = null,
516
-                         $code = null,
517
-                         $mode = null,
518
-                         $options = null,
519
-                         $userinfo = null,
520
-                         $error_class = null,
521
-                         $skipmsg = false)
516
+                            $code = null,
517
+                            $mode = null,
518
+                            $options = null,
519
+                            $userinfo = null,
520
+                            $error_class = null,
521
+                            $skipmsg = false)
522 522
     {
523 523
         // The error is yet a PEAR error object
524 524
         if (is_object($message)) {
@@ -584,8 +584,8 @@  discard block
 block discarded – undo
584 584
      *
585 585
      */
586 586
     function &throwError($message = null,
587
-                         $code = null,
588
-                         $userinfo = null)
587
+                            $code = null,
588
+                            $userinfo = null)
589 589
     {
590 590
         if (isset($this) && is_a($this, 'PEAR')) {
591 591
             $a = &$this->raiseError($message, $code, null, null, $userinfo);
@@ -707,12 +707,12 @@  discard block
 block discarded – undo
707 707
     // {{{ popErrorHandling()
708 708
 
709 709
     /**
710
-    * Pop the last error handler used
711
-    *
712
-    * @return bool Always true
713
-    *
714
-    * @see PEAR::pushErrorHandling
715
-    */
710
+     * Pop the last error handler used
711
+     *
712
+     * @return bool Always true
713
+     *
714
+     * @see PEAR::pushErrorHandling
715
+     */
716 716
     function popErrorHandling()
717 717
     {
718 718
         $stack = &$GLOBALS['_PEAR_error_handler_stack'];
@@ -731,12 +731,12 @@  discard block
 block discarded – undo
731 731
     // {{{ loadExtension()
732 732
 
733 733
     /**
734
-    * OS independant PHP extension load. Remember to take care
735
-    * on the correct extension name for case sensitive OSes.
736
-    *
737
-    * @param string $ext The extension name
738
-    * @return bool Success or not on the dl() call
739
-    */
734
+     * OS independant PHP extension load. Remember to take care
735
+     * on the correct extension name for case sensitive OSes.
736
+     *
737
+     * @param string $ext The extension name
738
+     * @return bool Success or not on the dl() call
739
+     */
740 740
     function loadExtension($ext)
741 741
     {
742 742
         if (!extension_loaded($ext)) {
@@ -999,10 +999,10 @@  discard block
 block discarded – undo
999 999
      * @return int error code
1000 1000
      * @access public
1001 1001
      */
1002
-     function getCode()
1003
-     {
1002
+        function getCode()
1003
+        {
1004 1004
         return $this->code;
1005
-     }
1005
+        }
1006 1006
 
1007 1007
     // }}}
1008 1008
     // {{{ getType()
@@ -1110,10 +1110,10 @@  discard block
 block discarded – undo
1110 1110
                 $callback = $this->callback;
1111 1111
             }
1112 1112
             return sprintf('[%s: message="%s" code=%d mode=callback '.
1113
-                           'callback=%s prefix="%s" info="%s"]',
1114
-                           strtolower(get_class($this)), $this->message, $this->code,
1115
-                           $callback, $this->error_message_prefix,
1116
-                           $this->userinfo);
1113
+                            'callback=%s prefix="%s" info="%s"]',
1114
+                            strtolower(get_class($this)), $this->message, $this->code,
1115
+                            $callback, $this->error_message_prefix,
1116
+                            $this->userinfo);
1117 1117
         }
1118 1118
         if ($this->mode & PEAR_ERROR_PRINT) {
1119 1119
             $modes[] = 'print';
@@ -1128,11 +1128,11 @@  discard block
 block discarded – undo
1128 1128
             $modes[] = 'return';
1129 1129
         }
1130 1130
         return sprintf('[%s: message="%s" code=%d mode=%s level=%s '.
1131
-                       'prefix="%s" info="%s"]',
1132
-                       strtolower(get_class($this)), $this->message, $this->code,
1133
-                       implode("|", $modes), $levels[$this->level],
1134
-                       $this->error_message_prefix,
1135
-                       $this->userinfo);
1131
+                        'prefix="%s" info="%s"]',
1132
+                        strtolower(get_class($this)), $this->message, $this->code,
1133
+                        implode("|", $modes), $levels[$this->level],
1134
+                        $this->error_message_prefix,
1135
+                        $this->userinfo);
1136 1136
     }
1137 1137
 
1138 1138
     // }}}
Please login to merge, or discard this patch.
main/inc/lib/pear/Pager/HtmlWidgets.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -153,12 +153,12 @@  discard block
 block discarded – undo
153 153
                     $href = htmlentities($this->pager->_url . str_replace('%d', $selector, $this->pager->_fileName), ENT_COMPAT, 'UTF-8');
154 154
                 }
155 155
                 $tmp .= ' onchange="document.location.href=\''
156
-                     . $href .'\''
157
-                     . '"';
156
+                        . $href .'\''
157
+                        . '"';
158 158
             } elseif ($this->pager->_httpMethod == 'POST') {
159 159
                 $tmp .= " onchange='"
160
-                     . $this->pager->_generateFormOnClick($this->pager->_url, $this->pager->_linkData)
161
-                     . "'";
160
+                        . $this->pager->_generateFormOnClick($this->pager->_url, $this->pager->_linkData)
161
+                        . "'";
162 162
                 $tmp = preg_replace(
163 163
                     '/(input\.name = \"'.$this->pager->_sessionVar.'\"; input\.value =) \"(\d+)\";/',
164 164
                     '\\1 this.options[this.selectedIndex].value;',
@@ -259,12 +259,12 @@  discard block
 block discarded – undo
259 259
                     //
260 260
                 }
261 261
                 $tmp .= ' onchange="javascript: document.location.href=\''
262
-                     . $href .'\''
263
-                     . '"';
262
+                        . $href .'\''
263
+                        . '"';
264 264
             } elseif ($this->pager->_httpMethod == 'POST') {
265 265
                 $tmp .= " onchange='"
266
-                     . $this->pager->_generateFormOnClick($this->pager->_url, $this->pager->_linkData)
267
-                     . "'";
266
+                        . $this->pager->_generateFormOnClick($this->pager->_url, $this->pager->_linkData)
267
+                        . "'";
268 268
                 $tmp = preg_replace(
269 269
                     '/(input\.name = \"'.$this->pager->_urlVar.'\"; input\.value =) \"(\d+)\";/',
270 270
                     '\\1 this.options[this.selectedIndex].value;',
Please login to merge, or discard this patch.
main/inc/lib/pear/Pager/Common.php 1 patch
Indentation   +61 added lines, -61 removed lines patch added patch discarded remove patch
@@ -1,40 +1,40 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
3 3
 /**
4
- * Contains the Pager_Common class
5
- *
6
- * PHP versions 4 and 5
7
- *
8
- * LICENSE: Redistribution and use in source and binary forms, with or without
9
- * modification, are permitted provided that the following conditions are met:
10
- * 1. Redistributions of source code must retain the above copyright
11
- *    notice, this list of conditions and the following disclaimer.
12
- * 2. Redistributions in binary form must reproduce the above copyright
13
- *    notice, this list of conditions and the following disclaimer in the
14
- *    documentation and/or other materials provided with the distribution.
15
- * 3. The name of the author may not be used to endorse or promote products
16
- *    derived from this software without specific prior written permission.
17
- *
18
- * THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
19
- * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
20
- * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
21
- * IN NO EVENT SHALL THE FREEBSD PROJECT OR CONTRIBUTORS BE LIABLE FOR ANY
22
- * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
23
- * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
24
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
25
- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
27
- * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28
- *
29
- * @category  HTML
30
- * @package   Pager
31
- * @author    Lorenzo Alberton <[email protected]>
32
- * @author    Richard Heyes <[email protected]>
33
- * @copyright 2003-2007 Lorenzo Alberton, Richard Heyes
34
- * @license   http://www.debian.org/misc/bsd.license  BSD License (3 Clause)
35
- * @version   CVS: $Id: Common.php,v 1.82 2008/05/31 12:44:55 quipo Exp $
36
- * @link      http://pear.php.net/package/Pager
37
- */
4
+     * Contains the Pager_Common class
5
+     *
6
+     * PHP versions 4 and 5
7
+     *
8
+     * LICENSE: Redistribution and use in source and binary forms, with or without
9
+     * modification, are permitted provided that the following conditions are met:
10
+     * 1. Redistributions of source code must retain the above copyright
11
+     *    notice, this list of conditions and the following disclaimer.
12
+     * 2. Redistributions in binary form must reproduce the above copyright
13
+     *    notice, this list of conditions and the following disclaimer in the
14
+     *    documentation and/or other materials provided with the distribution.
15
+     * 3. The name of the author may not be used to endorse or promote products
16
+     *    derived from this software without specific prior written permission.
17
+     *
18
+     * THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
19
+     * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
20
+     * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
21
+     * IN NO EVENT SHALL THE FREEBSD PROJECT OR CONTRIBUTORS BE LIABLE FOR ANY
22
+     * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
23
+     * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
24
+     * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
25
+     * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26
+     * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
27
+     * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28
+     *
29
+     * @category  HTML
30
+     * @package   Pager
31
+     * @author    Lorenzo Alberton <[email protected]>
32
+     * @author    Richard Heyes <[email protected]>
33
+     * @copyright 2003-2007 Lorenzo Alberton, Richard Heyes
34
+     * @license   http://www.debian.org/misc/bsd.license  BSD License (3 Clause)
35
+     * @version   CVS: $Id: Common.php,v 1.82 2008/05/31 12:44:55 quipo Exp $
36
+     * @link      http://pear.php.net/package/Pager
37
+     */
38 38
 
39 39
 /**
40 40
  * Two constants used to guess the path- and file-name of the page
@@ -59,8 +59,8 @@  discard block
 block discarded – undo
59 59
 }
60 60
 //
61 61
 /**
62
- * Error codes
63
- */
62
+     * Error codes
63
+     */
64 64
 define('PAGER_OK',                         0);
65 65
 define('ERROR_PAGER',                     -1);
66 66
 define('ERROR_PAGER_INVALID',             -2);
@@ -626,7 +626,7 @@  discard block
 block discarded – undo
626 626
             return array(
627 627
                         max(($this->_perPage * ($pageID - 1)) + 1, 1),
628 628
                         min($this->_totalItems, $this->_perPage * $pageID)
629
-                   );
629
+                    );
630 630
         }
631 631
         return array(0, 0);
632 632
     }
@@ -848,16 +848,16 @@  discard block
 block discarded – undo
848 848
                 $onclick = str_replace('%d', $this->_linkData[$this->_urlVar], $this->_onclick);
849 849
             }
850 850
             return sprintf('<a href="%s"%s%s%s%s title="%s">%s</a>',
851
-                           // Modified by Ivan Tcholakov, 17-OCT-2008.
852
-                           //htmlentities($this->_url . $href, ENT_COMPAT, 'UTF-8'),
853
-                           api_htmlentities($this->_url . $href),
854
-                           //
855
-                           empty($this->_classString) ? '' : ' '.$this->_classString,
856
-                           empty($this->_attributes)  ? '' : ' '.$this->_attributes,
857
-                           empty($this->_accesskey)   ? '' : ' accesskey="'.$this->_linkData[$this->_urlVar].'"',
858
-                           empty($onclick)            ? '' : ' onclick="'.$onclick.'"',
859
-                           $altText,
860
-                           $linkText
851
+                            // Modified by Ivan Tcholakov, 17-OCT-2008.
852
+                            //htmlentities($this->_url . $href, ENT_COMPAT, 'UTF-8'),
853
+                            api_htmlentities($this->_url . $href),
854
+                            //
855
+                            empty($this->_classString) ? '' : ' '.$this->_classString,
856
+                            empty($this->_attributes)  ? '' : ' '.$this->_attributes,
857
+                            empty($this->_accesskey)   ? '' : ' accesskey="'.$this->_linkData[$this->_urlVar].'"',
858
+                            empty($onclick)            ? '' : ' onclick="'.$onclick.'"',
859
+                            $altText,
860
+                            $linkText
861 861
             );
862 862
         } elseif ($this->_httpMethod == 'POST') {
863 863
             $href = $this->_url;
@@ -865,12 +865,12 @@  discard block
 block discarded – undo
865 865
                 $href .= '?' . $this->_http_build_query_wrapper($_GET);
866 866
             }
867 867
             return sprintf("<a href='javascript:void(0)' onclick='%s'%s%s%s title='%s'>%s</a>",
868
-                           $this->_generateFormOnClick($href, $this->_linkData),
869
-                           empty($this->_classString) ? '' : ' '.$this->_classString,
870
-                           empty($this->_attributes)  ? '' : ' '.$this->_attributes,
871
-                           empty($this->_accesskey)   ? '' : ' accesskey=\''.$this->_linkData[$this->_urlVar].'\'',
872
-                           $altText,
873
-                           $linkText
868
+                            $this->_generateFormOnClick($href, $this->_linkData),
869
+                            empty($this->_classString) ? '' : ' '.$this->_classString,
870
+                            empty($this->_attributes)  ? '' : ' '.$this->_attributes,
871
+                            empty($this->_accesskey)   ? '' : ' accesskey=\''.$this->_linkData[$this->_urlVar].'\'',
872
+                            $altText,
873
+                            $linkText
874 874
             );
875 875
         }
876 876
         return '';
@@ -1120,10 +1120,10 @@  discard block
 block discarded – undo
1120 1120
         if ($this->_currentPage > 1) {
1121 1121
             $this->_linkData[$this->_urlVar] = $this->getPreviousPageID();
1122 1122
             $back = $this->_renderLink($this->_altPrev, $this->_prevImg)
1123
-                  . $this->_spacesBefore . $this->_spacesAfter;
1123
+                    . $this->_spacesBefore . $this->_spacesAfter;
1124 1124
         } else if ($this->_prevImgEmpty !== null && $this->_totalPages > 1) {
1125 1125
             $back = $this->_prevImgEmpty
1126
-                  . $this->_spacesBefore . $this->_spacesAfter;
1126
+                    . $this->_spacesBefore . $this->_spacesAfter;
1127 1127
         }
1128 1128
         return $back;
1129 1129
     }
@@ -1171,12 +1171,12 @@  discard block
 block discarded – undo
1171 1171
         if ($this->_currentPage < $this->_totalPages) {
1172 1172
             $this->_linkData[$this->_urlVar] = $this->getNextPageID();
1173 1173
             $next = $this->_spacesAfter
1174
-                  . $this->_renderLink($this->_altNext, $this->_nextImg)
1175
-                  . $this->_spacesBefore . $this->_spacesAfter;
1174
+                    . $this->_renderLink($this->_altNext, $this->_nextImg)
1175
+                    . $this->_spacesBefore . $this->_spacesAfter;
1176 1176
         } else if ($this->_nextImgEmpty !== null && $this->_totalPages > 1) {
1177 1177
             $next = $this->_spacesAfter
1178
-                  . $this->_nextImgEmpty
1179
-                  . $this->_spacesBefore . $this->_spacesAfter;
1178
+                    . $this->_nextImgEmpty
1179
+                    . $this->_spacesBefore . $this->_spacesAfter;
1180 1180
         }
1181 1181
         return $next;
1182 1182
     }
@@ -1632,7 +1632,7 @@  discard block
 block discarded – undo
1632 1632
         }
1633 1633
 
1634 1634
         if (!empty($_SESSION[$this->_sessionVar]) && $this->_useSessions) {
1635
-             $this->_perPage = $_SESSION[$this->_sessionVar];
1635
+                $this->_perPage = $_SESSION[$this->_sessionVar];
1636 1636
         }
1637 1637
 
1638 1638
         if ($this->_closeSession) {
@@ -1713,7 +1713,7 @@  discard block
 block discarded – undo
1713 1713
                 ERROR_PAGER_INVALID             => 'invalid',
1714 1714
                 ERROR_PAGER_INVALID_PLACEHOLDER => 'invalid format - use "%d" as placeholder.',
1715 1715
                 ERROR_PAGER_INVALID_USAGE       => 'if $options[\'append\'] is set to false, '
1716
-                                                  .' $options[\'fileName\'] MUST contain the "%d" placeholder.',
1716
+                                                    .' $options[\'fileName\'] MUST contain the "%d" placeholder.',
1717 1717
                 ERROR_PAGER_NOT_IMPLEMENTED     => 'not implemented'
1718 1718
             );
1719 1719
         }
Please login to merge, or discard this patch.
main/inc/lib/pear/Pager/Sliding.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -234,8 +234,8 @@  discard block
 block discarded – undo
234 234
                     $this->range[$i] = false;
235 235
                     $this->_linkData[$this->_urlVar] = $i;
236 236
                     $links .= $this->_renderLink(str_replace('%d', $i, $this->_altPage), $i)
237
-                           . $this->_spacesBefore
238
-                           . ($print_separator_flag ? $this->_separator.$this->_spacesAfter : '');
237
+                            . $this->_spacesBefore
238
+                            . ($print_separator_flag ? $this->_separator.$this->_spacesAfter : '');
239 239
                 }
240 240
             }
241 241
 
@@ -268,8 +268,8 @@  discard block
 block discarded – undo
268 268
                     $this->range[$i] = false;
269 269
                     $this->_linkData[$this->_urlVar] = $i;
270 270
                     $links .= $this->_renderLink(str_replace('%d', $i, $this->_altPage), $i)
271
-                      . $this->_spacesBefore
272
-                      . ($print_separator_flag ? $this->_separator.$this->_spacesAfter : '');
271
+                        . $this->_spacesBefore
272
+                        . ($print_separator_flag ? $this->_separator.$this->_spacesAfter : '');
273 273
                 }
274 274
             }
275 275
 
@@ -285,7 +285,7 @@  discard block
 block discarded – undo
285 285
                     $links .= $this->_curPageSpanPre . $i . $this->_curPageSpanPost;
286 286
                 }
287 287
                 $links .= $this->_spacesBefore
288
-                       . (($i != $this->_totalPages) ? $this->_separator.$this->_spacesAfter : '');
288
+                        . (($i != $this->_totalPages) ? $this->_separator.$this->_spacesAfter : '');
289 289
             }
290 290
         }
291 291
         return $links;
Please login to merge, or discard this patch.