From ef4415edf1fad5ffc611190322ae23d1a8e8e79d Mon Sep 17 00:00:00 2001 From: zero-24 Date: Mon, 13 Feb 2017 20:21:37 +0100 Subject: [PATCH 1/2] Script PHP (#306) * add scriptphp * add script PHP with warning about a not supported version * add script PHP with warning about a not supported version * remove debug * add script PHP with warning about a not supported version --- .../manifests/packages/pkg_weblinks.xml | 1 + .../manifests/packages/script.php | 31 +++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 src/administrator/manifests/packages/script.php diff --git a/src/administrator/manifests/packages/pkg_weblinks.xml b/src/administrator/manifests/packages/pkg_weblinks.xml index 11ed3f7..e3f75f7 100644 --- a/src/administrator/manifests/packages/pkg_weblinks.xml +++ b/src/administrator/manifests/packages/pkg_weblinks.xml @@ -13,6 +13,7 @@ ##VERSION## GNU General Public License version 2 or later; see LICENSE.txt PKG_WEBLINKS_XML_DESCRIPTION + script.php com_weblinks.zip diff --git a/src/administrator/manifests/packages/script.php b/src/administrator/manifests/packages/script.php new file mode 100644 index 0000000..cfb312b --- /dev/null +++ b/src/administrator/manifests/packages/script.php @@ -0,0 +1,31 @@ +minimumJoomla = '3.6.3'; + $this->minimumPhp = JOOMLA_MINIMUM_PHP; + } +} From 6c67d8a9fdcbb03dabb96ce18489c1f8370cdcfd Mon Sep 17 00:00:00 2001 From: zero-24 Date: Mon, 13 Feb 2017 20:34:47 +0100 Subject: [PATCH 2/2] make travis happy ``` FILE: ...mla-extensions/weblinks/src/administrator/manifests/packages/script.php -------------------------------------------------------------------------------- FOUND 1 ERROR(S) AFFECTING 1 LINE(S) -------------------------------------------------------------------------------- 22 ERROR Constructor and destructor comments must not have a @return tag -------------------------------------------------------------------------------- UPGRADE TO PHP_CODESNIFFER 2.0 TO FIX ERRORS AUTOMATICALLY ``` --- src/administrator/manifests/packages/script.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/administrator/manifests/packages/script.php b/src/administrator/manifests/packages/script.php index cfb312b..e9a8179 100644 --- a/src/administrator/manifests/packages/script.php +++ b/src/administrator/manifests/packages/script.php @@ -19,8 +19,6 @@ class Pkg_WeblinksInstallerScript extends JInstallerScript /** * Extension script constructor. * - * @return void - * * @since __DEPLOY_VERSION__ */ public function __construct()