Skip to content

Commit

Permalink
Fixed php 7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
limingxinleo committed Apr 20, 2022
1 parent d504fdb commit dd5f65a
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 18 deletions.
30 changes: 20 additions & 10 deletions .php-cs-fixer.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
<?php

/*
* This file is part of the hedeqiang/umeng.
*
* (c) hedeqiang <[email protected]>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/

$header = <<<'EOF'
This file is part of the hedeqiang/umeng.
Expand All @@ -12,17 +21,18 @@
return (new PhpCsFixer\Config())
->setRiskyAllowed(true)
->setRules([
'@Symfony' => true,
'header_comment' => array('header' => $header),
'array_syntax' => array('syntax' => 'short'),
'ordered_imports' => true,
'no_useless_else' => true,
'no_useless_return' => true,
'php_unit_construct' => true,
'php_unit_strict' => true,
'@Symfony' => true,
'header_comment' => ['header' => $header],
'array_syntax' => ['syntax' => 'short'],
'ordered_imports' => true,
'no_useless_else' => true,
'no_useless_return' => true,
'php_unit_construct' => true,
'php_unit_strict' => true,
'visibility_required' => false,
'binary_operator_spaces' => [
'operators' => ['=>' => 'align_single_space_minimal']
]
'operators' => ['=>' => 'align_single_space_minimal'],
],
])
->setFinder(
PhpCsFixer\Finder::create()
Expand Down
8 changes: 4 additions & 4 deletions src/Android.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ class Android
use HasHttpRequest;

// 消息发送
public const ENDPOINT_TEMPLATE_SEND = 'https://msgapi.umeng.com/api/send';
const ENDPOINT_TEMPLATE_SEND = 'https://msgapi.umeng.com/api/send';
// 任务类消息状态查询
public const ENDPOINT_TEMPLATE_STATUS = 'https://msgapi.umeng.com/api/status';
const ENDPOINT_TEMPLATE_STATUS = 'https://msgapi.umeng.com/api/status';
// 任务类消息取消
public const ENDPOINT_TEMPLATE_CANCEL = 'https://msgapi.umeng.com/api/cancel';
const ENDPOINT_TEMPLATE_CANCEL = 'https://msgapi.umeng.com/api/cancel';
// 文件上传
public const ENDPOINT_TEMPLATE_UPLOAD = 'https://msgapi.umeng.com/upload';
const ENDPOINT_TEMPLATE_UPLOAD = 'https://msgapi.umeng.com/upload';

protected $config;

Expand Down
8 changes: 4 additions & 4 deletions src/IOS.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ class IOS
use HasHttpRequest;

// 消息发送
public const ENDPOINT_TEMPLATE_SEND = 'https://msgapi.umeng.com/api/send';
const ENDPOINT_TEMPLATE_SEND = 'https://msgapi.umeng.com/api/send';
// 任务类消息状态查询
public const ENDPOINT_TEMPLATE_STATUS = 'https://msgapi.umeng.com/api/status';
const ENDPOINT_TEMPLATE_STATUS = 'https://msgapi.umeng.com/api/status';
// 任务类消息取消
public const ENDPOINT_TEMPLATE_CANCEL = 'https://msgapi.umeng.com/api/cancel';
const ENDPOINT_TEMPLATE_CANCEL = 'https://msgapi.umeng.com/api/cancel';
// 文件上传
public const ENDPOINT_TEMPLATE_UPLOAD = 'https://msgapi.umeng.com/upload';
const ENDPOINT_TEMPLATE_UPLOAD = 'https://msgapi.umeng.com/upload';

protected $config;

Expand Down

0 comments on commit dd5f65a

Please sign in to comment.