Skip to content

Commit

Permalink
add phpdoc (#32138)
Browse files Browse the repository at this point in the history
* add phpdoc

* add phpdoc
  • Loading branch information
frederic34 authored Nov 29, 2024
1 parent c0b4228 commit 9874e67
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 63 deletions.
54 changes: 0 additions & 54 deletions build/phpstan/phpstan-baseline.neon
Original file line number Diff line number Diff line change
Expand Up @@ -17544,60 +17544,6 @@ parameters:
count: 1
path: ../../htdocs/core/tpl/originproductline.tpl.php

-
message: '#^Variable \$db might not be defined\.$#'
identifier: variable.undefined
count: 1
path: ../../htdocs/core/tpl/passwordforgotten.tpl.php

-
message: '#^Variable \$disabled might not be defined\.$#'
identifier: variable.undefined
count: 3
path: ../../htdocs/core/tpl/passwordforgotten.tpl.php

-
message: '#^Variable \$dol_url_root might not be defined\.$#'
identifier: variable.undefined
count: 1
path: ../../htdocs/core/tpl/passwordforgotten.tpl.php

-
message: '#^Variable \$focus_element might not be defined\.$#'
identifier: variable.undefined
count: 1
path: ../../htdocs/core/tpl/passwordforgotten.tpl.php

-
message: '#^Variable \$langs might not be defined\.$#'
identifier: variable.undefined
count: 10
path: ../../htdocs/core/tpl/passwordforgotten.tpl.php

-
message: '#^Variable \$mode might not be defined\.$#'
identifier: variable.undefined
count: 2
path: ../../htdocs/core/tpl/passwordforgotten.tpl.php

-
message: '#^Variable \$urllogo might not be defined\.$#'
identifier: variable.undefined
count: 1
path: ../../htdocs/core/tpl/passwordforgotten.tpl.php

-
message: '#^Variable \$user might not be defined\.$#'
identifier: variable.undefined
count: 1
path: ../../htdocs/core/tpl/passwordforgotten.tpl.php

-
message: '#^Variable \$username might not be defined\.$#'
identifier: variable.undefined
count: 1
path: ../../htdocs/core/tpl/passwordforgotten.tpl.php

-
message: '#^Variable \$db might not be defined\.$#'
identifier: variable.undefined
Expand Down
27 changes: 18 additions & 9 deletions htdocs/core/tpl/passwordforgotten.tpl.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,24 @@
if (!defined('NOBROWSERNOTIF')) {
define('NOBROWSERNOTIF', 1);
}

/**
* @var Conf $conf
* @var DoliDB $db
* @var HookManager $hookmanager
* @var Translate $langs
*
* @var string $action
* @var string $captcha
* @var string $disabled
* @var string $dol_url_root
* @var string $focus_element
* @var string $mode
* @var string $message
* @var string $title
* @var string $urllogo
* @var string $user
* @var string $username
*/
// Protection to avoid direct call of template
if (empty($conf) || !is_object($conf)) {
print "Error, template page can't be called as URL";
Expand All @@ -39,14 +56,6 @@

require_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php';

/**
* @var HookManager $hookmanager
* @var string $action
* @var string $captcha
* @var string $message
* @var string $title
*/


/*
* View
Expand Down

0 comments on commit 9874e67

Please sign in to comment.