aboutsummaryrefslogtreecommitdiff
path: root/lib/Minz/View.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2022-01-01 11:26:56 +0100
committerGravatar GitHub <noreply@github.com> 2022-01-01 11:26:56 +0100
commit3f6aa42b817145a3b00f4d615f87728b55c4413a (patch)
treee5b31941b0acc3a2f4c47e4846afcfe987b9852f /lib/Minz/View.php
parent77e9877316fcfacb26799afdf32d94c8411da80e (diff)
Fix most PHPDocs errors (#4107)
Contributes to https://github.com/FreshRSS/FreshRSS/issues/4103 https://phpstan.org/writing-php-code/phpdoc-types
Diffstat (limited to 'lib/Minz/View.php')
-rw-r--r--lib/Minz/View.php18
1 files changed, 9 insertions, 9 deletions
diff --git a/lib/Minz/View.php b/lib/Minz/View.php
index c208621a4..bc38b8783 100644
--- a/lib/Minz/View.php
+++ b/lib/Minz/View.php
@@ -54,7 +54,7 @@ class Minz_View {
*
* New pathnames will be added at the beginning of the list.
*
- * @param $base_pathname the new base pathname.
+ * @param string $base_pathname the new base pathname.
*/
public static function addBasePathname($base_pathname) {
array_unshift(self::$base_pathnames, $base_pathname);
@@ -76,7 +76,7 @@ class Minz_View {
*
* The file is searched inside list of $base_pathnames.
*
- * @param $filename the name of the file to include.
+ * @param string $filename the name of the file to include.
* @return boolean true if the file has been included, false else.
*/
private function includeFile($filename) {
@@ -114,7 +114,7 @@ class Minz_View {
/**
* Ajoute un élément du layout
- * @param $part l'élément partial à ajouter
+ * @param string $part l'élément partial à ajouter
*/
public function partial ($part) {
$fic_partial = self::LAYOUT_PATH_NAME . '/' . $part . '.phtml';
@@ -125,7 +125,7 @@ class Minz_View {
/**
* Affiche un élément graphique situé dans APP./views/helpers/
- * @param $helper l'élément à afficher
+ * @param string $helper l'élément à afficher
*/
public function renderHelper ($helper) {
$fic_helper = '/views/helpers/' . $helper . '.phtml';
@@ -136,7 +136,7 @@ class Minz_View {
/**
* Retourne renderHelper() dans une chaîne
- * @param $helper l'élément à traîter
+ * @param string $helper l'élément à traîter
*/
public function helperToString($helper) {
ob_start();
@@ -146,7 +146,7 @@ class Minz_View {
/**
* Choose the current view layout.
- * @param $layout the layout name to use, false to use no layouts.
+ * @param string $layout the layout name to use, false to use no layouts.
*/
public function _layout($layout) {
if ($layout) {
@@ -157,9 +157,9 @@ class Minz_View {
}
/**
- * [deprecated] Choose if we want to use the layout or not.
- * Please use the `_layout` function instead.
- * @param $use true if we want to use the layout, false else
+ * Choose if we want to use the layout or not.
+ * @deprecated Please use the `_layout` function instead.
+ * @param bool $use true if we want to use the layout, false else
*/
public function _useLayout ($use) {
Minz_Log::warning('Minz_View::_useLayout is deprecated, it will be removed in a future version. Please use Minz_View::_layout instead.');