Commit 6a70e9f4 authored by jianghaiming's avatar jianghaiming

update:set

parent 600462a9
......@@ -173,7 +173,7 @@ class GetImage
// 底部二维码
$qr = new QR($qr_string);
$qr_size = 121;
$qr_size = 110;
$qr->setSize($qr_size);
$qr->setRoundBlockSize(QrCode::ROUND_BLOCK_SIZE_MODE_MARGIN);
$qr_string = $qr->get();
......
......@@ -41,7 +41,7 @@ class FrequencyLockUtil
if ($current_times == 1) {
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 (
'aliases' =>
array (
),
'reference' => 'e7fa0b7dd9584f3f9c8b489b4351a6b4858f62ea',
'reference' => '600462a968b1b24b7361ad9d08540324e4e92c2b',
'name' => 'yidian/yaf_demo',
),
'versions' =>
......@@ -45,7 +45,7 @@ private static $installed = array (
array (
0 => '9999999-dev',
),
'reference' => '03c3e30e32f69eb439eb9e116adc0da98538c11b',
'reference' => '8e0eab96df9b2fea5fbba77fda27a0f60d2d0858',
),
'api/php_utils' =>
array (
......@@ -55,7 +55,7 @@ private static $installed = array (
array (
0 => '9999999-dev',
),
'reference' => '3651661da73b73fd8c5a02db0667f3937f4875f8',
'reference' => 'b9d4473aeda808fa9ef25368bb7118b057741b62',
),
'bacon/bacon-qr-code' =>
array (
......@@ -307,7 +307,7 @@ private static $installed = array (
'aliases' =>
array (
),
'reference' => '13c33f29a76bd99976ba7ee20297fa16d5a53a59',
'reference' => 'cb1aad06e7733a116f49033b1b3048a08e59ddd2',
),
'symfony/property-info' =>
array (
......@@ -316,7 +316,7 @@ private static $installed = array (
'aliases' =>
array (
),
'reference' => '718f093ae4cac054db2bbb39ebf86fd898583ac8',
'reference' => '36f5c26e3dbf6873b61b593cd86fe4616153d239',
),
'symfony/string' =>
array (
......@@ -334,7 +334,7 @@ private static $installed = array (
'aliases' =>
array (
),
'reference' => 'e7fa0b7dd9584f3f9c8b489b4351a6b4858f62ea',
'reference' => '600462a968b1b24b7361ad9d08540324e4e92c2b',
),
),
);
......
......@@ -7,7 +7,7 @@
"source": {
"type": "git",
"url": "https://git.yidian-inc.com:8021/bp/php_services.git",
"reference": "03c3e30e32f69eb439eb9e116adc0da98538c11b"
"reference": "8e0eab96df9b2fea5fbba77fda27a0f60d2d0858"
},
"require": {
"api/php_utils": "dev-master",
......@@ -15,7 +15,7 @@
"perftools/php-profiler": "^0.18.0",
"php": "7.2.*"
},
"time": "2021-07-17T15:33:26+00:00",
"time": "2021-07-19T11:36:47+00:00",
"default-branch": true,
"type": "library",
"installation-source": "source",
......@@ -34,7 +34,7 @@
"source": {
"type": "git",
"url": "https://git.yidian-inc.com:8021/bp/php_utils.git",
"reference": "3651661da73b73fd8c5a02db0667f3937f4875f8"
"reference": "b9d4473aeda808fa9ef25368bb7118b057741b62"
},
"require": {
"elasticsearch/elasticsearch": "~7.0",
......@@ -46,7 +46,7 @@
"mongodb/mongodb": "1.4.3",
"php": "7.2.*"
},
"time": "2021-07-14T14:21:31+00:00",
"time": "2021-07-15T13:56:09+00:00",
"default-branch": true,
"type": "library",
"installation-source": "source",
......@@ -1771,12 +1771,12 @@
"source": {
"type": "git",
"url": "https://github.com/symfony/property-access.git",
"reference": "13c33f29a76bd99976ba7ee20297fa16d5a53a59"
"reference": "cb1aad06e7733a116f49033b1b3048a08e59ddd2"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/property-access/zipball/13c33f29a76bd99976ba7ee20297fa16d5a53a59",
"reference": "13c33f29a76bd99976ba7ee20297fa16d5a53a59",
"url": "https://api.github.com/repos/symfony/property-access/zipball/cb1aad06e7733a116f49033b1b3048a08e59ddd2",
"reference": "cb1aad06e7733a116f49033b1b3048a08e59ddd2",
"shasum": ""
},
"require": {
......@@ -1791,7 +1791,7 @@
"suggest": {
"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",
"installation-source": "dist",
"autoload": {
......@@ -1855,12 +1855,12 @@
"source": {
"type": "git",
"url": "https://github.com/symfony/property-info.git",
"reference": "718f093ae4cac054db2bbb39ebf86fd898583ac8"
"reference": "36f5c26e3dbf6873b61b593cd86fe4616153d239"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/property-info/zipball/718f093ae4cac054db2bbb39ebf86fd898583ac8",
"reference": "718f093ae4cac054db2bbb39ebf86fd898583ac8",
"url": "https://api.github.com/repos/symfony/property-info/zipball/36f5c26e3dbf6873b61b593cd86fe4616153d239",
"reference": "36f5c26e3dbf6873b61b593cd86fe4616153d239",
"shasum": ""
},
"require": {
......@@ -1887,7 +1887,7 @@
"symfony/doctrine-bridge": "To use Doctrine 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",
"installation-source": "dist",
"autoload": {
......
......@@ -6,7 +6,7 @@
'aliases' =>
array (
),
'reference' => 'e7fa0b7dd9584f3f9c8b489b4351a6b4858f62ea',
'reference' => '600462a968b1b24b7361ad9d08540324e4e92c2b',
'name' => 'yidian/yaf_demo',
),
'versions' =>
......@@ -19,7 +19,7 @@
array (
0 => '9999999-dev',
),
'reference' => '03c3e30e32f69eb439eb9e116adc0da98538c11b',
'reference' => '8e0eab96df9b2fea5fbba77fda27a0f60d2d0858',
),
'api/php_utils' =>
array (
......@@ -29,7 +29,7 @@
array (
0 => '9999999-dev',
),
'reference' => '3651661da73b73fd8c5a02db0667f3937f4875f8',
'reference' => 'b9d4473aeda808fa9ef25368bb7118b057741b62',
),
'bacon/bacon-qr-code' =>
array (
......@@ -281,7 +281,7 @@
'aliases' =>
array (
),
'reference' => '13c33f29a76bd99976ba7ee20297fa16d5a53a59',
'reference' => 'cb1aad06e7733a116f49033b1b3048a08e59ddd2',
),
'symfony/property-info' =>
array (
......@@ -290,7 +290,7 @@
'aliases' =>
array (
),
'reference' => '718f093ae4cac054db2bbb39ebf86fd898583ac8',
'reference' => '36f5c26e3dbf6873b61b593cd86fe4616153d239',
),
'symfony/string' =>
array (
......@@ -308,7 +308,7 @@
'aliases' =>
array (
),
'reference' => 'e7fa0b7dd9584f3f9c8b489b4351a6b4858f62ea',
'reference' => '600462a968b1b24b7361ad9d08540324e4e92c2b',
),
),
);
......@@ -630,7 +630,7 @@ class PropertyAccessor implements PropertyAccessorInterface
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;
if (isset($this->writePropertyCache[$key])) {
......
......@@ -66,9 +66,9 @@ class PhpDocExtractor implements PropertyDescriptionExtractorInterface, Property
$this->docBlockFactory = $docBlockFactory ?: DocBlockFactory::createInstance();
$this->contextFactory = new ContextFactory();
$this->phpDocTypeHelper = new PhpDocTypeHelper();
$this->mutatorPrefixes = null !== $mutatorPrefixes ? $mutatorPrefixes : ReflectionExtractor::$defaultMutatorPrefixes;
$this->accessorPrefixes = null !== $accessorPrefixes ? $accessorPrefixes : ReflectionExtractor::$defaultAccessorPrefixes;
$this->arrayMutatorPrefixes = null !== $arrayMutatorPrefixes ? $arrayMutatorPrefixes : ReflectionExtractor::$defaultArrayMutatorPrefixes;
$this->mutatorPrefixes = $mutatorPrefixes ?? ReflectionExtractor::$defaultMutatorPrefixes;
$this->accessorPrefixes = $accessorPrefixes ?? ReflectionExtractor::$defaultAccessorPrefixes;
$this->arrayMutatorPrefixes = $arrayMutatorPrefixes ?? ReflectionExtractor::$defaultArrayMutatorPrefixes;
}
/**
......
......@@ -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)
{
$this->mutatorPrefixes = null !== $mutatorPrefixes ? $mutatorPrefixes : self::$defaultMutatorPrefixes;
$this->accessorPrefixes = null !== $accessorPrefixes ? $accessorPrefixes : self::$defaultAccessorPrefixes;
$this->arrayMutatorPrefixes = null !== $arrayMutatorPrefixes ? $arrayMutatorPrefixes : self::$defaultArrayMutatorPrefixes;
$this->mutatorPrefixes = $mutatorPrefixes ?? self::$defaultMutatorPrefixes;
$this->accessorPrefixes = $accessorPrefixes ?? self::$defaultAccessorPrefixes;
$this->arrayMutatorPrefixes = $arrayMutatorPrefixes ?? self::$defaultArrayMutatorPrefixes;
$this->enableConstructorExtraction = $enableConstructorExtraction;
$this->methodReflectionFlags = $this->getMethodsFlags($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