Completed
Push — develop ( e96e2d...4e806c )
by Agel_Nash
06:19
created
manager/includes/functions/helper.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
     /**
38 38
      * @param  string $string
39 39
      * @param  string $charset
40
-     * @return mixed
40
+     * @return string
41 41
      */
42 42
     function entities($string, $charset = 'UTF-8')
43 43
     {
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
 if (! function_exists('get_by_key')) {
49 49
     /**
50 50
      * @param mixed $data
51
-     * @param string|int $key
51
+     * @param string $key
52 52
      * @param mixed $default
53 53
      * @param Closure $validate
54 54
      * @return mixed
Please login to merge, or discard this patch.
manager/includes/src/Core.php 1 patch
Doc Comments   +27 added lines, -25 removed lines patch added patch discarded remove patch
@@ -212,7 +212,6 @@  discard block
 block discarded – undo
212 212
 
213 213
     /**
214 214
      * @param array $services
215
-     * @param array $parameters
216 215
      */
217 216
     public function __construct(array $services = array())
218 217
     {
@@ -282,6 +281,9 @@  discard block
 block discarded – undo
282 281
         return $service;
283 282
     }
284 283
 
284
+    /**
285
+     * @param string $name
286
+     */
285 287
     private function checkServiceAlias($name){
286 288
         foreach ($this->providerAliases as $alias => $interface) {
287 289
             if($name === $interface) {
@@ -319,7 +321,7 @@  discard block
 block discarded – undo
319 321
      *
320 322
      * @param object $service         The service.
321 323
      * @param string $name            The service name.
322
-     * @param array  $callDefinitions The service calls definition.
324
+     * @param boolean  $callDefinitions The service calls definition.
323 325
      *
324 326
      * @throws Exceptions\ContainerException On failure.
325 327
      */
@@ -561,7 +563,7 @@  discard block
 block discarded – undo
561 563
      * @param int $count_attempts
562 564
      * @param string $type $type
563 565
      * @param string $responseCode
564
-     * @return bool|null
566
+     * @return false|null
565 567
      * @global string $base_url
566 568
      * @global string $site_url
567 569
      */
@@ -1262,7 +1264,7 @@  discard block
 block discarded – undo
1262 1264
     }
1263 1265
 
1264 1266
     /**
1265
-     * @param $contents
1267
+     * @param string $contents
1266 1268
      * @return mixed
1267 1269
      */
1268 1270
     public function RecoveryEscapedTags($contents)
@@ -1286,7 +1288,7 @@  discard block
 block discarded – undo
1286 1288
     }
1287 1289
 
1288 1290
     /**
1289
-     * @param $tstart
1291
+     * @param double $tstart
1290 1292
      * @return array
1291 1293
      */
1292 1294
     public function getTimerStats($tstart)
@@ -2052,7 +2054,7 @@  discard block
 block discarded – undo
2052 2054
 
2053 2055
     /**
2054 2056
      * Remove Comment-Tags from output like <!--@- Comment -@-->
2055
-     * @param $content
2057
+     * @param string $content
2056 2058
      * @param string $left
2057 2059
      * @param string $right
2058 2060
      * @return mixed
@@ -2228,7 +2230,7 @@  discard block
 block discarded – undo
2228 2230
     /**
2229 2231
      * Run snippets as per the tags in $documentSource and replace the tags with the returned values.
2230 2232
      *
2231
-     * @param $content
2233
+     * @param string $content
2232 2234
      * @return string
2233 2235
      * @internal param string $documentSource
2234 2236
      */
@@ -3263,7 +3265,7 @@  discard block
 block discarded – undo
3263 3265
 
3264 3266
     /**
3265 3267
      * @param $templateID
3266
-     * @return mixed
3268
+     * @return string
3267 3269
      */
3268 3270
     public function _getTemplateCodeFromDB($templateID)
3269 3271
     {
@@ -3306,7 +3308,7 @@  discard block
 block discarded – undo
3306 3308
     /**
3307 3309
      * @param $id
3308 3310
      * @param int $top
3309
-     * @return mixed
3311
+     * @return string
3310 3312
      */
3311 3313
     public function getUltimateParentId($id, $top = 0)
3312 3314
     {
@@ -3646,7 +3648,7 @@  discard block
 block discarded – undo
3646 3648
      *
3647 3649
      * @param int $type Types: 1=template, 2=tv, 3=chunk, 4=snippet, 5=plugin, 6=module, 7=resource, 8=role
3648 3650
      * @param int $id Element- / Resource-id
3649
-     * @return bool
3651
+     * @return false|null
3650 3652
      */
3651 3653
     public function lockElement($type, $id)
3652 3654
     {
@@ -3668,7 +3670,7 @@  discard block
 block discarded – undo
3668 3670
      * @param int $type Types: 1=template, 2=tv, 3=chunk, 4=snippet, 5=plugin, 6=module, 7=resource, 8=role
3669 3671
      * @param int $id Element- / Resource-id
3670 3672
      * @param bool $includeAllUsers true = Deletes not only own user-locks
3671
-     * @return bool
3673
+     * @return false|null
3672 3674
      */
3673 3675
     public function unlockElement($type, $id, $includeAllUsers = false)
3674 3676
     {
@@ -4181,7 +4183,7 @@  discard block
 block discarded – undo
4181 4183
      *                     Default: 1
4182 4184
      * @param string $fields List of fields
4183 4185
      *                       Default: id, pagetitle, description, alias
4184
-     * @return boolean|array
4186
+     * @return string
4185 4187
      */
4186 4188
     public function getPageInfo($pageid = -1, $active = 1, $fields = 'id, pagetitle, description, alias')
4187 4189
     {
@@ -4273,7 +4275,7 @@  discard block
 block discarded – undo
4273 4275
      *
4274 4276
      * @param string $type
4275 4277
      * @param bool $report
4276
-     * @return bool
4278
+     * @return boolean|null
4277 4279
      */
4278 4280
     public function clearCache($type = '', $report = false)
4279 4281
     {
@@ -4463,7 +4465,7 @@  discard block
 block discarded – undo
4463 4465
      * Note: most code accesses the config array directly and we will continue to support this.
4464 4466
      *
4465 4467
      * @param string $name
4466
-     * @param mixed $default
4468
+     * @param string $default
4467 4469
      * @return bool|string
4468 4470
      */
4469 4471
     public function getConfig($name = '', $default = null)
@@ -4636,7 +4638,7 @@  discard block
 block discarded – undo
4636 4638
      * - Placeholders prefix. Default: '{'.
4637 4639
      * @param string $suffix {string}
4638 4640
      * - Placeholders suffix. Default: '}'.
4639
-     * @return bool|mixed|string {string; false} - Parsed chunk or false if $chunkArr is not array.
4641
+     * @return false|string {string; false} - Parsed chunk or false if $chunkArr is not array.
4640 4642
      * - Parsed chunk or false if $chunkArr is not array.
4641 4643
      */
4642 4644
     public function parseChunk($chunkName, $chunkArr, $prefix = '{', $suffix = '}')
@@ -5608,7 +5610,7 @@  discard block
 block discarded – undo
5608 5610
      * Remove event listener - only for use within the current execution cycle
5609 5611
      *
5610 5612
      * @param string $evtName
5611
-     * @return boolean
5613
+     * @return false|null
5612 5614
      */
5613 5615
     public function removeEventListener($evtName)
5614 5616
     {
@@ -5632,7 +5634,7 @@  discard block
 block discarded – undo
5632 5634
      *
5633 5635
      * @param string $evtName
5634 5636
      * @param array $extParams Parameters available to plugins. Each array key will be the PHP variable name, and the array value will be the variable value.
5635
-     * @return boolean|array
5637
+     * @return false|null
5636 5638
      */
5637 5639
     public function invokeEvent($evtName, $extParams = array())
5638 5640
     {
@@ -6277,7 +6279,7 @@  discard block
 block discarded – undo
6277 6279
 
6278 6280
     /**
6279 6281
      * @param string $str
6280
-     * @return bool|mixed|string
6282
+     * @return string
6281 6283
      */
6282 6284
     public function atBindFileContent($str = '')
6283 6285
     {
@@ -6328,8 +6330,8 @@  discard block
 block discarded – undo
6328 6330
     }
6329 6331
 
6330 6332
     /**
6331
-     * @param $str
6332
-     * @return bool|string
6333
+     * @param string $str
6334
+     * @return false|string
6333 6335
      */
6334 6336
     public function getExtFromFilename($str)
6335 6337
     {
@@ -6357,7 +6359,7 @@  discard block
 block discarded – undo
6357 6359
      * @param string $text Error message
6358 6360
      * @param string $file File where the error was detected
6359 6361
      * @param string $line Line number within $file
6360
-     * @return boolean
6362
+     * @return boolean|null
6361 6363
      */
6362 6364
     public function phpError($nr, $text, $file, $line)
6363 6365
     {
@@ -6409,7 +6411,7 @@  discard block
 block discarded – undo
6409 6411
      * @param string $text
6410 6412
      * @param string $line
6411 6413
      * @param string $output
6412
-     * @return bool
6414
+     * @return null|boolean
6413 6415
      */
6414 6416
     public function messageQuit($msg = 'unspecified error', $query = '', $is_error = true, $nr = '', $file = '', $source = '', $text = '', $line = '', $output = '')
6415 6417
     {
@@ -6824,7 +6826,7 @@  discard block
 block discarded – undo
6824 6826
 
6825 6827
     /**
6826 6828
      * @param string $str
6827
-     * @return bool|mixed|string
6829
+     * @return string
6828 6830
      */
6829 6831
     public function atBindInclude($str = '')
6830 6832
     {
@@ -6875,7 +6877,7 @@  discard block
 block discarded – undo
6875 6877
      * @param $str
6876 6878
      * @param int $flags
6877 6879
      * @param string $encode
6878
-     * @return mixed
6880
+     * @return null|string
6879 6881
      */
6880 6882
     public function htmlspecialchars($str, $flags = ENT_COMPAT, $encode = '')
6881 6883
     {
@@ -6883,7 +6885,7 @@  discard block
 block discarded – undo
6883 6885
     }
6884 6886
 
6885 6887
     /**
6886
-     * @param $string
6888
+     * @param string $string
6887 6889
      * @param bool $returnData
6888 6890
      * @return bool|mixed
6889 6891
      */
Please login to merge, or discard this patch.