Commit 6a70e9f4 authored by jianghaiming's avatar jianghaiming

update:set

parent 600462a9
...@@ -173,7 +173,7 @@ class GetImage ...@@ -173,7 +173,7 @@ class GetImage
// 底部二维码 // 底部二维码
$qr = new QR($qr_string); $qr = new QR($qr_string);
$qr_size = 121; $qr_size = 110;
$qr->setSize($qr_size); $qr->setSize($qr_size);
$qr->setRoundBlockSize(QrCode::ROUND_BLOCK_SIZE_MODE_MARGIN); $qr->setRoundBlockSize(QrCode::ROUND_BLOCK_SIZE_MODE_MARGIN);
$qr_string = $qr->get(); $qr_string = $qr->get();
......
...@@ -41,7 +41,7 @@ class FrequencyLockUtil ...@@ -41,7 +41,7 @@ class FrequencyLockUtil
if ($current_times == 1) { if ($current_times == 1) {
self::$handler->expire($key, $expire); self::$handler->expire($key, $expire);
} }
return ($current_times > $times) ? false : true; return ($current_times > $times) ? true : false;
} }
/** /**
......
...@@ -32,7 +32,7 @@ private static $installed = array ( ...@@ -32,7 +32,7 @@ private static $installed = array (
'aliases' => 'aliases' =>
array ( array (
), ),
'reference' => 'e7fa0b7dd9584f3f9c8b489b4351a6b4858f62ea', 'reference' => '600462a968b1b24b7361ad9d08540324e4e92c2b',
'name' => 'yidian/yaf_demo', 'name' => 'yidian/yaf_demo',
), ),
'versions' => 'versions' =>
...@@ -45,7 +45,7 @@ private static $installed = array ( ...@@ -45,7 +45,7 @@ private static $installed = array (
array ( array (
0 => '9999999-dev', 0 => '9999999-dev',
), ),
'reference' => '03c3e30e32f69eb439eb9e116adc0da98538c11b', 'reference' => '8e0eab96df9b2fea5fbba77fda27a0f60d2d0858',
), ),
'api/php_utils' => 'api/php_utils' =>
array ( array (
...@@ -55,7 +55,7 @@ private static $installed = array ( ...@@ -55,7 +55,7 @@ private static $installed = array (
array ( array (
0 => '9999999-dev', 0 => '9999999-dev',
), ),
'reference' => '3651661da73b73fd8c5a02db0667f3937f4875f8', 'reference' => 'b9d4473aeda808fa9ef25368bb7118b057741b62',
), ),
'bacon/bacon-qr-code' => 'bacon/bacon-qr-code' =>
array ( array (
...@@ -307,7 +307,7 @@ private static $installed = array ( ...@@ -307,7 +307,7 @@ private static $installed = array (
'aliases' => 'aliases' =>
array ( array (
), ),
'reference' => '13c33f29a76bd99976ba7ee20297fa16d5a53a59', 'reference' => 'cb1aad06e7733a116f49033b1b3048a08e59ddd2',
), ),
'symfony/property-info' => 'symfony/property-info' =>
array ( array (
...@@ -316,7 +316,7 @@ private static $installed = array ( ...@@ -316,7 +316,7 @@ private static $installed = array (
'aliases' => 'aliases' =>
array ( array (
), ),
'reference' => '718f093ae4cac054db2bbb39ebf86fd898583ac8', 'reference' => '36f5c26e3dbf6873b61b593cd86fe4616153d239',
), ),
'symfony/string' => 'symfony/string' =>
array ( array (
...@@ -334,7 +334,7 @@ private static $installed = array ( ...@@ -334,7 +334,7 @@ private static $installed = array (
'aliases' => 'aliases' =>
array ( array (
), ),
'reference' => 'e7fa0b7dd9584f3f9c8b489b4351a6b4858f62ea', 'reference' => '600462a968b1b24b7361ad9d08540324e4e92c2b',
), ),
), ),
); );
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
"source": { "source": {
"type": "git", "type": "git",
"url": "https://git.yidian-inc.com:8021/bp/php_services.git", "url": "https://git.yidian-inc.com:8021/bp/php_services.git",
"reference": "03c3e30e32f69eb439eb9e116adc0da98538c11b" "reference": "8e0eab96df9b2fea5fbba77fda27a0f60d2d0858"
}, },
"require": { "require": {
"api/php_utils": "dev-master", "api/php_utils": "dev-master",
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
"perftools/php-profiler": "^0.18.0", "perftools/php-profiler": "^0.18.0",
"php": "7.2.*" "php": "7.2.*"
}, },
"time": "2021-07-17T15:33:26+00:00", "time": "2021-07-19T11:36:47+00:00",
"default-branch": true, "default-branch": true,
"type": "library", "type": "library",
"installation-source": "source", "installation-source": "source",
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
"source": { "source": {
"type": "git", "type": "git",
"url": "https://git.yidian-inc.com:8021/bp/php_utils.git", "url": "https://git.yidian-inc.com:8021/bp/php_utils.git",
"reference": "3651661da73b73fd8c5a02db0667f3937f4875f8" "reference": "b9d4473aeda808fa9ef25368bb7118b057741b62"
}, },
"require": { "require": {
"elasticsearch/elasticsearch": "~7.0", "elasticsearch/elasticsearch": "~7.0",
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
"mongodb/mongodb": "1.4.3", "mongodb/mongodb": "1.4.3",
"php": "7.2.*" "php": "7.2.*"
}, },
"time": "2021-07-14T14:21:31+00:00", "time": "2021-07-15T13:56:09+00:00",
"default-branch": true, "default-branch": true,
"type": "library", "type": "library",
"installation-source": "source", "installation-source": "source",
...@@ -1771,12 +1771,12 @@ ...@@ -1771,12 +1771,12 @@
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/property-access.git", "url": "https://github.com/symfony/property-access.git",
"reference": "13c33f29a76bd99976ba7ee20297fa16d5a53a59" "reference": "cb1aad06e7733a116f49033b1b3048a08e59ddd2"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symfony/property-access/zipball/13c33f29a76bd99976ba7ee20297fa16d5a53a59", "url": "https://api.github.com/repos/symfony/property-access/zipball/cb1aad06e7733a116f49033b1b3048a08e59ddd2",
"reference": "13c33f29a76bd99976ba7ee20297fa16d5a53a59", "reference": "cb1aad06e7733a116f49033b1b3048a08e59ddd2",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
...@@ -1791,7 +1791,7 @@ ...@@ -1791,7 +1791,7 @@
"suggest": { "suggest": {
"psr/cache-implementation": "To cache access methods." "psr/cache-implementation": "To cache access methods."
}, },
"time": "2021-07-03T09:16:21+00:00", "time": "2021-07-17T18:34:10+00:00",
"type": "library", "type": "library",
"installation-source": "dist", "installation-source": "dist",
"autoload": { "autoload": {
...@@ -1855,12 +1855,12 @@ ...@@ -1855,12 +1855,12 @@
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/property-info.git", "url": "https://github.com/symfony/property-info.git",
"reference": "718f093ae4cac054db2bbb39ebf86fd898583ac8" "reference": "36f5c26e3dbf6873b61b593cd86fe4616153d239"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symfony/property-info/zipball/718f093ae4cac054db2bbb39ebf86fd898583ac8", "url": "https://api.github.com/repos/symfony/property-info/zipball/36f5c26e3dbf6873b61b593cd86fe4616153d239",
"reference": "718f093ae4cac054db2bbb39ebf86fd898583ac8", "reference": "36f5c26e3dbf6873b61b593cd86fe4616153d239",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
...@@ -1887,7 +1887,7 @@ ...@@ -1887,7 +1887,7 @@
"symfony/doctrine-bridge": "To use Doctrine metadata", "symfony/doctrine-bridge": "To use Doctrine metadata",
"symfony/serializer": "To use Serializer metadata" "symfony/serializer": "To use Serializer metadata"
}, },
"time": "2021-07-03T09:16:21+00:00", "time": "2021-07-18T16:31:21+00:00",
"type": "library", "type": "library",
"installation-source": "dist", "installation-source": "dist",
"autoload": { "autoload": {
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
'aliases' => 'aliases' =>
array ( array (
), ),
'reference' => 'e7fa0b7dd9584f3f9c8b489b4351a6b4858f62ea', 'reference' => '600462a968b1b24b7361ad9d08540324e4e92c2b',
'name' => 'yidian/yaf_demo', 'name' => 'yidian/yaf_demo',
), ),
'versions' => 'versions' =>
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
array ( array (
0 => '9999999-dev', 0 => '9999999-dev',
), ),
'reference' => '03c3e30e32f69eb439eb9e116adc0da98538c11b', 'reference' => '8e0eab96df9b2fea5fbba77fda27a0f60d2d0858',
), ),
'api/php_utils' => 'api/php_utils' =>
array ( array (
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
array ( array (
0 => '9999999-dev', 0 => '9999999-dev',
), ),
'reference' => '3651661da73b73fd8c5a02db0667f3937f4875f8', 'reference' => 'b9d4473aeda808fa9ef25368bb7118b057741b62',
), ),
'bacon/bacon-qr-code' => 'bacon/bacon-qr-code' =>
array ( array (
...@@ -281,7 +281,7 @@ ...@@ -281,7 +281,7 @@
'aliases' => 'aliases' =>
array ( array (
), ),
'reference' => '13c33f29a76bd99976ba7ee20297fa16d5a53a59', 'reference' => 'cb1aad06e7733a116f49033b1b3048a08e59ddd2',
), ),
'symfony/property-info' => 'symfony/property-info' =>
array ( array (
...@@ -290,7 +290,7 @@ ...@@ -290,7 +290,7 @@
'aliases' => 'aliases' =>
array ( array (
), ),
'reference' => '718f093ae4cac054db2bbb39ebf86fd898583ac8', 'reference' => '36f5c26e3dbf6873b61b593cd86fe4616153d239',
), ),
'symfony/string' => 'symfony/string' =>
array ( array (
...@@ -308,7 +308,7 @@ ...@@ -308,7 +308,7 @@
'aliases' => 'aliases' =>
array ( array (
), ),
'reference' => 'e7fa0b7dd9584f3f9c8b489b4351a6b4858f62ea', 'reference' => '600462a968b1b24b7361ad9d08540324e4e92c2b',
), ),
), ),
); );
...@@ -630,7 +630,7 @@ class PropertyAccessor implements PropertyAccessorInterface ...@@ -630,7 +630,7 @@ class PropertyAccessor implements PropertyAccessorInterface
private function getWriteInfo(string $class, string $property, $value): PropertyWriteInfo private function getWriteInfo(string $class, string $property, $value): PropertyWriteInfo
{ {
$useAdderAndRemover = \is_array($value) || $value instanceof \Traversable; $useAdderAndRemover = is_iterable($value);
$key = str_replace('\\', '.', $class).'..'.$property.'..'.(int) $useAdderAndRemover; $key = str_replace('\\', '.', $class).'..'.$property.'..'.(int) $useAdderAndRemover;
if (isset($this->writePropertyCache[$key])) { if (isset($this->writePropertyCache[$key])) {
......
...@@ -66,9 +66,9 @@ class PhpDocExtractor implements PropertyDescriptionExtractorInterface, Property ...@@ -66,9 +66,9 @@ class PhpDocExtractor implements PropertyDescriptionExtractorInterface, Property
$this->docBlockFactory = $docBlockFactory ?: DocBlockFactory::createInstance(); $this->docBlockFactory = $docBlockFactory ?: DocBlockFactory::createInstance();
$this->contextFactory = new ContextFactory(); $this->contextFactory = new ContextFactory();
$this->phpDocTypeHelper = new PhpDocTypeHelper(); $this->phpDocTypeHelper = new PhpDocTypeHelper();
$this->mutatorPrefixes = null !== $mutatorPrefixes ? $mutatorPrefixes : ReflectionExtractor::$defaultMutatorPrefixes; $this->mutatorPrefixes = $mutatorPrefixes ?? ReflectionExtractor::$defaultMutatorPrefixes;
$this->accessorPrefixes = null !== $accessorPrefixes ? $accessorPrefixes : ReflectionExtractor::$defaultAccessorPrefixes; $this->accessorPrefixes = $accessorPrefixes ?? ReflectionExtractor::$defaultAccessorPrefixes;
$this->arrayMutatorPrefixes = null !== $arrayMutatorPrefixes ? $arrayMutatorPrefixes : ReflectionExtractor::$defaultArrayMutatorPrefixes; $this->arrayMutatorPrefixes = $arrayMutatorPrefixes ?? ReflectionExtractor::$defaultArrayMutatorPrefixes;
} }
/** /**
......
...@@ -85,9 +85,9 @@ class ReflectionExtractor implements PropertyListExtractorInterface, PropertyTyp ...@@ -85,9 +85,9 @@ class ReflectionExtractor implements PropertyListExtractorInterface, PropertyTyp
*/ */
public function __construct(array $mutatorPrefixes = null, array $accessorPrefixes = null, array $arrayMutatorPrefixes = null, bool $enableConstructorExtraction = true, int $accessFlags = self::ALLOW_PUBLIC, InflectorInterface $inflector = null, int $magicMethodsFlags = self::ALLOW_MAGIC_GET | self::ALLOW_MAGIC_SET) public function __construct(array $mutatorPrefixes = null, array $accessorPrefixes = null, array $arrayMutatorPrefixes = null, bool $enableConstructorExtraction = true, int $accessFlags = self::ALLOW_PUBLIC, InflectorInterface $inflector = null, int $magicMethodsFlags = self::ALLOW_MAGIC_GET | self::ALLOW_MAGIC_SET)
{ {
$this->mutatorPrefixes = null !== $mutatorPrefixes ? $mutatorPrefixes : self::$defaultMutatorPrefixes; $this->mutatorPrefixes = $mutatorPrefixes ?? self::$defaultMutatorPrefixes;
$this->accessorPrefixes = null !== $accessorPrefixes ? $accessorPrefixes : self::$defaultAccessorPrefixes; $this->accessorPrefixes = $accessorPrefixes ?? self::$defaultAccessorPrefixes;
$this->arrayMutatorPrefixes = null !== $arrayMutatorPrefixes ? $arrayMutatorPrefixes : self::$defaultArrayMutatorPrefixes; $this->arrayMutatorPrefixes = $arrayMutatorPrefixes ?? self::$defaultArrayMutatorPrefixes;
$this->enableConstructorExtraction = $enableConstructorExtraction; $this->enableConstructorExtraction = $enableConstructorExtraction;
$this->methodReflectionFlags = $this->getMethodsFlags($accessFlags); $this->methodReflectionFlags = $this->getMethodsFlags($accessFlags);
$this->propertyReflectionFlags = $this->getPropertyFlags($accessFlags); $this->propertyReflectionFlags = $this->getPropertyFlags($accessFlags);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment