@@ -17,7 +17,7 @@ |
||
| 17 | 17 | // | Packagist 地址 :https://packagist.org/packages/liguangchun/think-library |
| 18 | 18 | // +---------------------------------------------------------------------- |
| 19 | 19 | |
| 20 | -declare (strict_types=1); |
|
| 20 | +declare(strict_types=1); |
|
| 21 | 21 | |
| 22 | 22 | namespace DtApp\ThinkLibrary\facade; |
| 23 | 23 | |
@@ -17,7 +17,7 @@ |
||
| 17 | 17 | // | Packagist 地址 :https://packagist.org/packages/liguangchun/think-library |
| 18 | 18 | // +---------------------------------------------------------------------- |
| 19 | 19 | |
| 20 | -declare (strict_types=1); |
|
| 20 | +declare(strict_types=1); |
|
| 21 | 21 | |
| 22 | 22 | namespace DtApp\ThinkLibrary\facade; |
| 23 | 23 | |
@@ -17,7 +17,7 @@ |
||
| 17 | 17 | // | Packagist 地址 :https://packagist.org/packages/liguangchun/think-library |
| 18 | 18 | // +---------------------------------------------------------------------- |
| 19 | 19 | |
| 20 | -declare (strict_types=1); |
|
| 20 | +declare(strict_types=1); |
|
| 21 | 21 | |
| 22 | 22 | namespace DtApp\ThinkLibrary\facade; |
| 23 | 23 | |
@@ -17,7 +17,7 @@ |
||
| 17 | 17 | // | Packagist 地址 :https://packagist.org/packages/liguangchun/think-library |
| 18 | 18 | // +---------------------------------------------------------------------- |
| 19 | 19 | |
| 20 | -declare (strict_types=1); |
|
| 20 | +declare(strict_types=1); |
|
| 21 | 21 | |
| 22 | 22 | namespace DtApp\ThinkLibrary\facade; |
| 23 | 23 | |
@@ -17,7 +17,7 @@ |
||
| 17 | 17 | // | Packagist 地址 :https://packagist.org/packages/liguangchun/think-library |
| 18 | 18 | // +---------------------------------------------------------------------- |
| 19 | 19 | |
| 20 | -declare (strict_types=1); |
|
| 20 | +declare(strict_types=1); |
|
| 21 | 21 | |
| 22 | 22 | namespace DtApp\ThinkLibrary\facade; |
| 23 | 23 | |
@@ -17,7 +17,7 @@ |
||
| 17 | 17 | // | Packagist 地址 :https://packagist.org/packages/liguangchun/think-library |
| 18 | 18 | // +---------------------------------------------------------------------- |
| 19 | 19 | |
| 20 | -declare (strict_types=1); |
|
| 20 | +declare(strict_types=1); |
|
| 21 | 21 | |
| 22 | 22 | namespace DtApp\ThinkLibrary\facade; |
| 23 | 23 | |
@@ -17,7 +17,7 @@ |
||
| 17 | 17 | // | Packagist 地址 :https://packagist.org/packages/liguangchun/think-library |
| 18 | 18 | // +---------------------------------------------------------------------- |
| 19 | 19 | |
| 20 | -declare (strict_types=1); |
|
| 20 | +declare(strict_types=1); |
|
| 21 | 21 | |
| 22 | 22 | namespace DtApp\ThinkLibrary\facade; |
| 23 | 23 | |
@@ -17,7 +17,7 @@ |
||
| 17 | 17 | // | Packagist 地址 :https://packagist.org/packages/liguangchun/think-library |
| 18 | 18 | // +---------------------------------------------------------------------- |
| 19 | 19 | |
| 20 | -declare (strict_types=1); |
|
| 20 | +declare(strict_types=1); |
|
| 21 | 21 | |
| 22 | 22 | namespace DtApp\ThinkLibrary\facade; |
| 23 | 23 | |
@@ -39,7 +39,7 @@ discard block |
||
| 39 | 39 | if (empty($ip)) { |
| 40 | 40 | if (!isset($_SERVER['HTTP_X_FORWARDED_FOR'])) { |
| 41 | 41 | $ip = $_SERVER['REMOTE_ADDR']; |
| 42 | - } else { |
|
| 42 | + }else { |
|
| 43 | 43 | //为了兼容百度的CDN,所以转成数组 |
| 44 | 44 | $arr = explode(',', $_SERVER['HTTP_X_FORWARDED_FOR']); |
| 45 | 45 | $ip = $arr[0]; |
@@ -105,7 +105,7 @@ discard block |
||
| 105 | 105 | $myc->name($name) |
| 106 | 106 | ->expire($expire) |
| 107 | 107 | ->set($value); |
| 108 | - } else { |
|
| 108 | + }else { |
|
| 109 | 109 | $myc->name($name) |
| 110 | 110 | ->expire($expire) |
| 111 | 111 | ->update($value); |