@@ -30,7 +30,7 @@ discard block |
||
| 30 | 30 | /** |
| 31 | 31 | * @desc Add a role |
| 32 | 32 | * @param string $sName |
| 33 | - * @return object Instance of Role |
|
| 33 | + * @return Role Instance of Role |
|
| 34 | 34 | */ |
| 35 | 35 | public function addRole($sName) |
| 36 | 36 | { |
@@ -46,7 +46,7 @@ discard block |
||
| 46 | 46 | * @desc Add a resource |
| 47 | 47 | * @param string $sName |
| 48 | 48 | * @param array $aAllowed |
| 49 | - * @return object Instance of Resource |
|
| 49 | + * @return Resource Instance of Resource |
|
| 50 | 50 | */ |
| 51 | 51 | public function addResource($sName, array $aAllowed) |
| 52 | 52 | { |
@@ -361,7 +361,6 @@ |
||
| 361 | 361 | * For all the parameters : http://code.google.com/intl/fr-FR/apis/analytics/docs/gdata/gdataReferenceDataFeed.html |
| 362 | 362 | * |
| 363 | 363 | * @param string $metrics the metrics |
| 364 | - * @param string $uri the url of the website page (ex : /myurl/) |
|
| 365 | 364 | * |
| 366 | 365 | * @return array |
| 367 | 366 | */ |
@@ -62,7 +62,6 @@ discard block |
||
| 62 | 62 | /** |
| 63 | 63 | * Returns the elapsed time, readable or not |
| 64 | 64 | * |
| 65 | - * @param boolean $readable Whether the result must be human readable |
|
| 66 | 65 | * @param string $format The format to display (printf format) |
| 67 | 66 | * @return string|float |
| 68 | 67 | */ |
@@ -76,7 +75,6 @@ discard block |
||
| 76 | 75 | /** |
| 77 | 76 | * Returns the memory usage at the end checkpoint |
| 78 | 77 | * |
| 79 | - * @param boolean $readable Whether the result must be human readable |
|
| 80 | 78 | * @param string $format The format to display (printf format) |
| 81 | 79 | * @return string|float |
| 82 | 80 | */ |
@@ -88,7 +86,6 @@ discard block |
||
| 88 | 86 | /** |
| 89 | 87 | * Returns the memory peak, readable or not |
| 90 | 88 | * |
| 91 | - * @param boolean $readable Whether the result must be human readable |
|
| 92 | 89 | * @param string $format The format to display (printf format) |
| 93 | 90 | * @return string|float |
| 94 | 91 | */ |
@@ -229,6 +229,7 @@ |
||
| 229 | 229 | /** |
| 230 | 230 | * Is $c a letter, digit, underscore, dollar sign, or non-ASCII character. |
| 231 | 231 | * |
| 232 | + * @param string $c |
|
| 232 | 233 | * @return bool |
| 233 | 234 | */ |
| 234 | 235 | protected function isAlphaNum($c) |
@@ -12,7 +12,8 @@ |
||
| 12 | 12 | namespace PH7\Framework\Geo\Ip; |
| 13 | 13 | defined('PH7') or exit('Restricted access'); |
| 14 | 14 | |
| 15 | -use GeoIp2\Database\Reader, PH7\Framework\Ip\Ip; |
|
| 15 | +use GeoIp2\Database\Reader; |
|
| 16 | +use PH7\Framework\Ip\Ip; |
|
| 16 | 17 | |
| 17 | 18 | class Geo |
| 18 | 19 | { |
@@ -198,6 +198,9 @@ |
||
| 198 | 198 | $this->form = $form; |
| 199 | 199 | } |
| 200 | 200 | |
| 201 | + /** |
|
| 202 | + * @param string $id |
|
| 203 | + */ |
|
| 201 | 204 | public function setID($id) |
| 202 | 205 | { |
| 203 | 206 | $this->attributes['id'] = $id; |
@@ -114,7 +114,7 @@ |
||
| 114 | 114 | * Get Time text. |
| 115 | 115 | * |
| 116 | 116 | * @param integer $iWaitTime |
| 117 | - * @return integer |
|
| 117 | + * @return string |
|
| 118 | 118 | */ |
| 119 | 119 | private static function _getTimeText($iWaitTime) |
| 120 | 120 | { |
@@ -357,7 +357,7 @@ |
||
| 357 | 357 | /** |
| 358 | 358 | * Set CSS/JS variables. |
| 359 | 359 | * |
| 360 | - * @param array $aVars Variable names containing the values. |
|
| 360 | + * @param array $aVals Variable names containing the values. |
|
| 361 | 361 | * @return void |
| 362 | 362 | */ |
| 363 | 363 | private function _setVariables(array $aVals) |
@@ -13,13 +13,12 @@ |
||
| 13 | 13 | namespace PH7\Framework\Layout\Gzip; |
| 14 | 14 | defined('PH7') or exit('Restricted access'); |
| 15 | 15 | |
| 16 | -use |
|
| 17 | -PH7\Framework\File\File, |
|
| 18 | -PH7\Framework\Config\Config, |
|
| 19 | -PH7\Framework\Layout\Optimization, |
|
| 20 | -PH7\Framework\Navigation\Browser, |
|
| 21 | -PH7\Framework\Http\Http, |
|
| 22 | -PH7\Framework\Mvc\Request\Http as HttpRequest; |
|
| 16 | +use PH7\Framework\File\File; |
|
| 17 | +use PH7\Framework\Config\Config; |
|
| 18 | +use PH7\Framework\Layout\Optimization; |
|
| 19 | +use PH7\Framework\Navigation\Browser; |
|
| 20 | +use PH7\Framework\Http\Http; |
|
| 21 | +use PH7\Framework\Mvc\Request\Http as HttpRequest; |
|
| 23 | 22 | |
| 24 | 23 | class Gzip |
| 25 | 24 | { |
@@ -376,7 +376,7 @@ discard block |
||
| 376 | 376 | * |
| 377 | 377 | * @param string $sTplFile Default NULL |
| 378 | 378 | * @param string $sDirPath Default NULL |
| 379 | - * @param string $_bInclude Default 1 (TRUE) |
|
| 379 | + * @param integer $_bInclude Default 1 (TRUE) |
|
| 380 | 380 | * @return string |
| 381 | 381 | * @throws \PH7\Framework\Layout\Tpl\Engine\PH7Tpl\Exception If the template file does no exist. |
| 382 | 382 | */ |
@@ -562,7 +562,7 @@ discard block |
||
| 562 | 562 | * |
| 563 | 563 | * @see __get() |
| 564 | 564 | * |
| 565 | - * @param $sVarName string Name of a variable that is to be retrieved. |
|
| 565 | + * @param string $sVarName string Name of a variable that is to be retrieved. |
|
| 566 | 566 | * @return mixed Value of that variable. |
| 567 | 567 | */ |
| 568 | 568 | public function getVar($sVarName) |
@@ -585,7 +585,7 @@ discard block |
||
| 585 | 585 | * |
| 586 | 586 | * If the folder compile does not exist, it creates a folder. |
| 587 | 587 | * @access private |
| 588 | - * @return object this |
|
| 588 | + * @return PH7Tpl this |
|
| 589 | 589 | */ |
| 590 | 590 | private function checkCompileDir() |
| 591 | 591 | { |
@@ -598,7 +598,7 @@ discard block |
||
| 598 | 598 | * |
| 599 | 599 | * If the folder cache does not exist, it creates a folder. |
| 600 | 600 | * @access private |
| 601 | - * @return object this |
|
| 601 | + * @return PH7Tpl this |
|
| 602 | 602 | */ |
| 603 | 603 | private function checkCacheDir() |
| 604 | 604 | { |
@@ -784,7 +784,7 @@ discard block |
||
| 784 | 784 | /** |
| 785 | 785 | * Get the reserved variables. |
| 786 | 786 | * |
| 787 | - * @return array |
|
| 787 | + * @return string[] |
|
| 788 | 788 | */ |
| 789 | 789 | public function getReservedWords() |
| 790 | 790 | { |
@@ -847,7 +847,7 @@ discard block |
||
| 847 | 847 | * Checks if the template file in the $this->sTemplateDirFile attribute is the main page (layout.tpl). |
| 848 | 848 | * |
| 849 | 849 | * @access private |
| 850 | - * @return boolean |
|
| 850 | + * @return integer |
|
| 851 | 851 | */ |
| 852 | 852 | private function isMainPage() |
| 853 | 853 | { |
@@ -858,7 +858,7 @@ discard block |
||
| 858 | 858 | * Checks if the compile file in the $this->sCompileDirFile attribute is the main page (layout.cpl.php). |
| 859 | 859 | * |
| 860 | 860 | * @access private |
| 861 | - * @return boolean |
|
| 861 | + * @return integer |
|
| 862 | 862 | */ |
| 863 | 863 | final private function isMainCompilePage() |
| 864 | 864 | { |
@@ -869,7 +869,7 @@ discard block |
||
| 869 | 869 | * Checks if the compile file in the $this->sCompileDirFile attribute is the XML (with XSL layout) Sitemap page (mainlayout.xsl.cpl.php). |
| 870 | 870 | * |
| 871 | 871 | * @access private |
| 872 | - * @return boolean |
|
| 872 | + * @return integer |
|
| 873 | 873 | */ |
| 874 | 874 | final private function isXmlSitemapCompilePage() |
| 875 | 875 | { |