From 03299ff075236be27be356498d6c64def973fe41 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Sun, 10 Jan 2016 20:34:53 +0000 Subject: [PATCH] Suggest https in docs where it makes sense, closes #4056 --- src/Composer/Command/ConfigCommand.php | 4 ++-- src/Composer/Command/CreateProjectCommand.php | 2 +- src/Composer/Util/ConfigValidator.php | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Composer/Command/ConfigCommand.php b/src/Composer/Command/ConfigCommand.php index 33ce327d3..cdc34c23c 100644 --- a/src/Composer/Command/ConfigCommand.php +++ b/src/Composer/Command/ConfigCommand.php @@ -90,7 +90,7 @@ To edit the global config.json file: To add a repository: - %command.full_name% repositories.foo vcs http://bar.com + %command.full_name% repositories.foo vcs https://bar.com To remove a repository (repo is a short alias for repositories): @@ -433,7 +433,7 @@ EOT } } - throw new \RuntimeException('You must pass the type and a url. Example: php composer.phar config repositories.foo vcs http://bar.com'); + throw new \RuntimeException('You must pass the type and a url. Example: php composer.phar config repositories.foo vcs https://bar.com'); } // handle platform diff --git a/src/Composer/Command/CreateProjectCommand.php b/src/Composer/Command/CreateProjectCommand.php index 1d6286445..939e0e917 100644 --- a/src/Composer/Command/CreateProjectCommand.php +++ b/src/Composer/Command/CreateProjectCommand.php @@ -90,7 +90,7 @@ To setup a developer workable version you should create the project using the so controlled code by appending the '--prefer-source' flag. To install a package from another repository than the default one you -can pass the '--repository-url=http://myrepository.org' flag. +can pass the '--repository-url=https://myrepository.org' flag. EOT ) diff --git a/src/Composer/Util/ConfigValidator.php b/src/Composer/Util/ConfigValidator.php index f4a876cfe..b14ff15ec 100644 --- a/src/Composer/Util/ConfigValidator.php +++ b/src/Composer/Util/ConfigValidator.php @@ -86,7 +86,7 @@ class ConfigValidator $licenseValidator = new SpdxLicenses(); if ('proprietary' !== $manifest['license'] && array() !== $manifest['license'] && !$licenseValidator->validate($manifest['license'])) { $warnings[] = sprintf( - 'License %s is not a valid SPDX license identifier, see http://www.spdx.org/licenses/ if you use an open license.' + 'License %s is not a valid SPDX license identifier, see https://spdx.org/licenses/ if you use an open license.' ."\nIf the software is closed-source, you may use \"proprietary\" as license.", json_encode($manifest['license']) ); @@ -111,7 +111,7 @@ class ConfigValidator } if (!empty($manifest['type']) && $manifest['type'] == 'composer-installer') { - $warnings[] = "The package type 'composer-installer' is deprecated. Please distribute your custom installers as plugins from now on. See http://getcomposer.org/doc/articles/plugins.md for plugin documentation."; + $warnings[] = "The package type 'composer-installer' is deprecated. Please distribute your custom installers as plugins from now on. See https://getcomposer.org/doc/articles/plugins.md for plugin documentation."; } // check for require-dev overrides