Completed
Push — develop ( 80f130...524d8a )
by Maxim
08:25
created
manager/media/browser/mcpuk/browser.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -10,14 +10,14 @@
 block discarded – undo
10 10
 			}
11 11
 		};
12 12
 <?php
13
-	if(isset($_GET['type']))     $type = htmlspecialchars(trim($_GET['type']), ENT_QUOTES);
14
-	elseif(isset($_GET['Type'])) $type = htmlspecialchars(trim($_GET['Type']), ENT_QUOTES);
13
+    if(isset($_GET['type']))     $type = htmlspecialchars(trim($_GET['type']), ENT_QUOTES);
14
+    elseif(isset($_GET['Type'])) $type = htmlspecialchars(trim($_GET['Type']), ENT_QUOTES);
15 15
     else                         $type = 'images';
16 16
     
17 17
     if($type==='image') $type = 'images';
18 18
     
19
-	$opener = (isset($_GET['editor'])) ? 'opener=' . htmlspecialchars(trim($_GET['editor']), ENT_QUOTES) : '';
20
-	$request_uri = "{$opener}&type={$type}";
19
+    $opener = (isset($_GET['editor'])) ? 'opener=' . htmlspecialchars(trim($_GET['editor']), ENT_QUOTES) : '';
20
+    $request_uri = "{$opener}&type={$type}";
21 21
 ?>
22 22
 		window.location.href = "browse.php?<?php echo $request_uri; ?>";
23 23
 	</script>
Please login to merge, or discard this patch.
manager/media/browser/mcpuk/lib/helper_dir.php 1 patch
Indentation   +29 added lines, -29 removed lines patch added patch discarded remove patch
@@ -1,23 +1,23 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 /** This file is part of KCFinder project
4
-  *
5
-  *      @desc Directory helper class
6
-  *   @package KCFinder
7
-  *   @version 2.54
8
-  *    @author Pavel Tzonkov <[email protected]>
9
-  * @copyright 2010-2014 KCFinder Project
10
-  *   @license http://www.opensource.org/licenses/gpl-2.0.php GPLv2
11
-  *   @license http://www.opensource.org/licenses/lgpl-2.1.php LGPLv2
12
-  *      @link http://kcfinder.sunhater.com
13
-  */
4
+ *
5
+ *      @desc Directory helper class
6
+ *   @package KCFinder
7
+ *   @version 2.54
8
+ *    @author Pavel Tzonkov <[email protected]>
9
+ * @copyright 2010-2014 KCFinder Project
10
+ *   @license http://www.opensource.org/licenses/gpl-2.0.php GPLv2
11
+ *   @license http://www.opensource.org/licenses/lgpl-2.1.php LGPLv2
12
+ *      @link http://kcfinder.sunhater.com
13
+ */
14 14
 
15 15
 class dir {
16 16
 
17
-  /** Checks if the given directory is really writable. The standard PHP
18
-    * function is_writable() does not work properly on Windows servers
19
-    * @param string $dir
20
-    * @return bool */
17
+    /** Checks if the given directory is really writable. The standard PHP
18
+     * function is_writable() does not work properly on Windows servers
19
+     * @param string $dir
20
+     * @return bool */
21 21
 
22 22
     static function isWritable($dir) {
23 23
         $dir = path::normalize($dir);
@@ -33,16 +33,16 @@  discard block
 block discarded – undo
33 33
         return true;
34 34
     }
35 35
 
36
-  /** Recursively delete the given directory. Returns TRUE on success.
37
-    * If $firstFailExit parameter is true (default), the method returns the
38
-    * path to the first failed file or directory which cannot be deleted.
39
-    * If $firstFailExit is false, the method returns an array with failed
40
-    * files and directories which cannot be deleted. The third parameter
41
-    * $failed is used for internal use only.
42
-    * @param string $dir
43
-    * @param bool $firstFailExit
44
-    * @param array $failed
45
-    * @return mixed */
36
+    /** Recursively delete the given directory. Returns TRUE on success.
37
+     * If $firstFailExit parameter is true (default), the method returns the
38
+     * path to the first failed file or directory which cannot be deleted.
39
+     * If $firstFailExit is false, the method returns an array with failed
40
+     * files and directories which cannot be deleted. The third parameter
41
+     * $failed is used for internal use only.
42
+     * @param string $dir
43
+     * @param bool $firstFailExit
44
+     * @param array $failed
45
+     * @return mixed */
46 46
 
47 47
     static function prune($dir, $firstFailExit=true, array $failed=null) {
48 48
         if ($failed === null) $failed = array();
@@ -81,11 +81,11 @@  discard block
 block discarded – undo
81 81
         return count($failed) ? $failed : true;
82 82
     }
83 83
 
84
-  /** Get the content of the given directory. Returns an array with filenames
85
-    * or FALSE on failure
86
-    * @param string $dir
87
-    * @param array $options
88
-    * @return mixed */
84
+    /** Get the content of the given directory. Returns an array with filenames
85
+     * or FALSE on failure
86
+     * @param string $dir
87
+     * @param array $options
88
+     * @return mixed */
89 89
 
90 90
     static function content($dir, array $options=null) {
91 91
 
Please login to merge, or discard this patch.
manager/media/browser/mcpuk/lib/class_image_imagick.php 1 patch
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -1,16 +1,16 @@
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 /** This file is part of KCFinder project
4
-  *
5
-  *      @desc ImageMagick image driver class
6
-  *   @package KCFinder
7
-  *   @version 2.54
8
-  *    @author Pavel Tzonkov <[email protected]>
9
-  * @copyright 2010-2014 KCFinder Project
10
-  *   @license http://www.opensource.org/licenses/gpl-2.0.php GPLv2
11
-  *   @license http://www.opensource.org/licenses/lgpl-2.1.php LGPLv2
12
-  *      @link http://kcfinder.sunhater.com
13
-  */
4
+ *
5
+ *      @desc ImageMagick image driver class
6
+ *   @package KCFinder
7
+ *   @version 2.54
8
+ *    @author Pavel Tzonkov <[email protected]>
9
+ * @copyright 2010-2014 KCFinder Project
10
+ *   @license http://www.opensource.org/licenses/gpl-2.0.php GPLv2
11
+ *   @license http://www.opensource.org/licenses/lgpl-2.1.php LGPLv2
12
+ *      @link http://kcfinder.sunhater.com
13
+ */
14 14
 
15 15
 class image_imagick extends image {
16 16
 
Please login to merge, or discard this patch.
manager/media/browser/mcpuk/lib/class_input.php 1 patch
Indentation   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -1,29 +1,29 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 /** This file is part of KCFinder project
4
-  *
5
-  *      @desc Input class for GET, POST and COOKIE requests
6
-  *   @package KCFinder
7
-  *   @version 2.54
8
-  *    @author Pavel Tzonkov <[email protected]>
9
-  * @copyright 2010-2014 KCFinder Project
10
-  *   @license http://www.opensource.org/licenses/gpl-2.0.php GPLv2
11
-  *   @license http://www.opensource.org/licenses/lgpl-2.1.php LGPLv2
12
-  *      @link http://kcfinder.sunhater.com
13
-  */
4
+ *
5
+ *      @desc Input class for GET, POST and COOKIE requests
6
+ *   @package KCFinder
7
+ *   @version 2.54
8
+ *    @author Pavel Tzonkov <[email protected]>
9
+ * @copyright 2010-2014 KCFinder Project
10
+ *   @license http://www.opensource.org/licenses/gpl-2.0.php GPLv2
11
+ *   @license http://www.opensource.org/licenses/lgpl-2.1.php LGPLv2
12
+ *      @link http://kcfinder.sunhater.com
13
+ */
14 14
 
15 15
 class input {
16 16
 
17
-  /** Filtered $_GET array
18
-    * @var array */
17
+    /** Filtered $_GET array
18
+     * @var array */
19 19
     public $get;
20 20
 
21
-  /** Filtered $_POST array
22
-    * @var array */
21
+    /** Filtered $_POST array
22
+     * @var array */
23 23
     public $post;
24 24
 
25
-  /** Filtered $_COOKIE array
26
-    * @var array */
25
+    /** Filtered $_COOKIE array
26
+     * @var array */
27 27
     public $cookie;
28 28
 
29 29
     public function __construct() {
@@ -32,9 +32,9 @@  discard block
 block discarded – undo
32 32
         $this->cookie = &$_COOKIE;
33 33
     }
34 34
 
35
-  /** Magic method to get non-public properties like public.
36
-    * @param string $property
37
-    * @return mixed */
35
+    /** Magic method to get non-public properties like public.
36
+     * @param string $property
37
+     * @return mixed */
38 38
 
39 39
     public function __get($property) {
40 40
         return property_exists($this, $property) ? $this->$property : null;
Please login to merge, or discard this patch.
manager/media/browser/mcpuk/lib/helper_path.php 1 patch
Indentation   +31 added lines, -31 removed lines patch added patch discarded remove patch
@@ -1,23 +1,23 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 /** This file is part of KCFinder project
4
-  *
5
-  *      @desc Path helper class
6
-  *   @package KCFinder
7
-  *   @version 2.54
8
-  *    @author Pavel Tzonkov <[email protected]>
9
-  * @copyright 2010-2014 KCFinder Project
10
-  *   @license http://www.opensource.org/licenses/gpl-2.0.php GPLv2
11
-  *   @license http://www.opensource.org/licenses/lgpl-2.1.php LGPLv2
12
-  *      @link http://kcfinder.sunhater.com
13
-  */
4
+ *
5
+ *      @desc Path helper class
6
+ *   @package KCFinder
7
+ *   @version 2.54
8
+ *    @author Pavel Tzonkov <[email protected]>
9
+ * @copyright 2010-2014 KCFinder Project
10
+ *   @license http://www.opensource.org/licenses/gpl-2.0.php GPLv2
11
+ *   @license http://www.opensource.org/licenses/lgpl-2.1.php LGPLv2
12
+ *      @link http://kcfinder.sunhater.com
13
+ */
14 14
 
15 15
 class path {
16 16
 
17
-  /** Get the absolute URL path of the given one. Returns FALSE if the URL
18
-    * is not valid or the current directory cannot be resolved (getcwd())
19
-    * @param string $path
20
-    * @return string */
17
+    /** Get the absolute URL path of the given one. Returns FALSE if the URL
18
+     * is not valid or the current directory cannot be resolved (getcwd())
19
+     * @param string $path
20
+     * @return string */
21 21
 
22 22
     static function rel2abs_url($path) {
23 23
         if (substr($path, 0, 1) == "/") return $path;
@@ -39,10 +39,10 @@  discard block
 block discarded – undo
39 39
         return $return;
40 40
     }
41 41
 
42
-  /** Resolve full filesystem path of given URL. Returns FALSE if the URL
43
-    * cannot be resolved
44
-    * @param string $url
45
-    * @return string */
42
+    /** Resolve full filesystem path of given URL. Returns FALSE if the URL
43
+     * cannot be resolved
44
+     * @param string $url
45
+     * @return string */
46 46
 
47 47
     static function url2fullPath($url) {
48 48
         $url = self::normalize($url);
@@ -84,13 +84,13 @@  discard block
 block discarded – undo
84 84
         }
85 85
     }
86 86
 
87
-  /** Normalize the given path. On Windows servers backslash will be replaced
88
-    * with slash. Remobes unnecessary doble slashes and double dots. Removes
89
-    * last slash if it exists. Examples:
90
-    * path::normalize("C:\\any\\path\\") returns "C:/any/path"
91
-    * path::normalize("/your/path/..//home/") returns "/your/home"
92
-    * @param string $path
93
-    * @return string */
87
+    /** Normalize the given path. On Windows servers backslash will be replaced
88
+     * with slash. Remobes unnecessary doble slashes and double dots. Removes
89
+     * last slash if it exists. Examples:
90
+     * path::normalize("C:\\any\\path\\") returns "C:/any/path"
91
+     * path::normalize("/your/path/..//home/") returns "/your/home"
92
+     * @param string $path
93
+     * @return string */
94 94
 
95 95
     static function normalize($path) {
96 96
         if (strtoupper(substr(PHP_OS, 0, 3)) == "WIN") {
@@ -114,9 +114,9 @@  discard block
 block discarded – undo
114 114
         return $path;
115 115
     }
116 116
 
117
-  /** Encode URL Path
118
-    * @param string $path
119
-    * @return string */
117
+    /** Encode URL Path
118
+     * @param string $path
119
+     * @return string */
120 120
 
121 121
     static function urlPathEncode($path) {
122 122
         $path = self::normalize($path);
@@ -127,9 +127,9 @@  discard block
 block discarded – undo
127 127
         return $encoded;
128 128
     }
129 129
 
130
-  /** Decode URL Path
131
-    * @param string $path
132
-    * @return string */
130
+    /** Decode URL Path
131
+     * @param string $path
132
+     * @return string */
133 133
 
134 134
     static function urlPathDecode($path) {
135 135
         $path = self::normalize($path);
Please login to merge, or discard this patch.
manager/media/browser/mcpuk/lib/helper_file.php 1 patch
Indentation   +48 added lines, -48 removed lines patch added patch discarded remove patch
@@ -1,16 +1,16 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 /** This file is part of KCFinder project
4
-  *
5
-  *      @desc File helper class
6
-  *   @package KCFinder
7
-  *   @version 2.54
8
-  *    @author Pavel Tzonkov <[email protected]>
9
-  * @copyright 2010-2014 KCFinder Project
10
-  *   @license http://www.opensource.org/licenses/gpl-2.0.php GPLv2
11
-  *   @license http://www.opensource.org/licenses/lgpl-2.1.php LGPLv2
12
-  *      @link http://kcfinder.sunhater.com
13
-  */
4
+ *
5
+ *      @desc File helper class
6
+ *   @package KCFinder
7
+ *   @version 2.54
8
+ *    @author Pavel Tzonkov <[email protected]>
9
+ * @copyright 2010-2014 KCFinder Project
10
+ *   @license http://www.opensource.org/licenses/gpl-2.0.php GPLv2
11
+ *   @license http://www.opensource.org/licenses/lgpl-2.1.php LGPLv2
12
+ *      @link http://kcfinder.sunhater.com
13
+ */
14 14
 
15 15
 class file {
16 16
 
@@ -100,10 +100,10 @@  discard block
 block discarded – undo
100 100
         'zip'   => 'application/x-zip'
101 101
     );
102 102
 
103
-  /** Checks if the given file is really writable. The standard PHP function
104
-    * is_writable() does not work properly on Windows servers.
105
-    * @param string $dir
106
-    * @return bool */
103
+    /** Checks if the given file is really writable. The standard PHP function
104
+     * is_writable() does not work properly on Windows servers.
105
+     * @param string $dir
106
+     * @return bool */
107 107
 
108 108
     static function isWritable($filename) {
109 109
         $filename = path::normalize($filename);
@@ -113,26 +113,26 @@  discard block
 block discarded – undo
113 113
         return true;
114 114
     }
115 115
 
116
-  /** Get the extension from filename
117
-    * @param string $file
118
-    * @param bool $toLower
119
-    * @return string */
116
+    /** Get the extension from filename
117
+     * @param string $file
118
+     * @param bool $toLower
119
+     * @return string */
120 120
 
121 121
     static function getExtension($filename, $toLower=true) {
122 122
         return preg_match('/^.*\.([^\.]*)$/s', $filename, $patt)
123 123
             ? ($toLower ? strtolower($patt[1]) : $patt[1]) : "";
124 124
     }
125 125
 
126
-  /** Get MIME type of the given filename. If Fileinfo PHP extension is
127
-    * available the MIME type will be fetched by the file's content. The
128
-    * second parameter is optional and defines the magic file path. If you
129
-    * skip it, the default one will be loaded.
130
-    * If Fileinfo PHP extension is not available the MIME type will be fetched
131
-    * by filename extension regarding $MIME property. If the file extension
132
-    * does not exist there, returned type will be application/octet-stream
133
-    * @param string $filename
134
-    * @param string $magic
135
-    * @return string */
126
+    /** Get MIME type of the given filename. If Fileinfo PHP extension is
127
+     * available the MIME type will be fetched by the file's content. The
128
+     * second parameter is optional and defines the magic file path. If you
129
+     * skip it, the default one will be loaded.
130
+     * If Fileinfo PHP extension is not available the MIME type will be fetched
131
+     * by filename extension regarding $MIME property. If the file extension
132
+     * does not exist there, returned type will be application/octet-stream
133
+     * @param string $filename
134
+     * @param string $magic
135
+     * @return string */
136 136
 
137 137
     static function getMimeType($filename, $magic=null) {
138 138
         if (class_exists("finfo")) {
@@ -149,26 +149,26 @@  discard block
 block discarded – undo
149 149
         return isset(self::$MIME[$ext]) ? self::$MIME[$ext] : "application/octet-stream";
150 150
     }
151 151
 
152
-  /** Get inexistant filename based on the given filename. If you skip $dir
153
-    * parameter the directory will be fetched from $filename and returned
154
-    * value will be full filename path. The third parameter is optional and
155
-    * defines the template, the filename will be renamed to. Default template
156
-    * is {name}({sufix}){ext}. Examples:
157
-    *
158
-    *   file::getInexistantFilename("/my/directory/myfile.txt");
159
-    *   If myfile.txt does not exist - returns the same path to the file
160
-    *   otherwise returns "/my/directory/myfile(1).txt"
161
-    *
162
-    *   file::getInexistantFilename("myfile.txt", "/my/directory");
163
-    *   returns "myfile.txt" or "myfile(1).txt" or "myfile(2).txt" etc...
164
-    *
165
-    *   file::getInexistantFilename("myfile.txt", "/dir", "{name}[{sufix}]{ext}");
166
-    *   returns "myfile.txt" or "myfile[1].txt" or "myfile[2].txt" etc...
167
-    *
168
-    * @param string $filename
169
-    * @param string $dir
170
-    * @param string $tpl
171
-    * @return string */
152
+    /** Get inexistant filename based on the given filename. If you skip $dir
153
+     * parameter the directory will be fetched from $filename and returned
154
+     * value will be full filename path. The third parameter is optional and
155
+     * defines the template, the filename will be renamed to. Default template
156
+     * is {name}({sufix}){ext}. Examples:
157
+     *
158
+     *   file::getInexistantFilename("/my/directory/myfile.txt");
159
+     *   If myfile.txt does not exist - returns the same path to the file
160
+     *   otherwise returns "/my/directory/myfile(1).txt"
161
+     *
162
+     *   file::getInexistantFilename("myfile.txt", "/my/directory");
163
+     *   returns "myfile.txt" or "myfile(1).txt" or "myfile(2).txt" etc...
164
+     *
165
+     *   file::getInexistantFilename("myfile.txt", "/dir", "{name}[{sufix}]{ext}");
166
+     *   returns "myfile.txt" or "myfile[1].txt" or "myfile[2].txt" etc...
167
+     *
168
+     * @param string $filename
169
+     * @param string $dir
170
+     * @param string $tpl
171
+     * @return string */
172 172
 
173 173
     static function getInexistantFilename($filename, $dir=null, $tpl=null) {
174 174
         if ($tpl === null)  $tpl = "{name}({sufix}){ext}";
Please login to merge, or discard this patch.
manager/media/browser/mcpuk/lib/helper_httpCache.php 1 patch
Indentation   +30 added lines, -30 removed lines patch added patch discarded remove patch
@@ -1,29 +1,29 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 /** This file is part of KCFinder project
4
-  *
5
-  *      @desc HTTP cache helper class
6
-  *   @package KCFinder
7
-  *   @version 2.54
8
-  *    @author Pavel Tzonkov <[email protected]>
9
-  * @copyright 2010-2014 KCFinder Project
10
-  *   @license http://www.opensource.org/licenses/gpl-2.0.php GPLv2
11
-  *   @license http://www.opensource.org/licenses/lgpl-2.1.php LGPLv2
12
-  *      @link http://kcfinder.sunhater.com
13
-  */
4
+ *
5
+ *      @desc HTTP cache helper class
6
+ *   @package KCFinder
7
+ *   @version 2.54
8
+ *    @author Pavel Tzonkov <[email protected]>
9
+ * @copyright 2010-2014 KCFinder Project
10
+ *   @license http://www.opensource.org/licenses/gpl-2.0.php GPLv2
11
+ *   @license http://www.opensource.org/licenses/lgpl-2.1.php LGPLv2
12
+ *      @link http://kcfinder.sunhater.com
13
+ */
14 14
 
15 15
 class httpCache {
16 16
     const DEFAULT_TYPE = "text/html";
17 17
     const DEFAULT_EXPIRE = 604800; // in seconds
18 18
 
19
-  /** Cache a file. The $type parameter might define the MIME type of the file
20
-    * or path to magic file to autodetect the MIME type. If you skip $type
21
-    * parameter the method will try with the default magic file. Autodetection
22
-    * of MIME type requires Fileinfo PHP extension used in file::getMimeType()
23
-    * @param string $file
24
-    * @param string $type
25
-    * @param integer $expire
26
-    * @param array $headers */
19
+    /** Cache a file. The $type parameter might define the MIME type of the file
20
+     * or path to magic file to autodetect the MIME type. If you skip $type
21
+     * parameter the method will try with the default magic file. Autodetection
22
+     * of MIME type requires Fileinfo PHP extension used in file::getMimeType()
23
+     * @param string $file
24
+     * @param string $type
25
+     * @param integer $expire
26
+     * @param array $headers */
27 27
 
28 28
     static function file($file, $type=null, $expire=null, array $headers=null) {
29 29
         $mtime = @filemtime($file);
@@ -39,13 +39,13 @@  discard block
 block discarded – undo
39 39
         self::content(@file_get_contents($file), $mtime, $type, $expire, $headers, false);
40 40
     }
41 41
 
42
-  /** Cache the given $content with $mtime modification time.
43
-    * @param binary $content
44
-    * @param integer $mtime
45
-    * @param string $type
46
-    * @param integer $expire
47
-    * @param array $headers
48
-    * @param bool $checkMTime */
42
+    /** Cache the given $content with $mtime modification time.
43
+     * @param binary $content
44
+     * @param integer $mtime
45
+     * @param string $type
46
+     * @param integer $expire
47
+     * @param array $headers
48
+     * @param bool $checkMTime */
49 49
 
50 50
     static function content($content, $mtime, $type=null, $expire=null, array $headers=null, $checkMTime=true) {
51 51
         if ($checkMTime) self::checkMTime($mtime);
@@ -62,11 +62,11 @@  discard block
 block discarded – undo
62 62
         echo $content;
63 63
     }
64 64
 
65
-  /** Check if given modification time is newer than client-side one. If not,
66
-    * the method will tell the client to get the content from its own cache.
67
-    * Afterwards the script process will be terminated. This feature requires
68
-    * the PHP to be configured as Apache module.
69
-    * @param integer $mtime */
65
+    /** Check if given modification time is newer than client-side one. If not,
66
+     * the method will tell the client to get the content from its own cache.
67
+     * Afterwards the script process will be terminated. This feature requires
68
+     * the PHP to be configured as Apache module.
69
+     * @param integer $mtime */
70 70
 
71 71
     static function checkMTime($mtime, $sendHeaders=null) {
72 72
         header("Last-Modified: " . gmdate("D, d M Y H:i:s", $mtime) . " GMT");
Please login to merge, or discard this patch.
manager/media/browser/mcpuk/lib/class_image_gd.php 1 patch
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -1,16 +1,16 @@
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 /** This file is part of KCFinder project
4
-  *
5
-  *      @desc GD image driver class
6
-  *   @package KCFinder
7
-  *   @version 2.54
8
-  *    @author Pavel Tzonkov <[email protected]>
9
-  * @copyright 2010-2014 KCFinder Project
10
-  *   @license http://www.opensource.org/licenses/gpl-2.0.php GPLv2
11
-  *   @license http://www.opensource.org/licenses/lgpl-2.1.php LGPLv2
12
-  *      @link http://kcfinder.sunhater.com
13
-  */
4
+ *
5
+ *      @desc GD image driver class
6
+ *   @package KCFinder
7
+ *   @version 2.54
8
+ *    @author Pavel Tzonkov <[email protected]>
9
+ * @copyright 2010-2014 KCFinder Project
10
+ *   @license http://www.opensource.org/licenses/gpl-2.0.php GPLv2
11
+ *   @license http://www.opensource.org/licenses/lgpl-2.1.php LGPLv2
12
+ *      @link http://kcfinder.sunhater.com
13
+ */
14 14
 
15 15
 class image_gd extends image {
16 16
 
Please login to merge, or discard this patch.
manager/media/browser/mcpuk/lib/helper_text.php 1 patch
Indentation   +25 added lines, -25 removed lines patch added patch discarded remove patch
@@ -1,30 +1,30 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 /** This file is part of KCFinder project
4
-  *
5
-  *      @desc Text processing helper class
6
-  *   @package KCFinder
7
-  *   @version 2.54
8
-  *    @author Pavel Tzonkov <[email protected]>
9
-  * @copyright 2010-2014 KCFinder Project
10
-  *   @license http://www.opensource.org/licenses/gpl-2.0.php GPLv2
11
-  *   @license http://www.opensource.org/licenses/lgpl-2.1.php LGPLv2
12
-  *      @link http://kcfinder.sunhater.com
13
-  */
4
+ *
5
+ *      @desc Text processing helper class
6
+ *   @package KCFinder
7
+ *   @version 2.54
8
+ *    @author Pavel Tzonkov <[email protected]>
9
+ * @copyright 2010-2014 KCFinder Project
10
+ *   @license http://www.opensource.org/licenses/gpl-2.0.php GPLv2
11
+ *   @license http://www.opensource.org/licenses/lgpl-2.1.php LGPLv2
12
+ *      @link http://kcfinder.sunhater.com
13
+ */
14 14
 
15 15
 class text {
16 16
 
17
-  /** Replace repeated white spaces to single space
18
-    * @param string $string
19
-    * @return string */
17
+    /** Replace repeated white spaces to single space
18
+     * @param string $string
19
+     * @return string */
20 20
 
21 21
     static function clearWhitespaces($string) {
22 22
         return trim(preg_replace('/\s+/s', " ", $string));
23 23
     }
24 24
 
25
-  /** Normalize the string for HTML attribute value
26
-    * @param string $string
27
-    * @return string */
25
+    /** Normalize the string for HTML attribute value
26
+     * @param string $string
27
+     * @return string */
28 28
 
29 29
     static function htmlValue($string) {
30 30
         return
@@ -35,9 +35,9 @@  discard block
 block discarded – undo
35 35
         $string))));
36 36
     }
37 37
 
38
-  /** Normalize the string for JavaScript string value
39
-    * @param string $string
40
-    * @return string */
38
+    /** Normalize the string for JavaScript string value
39
+     * @param string $string
40
+     * @return string */
41 41
 
42 42
     static function jsValue($string) {
43 43
         return
@@ -48,9 +48,9 @@  discard block
 block discarded – undo
48 48
         $string))));
49 49
     }
50 50
 
51
-  /** Normalize the string for XML tag content data
52
-    * @param string $string
53
-    * @param bool $cdata */
51
+    /** Normalize the string for XML tag content data
52
+     * @param string $string
53
+     * @param bool $cdata */
54 54
 
55 55
     static function xmlData($string, $cdata=false) {
56 56
         $string = str_replace("]]>", "]]]]><![CDATA[>", $string);
@@ -59,9 +59,9 @@  discard block
 block discarded – undo
59 59
         return $string;
60 60
     }
61 61
 
62
-  /** Returns compressed content of given CSS code
63
-    * @param string $code
64
-    * @return string */
62
+    /** Returns compressed content of given CSS code
63
+     * @param string $code
64
+     * @return string */
65 65
 
66 66
     static function compressCSS($code) {
67 67
         $code = self::clearWhitespaces($code);
Please login to merge, or discard this patch.