upgraded dependencies
This commit is contained in:
3
vendor/sebastian/version/.gitattributes
vendored
3
vendor/sebastian/version/.gitattributes
vendored
@@ -1 +1,4 @@
|
||||
/.github export-ignore
|
||||
/.php_cs.dist export-ignore
|
||||
|
||||
*.php diff=php
|
||||
|
||||
1
vendor/sebastian/version/.gitignore
vendored
1
vendor/sebastian/version/.gitignore
vendored
@@ -1 +1,2 @@
|
||||
/.php_cs.cache
|
||||
/.idea
|
||||
|
||||
66
vendor/sebastian/version/.php_cs
vendored
66
vendor/sebastian/version/.php_cs
vendored
@@ -1,66 +0,0 @@
|
||||
<?php
|
||||
$finder = Symfony\CS\Finder\DefaultFinder::create()
|
||||
->files()
|
||||
->in('src')
|
||||
->name('*.php');
|
||||
|
||||
return Symfony\CS\Config\Config::create()
|
||||
->level(\Symfony\CS\FixerInterface::NONE_LEVEL)
|
||||
->fixers(
|
||||
array(
|
||||
'align_double_arrow',
|
||||
'align_equals',
|
||||
'braces',
|
||||
'concat_with_spaces',
|
||||
'duplicate_semicolon',
|
||||
'elseif',
|
||||
'empty_return',
|
||||
'encoding',
|
||||
'eof_ending',
|
||||
'extra_empty_lines',
|
||||
'function_call_space',
|
||||
'function_declaration',
|
||||
'indentation',
|
||||
'join_function',
|
||||
'line_after_namespace',
|
||||
'linefeed',
|
||||
'list_commas',
|
||||
'lowercase_constants',
|
||||
'lowercase_keywords',
|
||||
'method_argument_space',
|
||||
'multiple_use',
|
||||
'namespace_no_leading_whitespace',
|
||||
'no_blank_lines_after_class_opening',
|
||||
'no_empty_lines_after_phpdocs',
|
||||
'parenthesis',
|
||||
'php_closing_tag',
|
||||
'phpdoc_indent',
|
||||
'phpdoc_no_access',
|
||||
'phpdoc_no_empty_return',
|
||||
'phpdoc_no_package',
|
||||
'phpdoc_params',
|
||||
'phpdoc_scalar',
|
||||
'phpdoc_separation',
|
||||
'phpdoc_to_comment',
|
||||
'phpdoc_trim',
|
||||
'phpdoc_types',
|
||||
'phpdoc_var_without_name',
|
||||
'remove_lines_between_uses',
|
||||
'return',
|
||||
'self_accessor',
|
||||
'short_array_syntax',
|
||||
'short_tag',
|
||||
'single_line_after_imports',
|
||||
'single_quote',
|
||||
'spaces_before_semicolon',
|
||||
'spaces_cast',
|
||||
'ternary_spaces',
|
||||
'trailing_spaces',
|
||||
'trim_array_spaces',
|
||||
'unused_use',
|
||||
'visibility',
|
||||
'whitespacy_lines'
|
||||
)
|
||||
)
|
||||
->finder($finder);
|
||||
|
||||
25
vendor/sebastian/version/ChangeLog.md
vendored
Normal file
25
vendor/sebastian/version/ChangeLog.md
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
# ChangeLog
|
||||
|
||||
All notable changes are documented in this file using the [Keep a CHANGELOG](https://keepachangelog.com/) principles.
|
||||
|
||||
## [3.0.2] - 2020-09-28
|
||||
|
||||
### Changed
|
||||
|
||||
* Changed PHP version constraint in `composer.json` from `^7.3 || ^8.0` to `>=7.3`
|
||||
|
||||
## [3.0.1] - 2020-06-26
|
||||
|
||||
### Added
|
||||
|
||||
* This component is now supported on PHP 8
|
||||
|
||||
## [3.0.0] - 2020-01-21
|
||||
|
||||
### Removed
|
||||
|
||||
* This component is no longer supported on PHP 7.1 and PHP 7.2
|
||||
|
||||
[3.0.2]: https://github.com/sebastianbergmann/version/compare/3.0.1...3.0.2
|
||||
[3.0.1]: https://github.com/sebastianbergmann/version/compare/3.0.0...3.0.1
|
||||
[3.0.0]: https://github.com/sebastianbergmann/version/compare/2.0.1...3.0.0
|
||||
2
vendor/sebastian/version/LICENSE
vendored
2
vendor/sebastian/version/LICENSE
vendored
@@ -1,6 +1,6 @@
|
||||
Version
|
||||
|
||||
Copyright (c) 2013-2015, Sebastian Bergmann <sebastian@phpunit.de>.
|
||||
Copyright (c) 2013-2020, Sebastian Bergmann <sebastian@phpunit.de>.
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
|
||||
12
vendor/sebastian/version/composer.json
vendored
12
vendor/sebastian/version/composer.json
vendored
@@ -13,8 +13,16 @@
|
||||
"support": {
|
||||
"issues": "https://github.com/sebastianbergmann/version/issues"
|
||||
},
|
||||
"config": {
|
||||
"platform": {
|
||||
"php": "7.3.0"
|
||||
},
|
||||
"optimize-autoloader": true,
|
||||
"sort-packages": true
|
||||
},
|
||||
"prefer-stable": true,
|
||||
"require": {
|
||||
"php": ">=5.6"
|
||||
"php": ">=7.3"
|
||||
},
|
||||
"autoload": {
|
||||
"classmap": [
|
||||
@@ -23,7 +31,7 @@
|
||||
},
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
"dev-master": "2.0.x-dev"
|
||||
"dev-master": "3.0-dev"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
44
vendor/sebastian/version/src/Version.php
vendored
44
vendor/sebastian/version/src/Version.php
vendored
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
/*
|
||||
* This file is part of the Version package.
|
||||
* This file is part of sebastian/version.
|
||||
*
|
||||
* (c) Sebastian Bergmann <sebastian@phpunit.de>
|
||||
*
|
||||
@@ -10,10 +10,7 @@
|
||||
|
||||
namespace SebastianBergmann;
|
||||
|
||||
/**
|
||||
* @since Class available since Release 1.0.0
|
||||
*/
|
||||
class Version
|
||||
final class Version
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
@@ -30,23 +27,16 @@ class Version
|
||||
*/
|
||||
private $version;
|
||||
|
||||
/**
|
||||
* @param string $release
|
||||
* @param string $path
|
||||
*/
|
||||
public function __construct($release, $path)
|
||||
public function __construct(string $release, string $path)
|
||||
{
|
||||
$this->release = $release;
|
||||
$this->path = $path;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getVersion()
|
||||
public function getVersion(): string
|
||||
{
|
||||
if ($this->version === null) {
|
||||
if (count(explode('.', $this->release)) == 3) {
|
||||
if (\substr_count($this->release, '.') + 1 === 3) {
|
||||
$this->version = $this->release;
|
||||
} else {
|
||||
$this->version = $this->release . '-dev';
|
||||
@@ -55,12 +45,12 @@ class Version
|
||||
$git = $this->getGitInformation($this->path);
|
||||
|
||||
if ($git) {
|
||||
if (count(explode('.', $this->release)) == 3) {
|
||||
if (\substr_count($this->release, '.') + 1 === 3) {
|
||||
$this->version = $git;
|
||||
} else {
|
||||
$git = explode('-', $git);
|
||||
$git = \explode('-', $git);
|
||||
|
||||
$this->version = $this->release . '-' . end($git);
|
||||
$this->version = $this->release . '-' . \end($git);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -69,17 +59,15 @@ class Version
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $path
|
||||
*
|
||||
* @return bool|string
|
||||
*/
|
||||
private function getGitInformation($path)
|
||||
private function getGitInformation(string $path)
|
||||
{
|
||||
if (!is_dir($path . DIRECTORY_SEPARATOR . '.git')) {
|
||||
if (!\is_dir($path . DIRECTORY_SEPARATOR . '.git')) {
|
||||
return false;
|
||||
}
|
||||
|
||||
$process = proc_open(
|
||||
$process = \proc_open(
|
||||
'git describe --tags',
|
||||
[
|
||||
1 => ['pipe', 'w'],
|
||||
@@ -89,16 +77,16 @@ class Version
|
||||
$path
|
||||
);
|
||||
|
||||
if (!is_resource($process)) {
|
||||
if (!\is_resource($process)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
$result = trim(stream_get_contents($pipes[1]));
|
||||
$result = \trim(\stream_get_contents($pipes[1]));
|
||||
|
||||
fclose($pipes[1]);
|
||||
fclose($pipes[2]);
|
||||
\fclose($pipes[1]);
|
||||
\fclose($pipes[2]);
|
||||
|
||||
$returnCode = proc_close($process);
|
||||
$returnCode = \proc_close($process);
|
||||
|
||||
if ($returnCode !== 0) {
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user