Completed
Branch master (d39ff3)
by Pierre-Henry
32:32
created
_protected/framework/Compress/Compress.class.php 1 patch
Doc Comments   +12 added lines patch added patch discarded remove patch
@@ -72,6 +72,9 @@  discard block
 block discarded – undo
72 72
         $this->bIsGoogleClosure = (bool)Config::getInstance()->values['cache']['enable.js.closure_compiler_service'];
73 73
     }
74 74
 
75
+    /**
76
+     * @param string $sPhp
77
+     */
75 78
     public function parsePhp($sPhp)
76 79
     {
77 80
         $sPhp = preg_replace('#/\*.*+\*#', '', $sPhp); # Removing PHP comments
@@ -80,6 +83,9 @@  discard block
 block discarded – undo
80 83
         return $sPhp;
81 84
     }
82 85
 
86
+    /**
87
+     * @return string
88
+     */
83 89
     public function parseHtml($sHtml)
84 90
     {
85 91
         preg_match_all('!(<(?:code|pre).*>[^<]+</(?:code|pre)>)!', $sHtml, $aPre); # Exclude pre or code tags
@@ -98,6 +104,9 @@  discard block
 block discarded – undo
98 104
         return $sHtml;
99 105
     }
100 106
 
107
+    /**
108
+     * @param string $sContent
109
+     */
101 110
     public function parseCss($sContent)
102 111
     {
103 112
         if ($this->bJavaCompiler) {
@@ -149,6 +158,9 @@  discard block
 block discarded – undo
149 158
         return $sCssMinified;
150 159
     }
151 160
 
161
+    /**
162
+     * @param string $sContent
163
+     */
152 164
     public function parseJs($sContent)
153 165
     {
154 166
         if ($this->bJavaCompiler) {
Please login to merge, or discard this patch.
_protected/framework/File/File.class.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
     /**
139 139
      * Check if file exists.
140 140
      *
141
-     * @param array|string $mFile
141
+     * @param string $mFile
142 142
      *
143 143
      * @return boolean TRUE if file exists, FALSE otherwise.
144 144
      */
@@ -340,7 +340,7 @@  discard block
 block discarded – undo
340 340
      * @param string $sFrom File or directory.
341 341
      * @param string $sTo File or directory.
342 342
      *
343
-     * @return integer|boolean Returns the last line on success, and FALSE on failure.
343
+     * @return string|false Returns the last line on success, and FALSE on failure.
344 344
      */
345 345
     public function systemCopy($sFrom, $sTo)
346 346
     {
@@ -390,7 +390,7 @@  discard block
 block discarded – undo
390 390
      * @param string $sFrom File or directory.
391 391
      * @param string $sTo File or directory.
392 392
      *
393
-     * @return integer|boolean Returns the last line on success, and FALSE on failure.
393
+     * @return string|false Returns the last line on success, and FALSE on failure.
394 394
      */
395 395
     public function systemRename($sFrom, $sTo)
396 396
     {
Please login to merge, or discard this patch.
_protected/framework/Layout/Form/Engine/PFBC/Form.class.php 1 patch
Doc Comments   +10 added lines patch added patch discarded remove patch
@@ -135,6 +135,9 @@  discard block
 block discarded – undo
135 135
         return $valid;
136 136
     }
137 137
 
138
+    /**
139
+     * @param string $id
140
+     */
138 141
     private static function recover($id)
139 142
     {
140 143
         if (!empty($_SESSION['pfbc'][$id]['form'])) {
@@ -158,6 +161,9 @@  discard block
 block discarded – undo
158 161
         }
159 162
     }
160 163
 
164
+    /**
165
+     * @param string $id
166
+     */
161 167
     public static function setSessionValue($id, $element, $value)
162 168
     {
163 169
         $_SESSION['pfbc'][$id]['values'][$element] = $value;
@@ -166,6 +172,7 @@  discard block
 block discarded – undo
166 172
     /**
167 173
      * Validation errors are saved in the session after the form submission, and will be displayed to the user
168 174
      * when redirected back to the form.
175
+     * @param string $id
169 176
      */
170 177
     public static function setError($id, $messages, $element = '')
171 178
     {
@@ -204,6 +211,9 @@  discard block
 block discarded – undo
204 211
         }
205 212
     }
206 213
 
214
+    /**
215
+     * @param string $id
216
+     */
207 217
     public static function setSuccess($id, $message, $element = '')
208 218
     {
209 219
         return (new Design)->setFlashMsg($message, Design::SUCCESS_TYPE);
Please login to merge, or discard this patch.
_protected/framework/Mvc/Model/Engine/Db.class.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -272,7 +272,7 @@  discard block
 block discarded – undo
272 272
      *
273 273
      * @param string $sStatement
274 274
      *
275
-     * @return mixed
275
+     * @return string
276 276
      */
277 277
     public function queryFetchColAssoc($sStatement)
278 278
     {
@@ -318,7 +318,7 @@  discard block
 block discarded – undo
318 318
     /**
319 319
      * Count the number of requests.
320 320
      *
321
-     * @return float number
321
+     * @return integer number
322 322
      */
323 323
     public static function queryCount()
324 324
     {
Please login to merge, or discard this patch.
_protected/framework/Translate/Adapter/Gettext/streams.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -106,6 +106,9 @@
 block discarded – undo
106 106
     var $_fd;
107 107
     var $_length;
108 108
 
109
+    /**
110
+     * @param string $filename
111
+     */
109 112
     public function __construct($filename)
110 113
     {
111 114
         if (file_exists($filename)) {
Please login to merge, or discard this patch.
_protected/framework/Translate/Lang.class.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -227,7 +227,6 @@
 block discarded – undo
227 227
     /**
228 228
      * Language helper function.
229 229
      *
230
-     * @param string $sVar [, string $... ]
231 230
      *
232 231
      * @return string Returns the text with gettext function or language in an array (this depends on whether a key language was found in the language table).
233 232
      */
Please login to merge, or discard this patch.
_protected/framework/Video/Api/Api.class.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@
 block discarded – undo
88 88
     /**
89 89
      * @param string $sUrl
90 90
      *
91
-     * @return string|bool The embed URL if id is valid, false otherwise.
91
+     * @return false|string The embed URL if id is valid, false otherwise.
92 92
      */
93 93
     public function getEmbedUrl($sUrl)
94 94
     {
Please login to merge, or discard this patch.
_protected/framework/Video/Api/Dailymotion.class.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
     /**
25 25
      * @param string $sUrl
26 26
      *
27
-     * @return string|bool Returns the video embed URL if it was found, FALSE otherwise.
27
+     * @return false|string Returns the video embed URL if it was found, FALSE otherwise.
28 28
      */
29 29
     public function getVideo($sUrl)
30 30
     {
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
     /**
64 64
      * @param string $sUrl
65 65
      *
66
-     * @return int|bool Returns the ID of the video if it was found, FALSE otherwise.
66
+     * @return string|false Returns the ID of the video if it was found, FALSE otherwise.
67 67
      */
68 68
     public function getVideoId($sUrl)
69 69
     {
Please login to merge, or discard this patch.
_protected/framework/Video/Api/Metacafe.class.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
     /**
23 23
      * @param string $sUrl
24 24
      *
25
-     * @return string|bool Returns the embed video URL if found, FALSE otherwise.
25
+     * @return false|string Returns the embed video URL if found, FALSE otherwise.
26 26
      */
27 27
     public function getVideo($sUrl)
28 28
     {
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
     /**
128 128
      * @param string $sUrl
129 129
      *
130
-     * @return int|bool Returns the ID of the video if it was found, FALSE otherwise.
130
+     * @return string|false Returns the ID of the video if it was found, FALSE otherwise.
131 131
      */
132 132
     public function getVideoId($sUrl)
133 133
     {
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
      *
142 142
      * @param string $sUrl
143 143
      *
144
-     * @return bool|string
144
+     * @return false|string
145 145
      */
146 146
     public function getEmbedUrl($sUrl)
147 147
     {
Please login to merge, or discard this patch.