@@ -24,69 +24,73 @@ class DocumentationLinks
2424{
2525 public const DEV_DOC_BASE_VERSION = '8 ' ;
2626
27- /** @return string */
28- public static function getDevDocUrl (string $ prestashopVersion = self ::DEV_DOC_BASE_VERSION )
27+ public static function getDevDocUrl (string $ prestashopVersion = self ::DEV_DOC_BASE_VERSION ): string
2928 {
3029 return "https://devdocs.prestashop-project.org/ {$ prestashopVersion }" ;
3130 }
3231
33- /** @return string */
34- public static function getDevDocUpToDateUrl (string $ prestashopVersion = self ::DEV_DOC_BASE_VERSION )
32+ public static function getDevDocUpToDateUrl (string $ prestashopVersion = self ::DEV_DOC_BASE_VERSION ): string
3533 {
3634 return self ::getDevDocUrl ($ prestashopVersion ) . '/basics/keeping-up-to-date ' ;
3735 }
3836
39- /** @return string */
40- public static function getDevDocUpdateAssistantUrl (string $ prestashopVersion = self ::DEV_DOC_BASE_VERSION )
37+ public static function getDevDocUpdateAssistantUrl (string $ prestashopVersion = self ::DEV_DOC_BASE_VERSION ): string
4138 {
4239 return self ::getDevDocUpToDateUrl ($ prestashopVersion ) . '/update ' ;
4340 }
4441
45- /** @return string */
46- public static function getDevDocUpdateAssistantCliUrl (string $ prestashopVersion = self ::DEV_DOC_BASE_VERSION )
42+ public static function getDevDocUpdateAssistantCliUrl (string $ prestashopVersion = self ::DEV_DOC_BASE_VERSION ): string
4743 {
4844 return self ::getDevDocUpdateAssistantUrl ($ prestashopVersion ) . '/update-from-the-cli ' ;
4945 }
5046
51- /** @return string */
52- public static function getDevDocUpdateAssistantWebUrl (string $ prestashopVersion = self ::DEV_DOC_BASE_VERSION )
47+ public static function getDevDocUpdateAssistantWebUrl (string $ prestashopVersion = self ::DEV_DOC_BASE_VERSION ): string
5348 {
5449 return self ::getDevDocUpdateAssistantUrl ($ prestashopVersion ) . '/update-from-the-back-office ' ;
5550 }
5651
57- /** @return string */
58- public static function getDevDocUpdateAssistantPostUpdateUrl (string $ prestashopVersion = self ::DEV_DOC_BASE_VERSION )
52+ public static function getDevDocUpdateAssistantPostUpdateUrl (string $ prestashopVersion = self ::DEV_DOC_BASE_VERSION ): string
5953 {
6054 return self ::getDevDocUpdateAssistantUrl ($ prestashopVersion ) . '/post-update-checklist ' ;
6155 }
6256
63- /** @return string */
64- public static function getDevDocUpdateAssistantPostRestoreUrl (string $ prestashopVersion = self ::DEV_DOC_BASE_VERSION )
57+ public static function getDevDocUpdateAssistantPostRestoreUrl (string $ prestashopVersion = self ::DEV_DOC_BASE_VERSION ): string
6558 {
6659 return self ::getDevDocUpdateAssistantUrl ($ prestashopVersion ) . '/post-restore-checklist ' ;
6760 }
6861
69- /** @return string */
70- public static function getPrestashopProjectUrl ()
62+ public static function getPrestashopProjectUrl (): string
7163 {
7264 return 'https://www.prestashop-project.org ' ;
7365 }
7466
75- /** @return string */
76- public static function getPrestashopProjectDataTransparencyUrl ()
67+ public static function getPrestashopProjectDataTransparencyUrl (): string
7768 {
7869 return self ::getPrestashopProjectUrl () . '/data-transparency ' ;
7970 }
8071
81- /** @return string */
82- public static function getFindSupportUrl ()
72+ public static function getFindSupportUrl (): string
8373 {
8474 return 'https://www.prestashop-project.org/support/ ' ;
8575 }
8676
87- /** @return string */
88- public static function getPrestashopReleasesUrl ()
77+ public static function getPrestashopReleasesUrl (): string
8978 {
9079 return 'https://build.prestashop-project.org/tag/releases/ ' ;
9180 }
81+
82+ public static function getRepositoryUrl (): string
83+ {
84+ return 'https://github.com/PrestaShop/autoupgrade ' ;
85+ }
86+
87+ public static function getDiscussionsAboutKnownIssuesUrl (?string $ impactedVersion = null ): string
88+ {
89+ $ discussionsQuery = ['is:open ' ];
90+ if ($ impactedVersion ) {
91+ $ discussionsQuery [] = 'label:"Impacts: ' . $ impactedVersion . '" ' ;
92+ }
93+
94+ return self ::getRepositoryUrl () . '/discussions/categories/known-issues? ' . http_build_query (['discussions_q ' => implode (' ' , $ discussionsQuery )]);
95+ }
9296}
0 commit comments