Skip to content

Commit

Permalink
Merge pull request #194 from overtrue/analysis-X0VjWz
Browse files Browse the repository at this point in the history
Applied fixes from StyleCI
  • Loading branch information
overtrue committed Jan 1, 2016
2 parents a4313dd + 7c3d536 commit 2355e54
Show file tree
Hide file tree
Showing 84 changed files with 10 additions and 91 deletions.
1 change: 0 additions & 1 deletion src/Cache/Adapters/AdapterInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
* @link https://github.com/overtrue
* @link http://overtrue.me
*/

namespace EasyWeChat\Cache\Adapters;

/**
Expand Down
1 change: 0 additions & 1 deletion src/Cache/Adapters/FileAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
* @link https://github.com/overtrue
* @link http://overtrue.me
*/

namespace EasyWeChat\Cache\Adapters;

use EasyWeChat\Core\Exceptions\RuntimeException;
Expand Down
1 change: 0 additions & 1 deletion src/Cache/Manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
* @link https://github.com/overtrue
* @link http://overtrue.me
*/

namespace EasyWeChat\Cache;

use EasyWeChat\Cache\Adapters\AdapterInterface;
Expand Down
1 change: 0 additions & 1 deletion src/Card/Card.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
* @link https://github.com/overtrue
* @link http://overtrue.me
*/

namespace EasyWeChat\Card;

use EasyWeChat\Cache\Manager as Cache;
Expand Down
1 change: 0 additions & 1 deletion src/Card/CardHttpException.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
* @link https://github.com/overtrue
* @link http://overtrue.me
*/

namespace EasyWeChat\Card;

use EasyWeChat\Core\Exception as CoreException;
Expand Down
1 change: 0 additions & 1 deletion src/Card/Color.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
* @link https://github.com/overtrue
* @link http://overtrue.me
*/

namespace EasyWeChat\Card;

use EasyWeChat\Cache\Adapters\AdapterInterface as Cache;
Expand Down
1 change: 0 additions & 1 deletion src/Card/Image.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
* @link https://github.com/overtrue
* @link http://overtrue.me
*/

namespace EasyWeChat\Card;

use EasyWeChat\Core\Exceptions\InvalidArgumentException;
Expand Down
1 change: 0 additions & 1 deletion src/Core/AbstractAPI.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/

namespace EasyWeChat\Core;

use EasyWeChat\Core\Exceptions\HttpException;
Expand Down
1 change: 0 additions & 1 deletion src/Core/AccessToken.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
* @link https://github.com/overtrue
* @link http://overtrue.me
*/

namespace EasyWeChat\Core;

use EasyWeChat\Cache\Manager as Cache;
Expand Down
1 change: 0 additions & 1 deletion src/Core/Exception.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
* @link https://github.com/overtrue
* @link http://overtrue.me
*/

namespace EasyWeChat\Core;

use Exception as BaseException;
Expand Down
1 change: 0 additions & 1 deletion src/Core/Exceptions/FaultException.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
* @link https://github.com/overtrue
* @link http://overtrue.me
*/

namespace EasyWeChat\Core\Exceptions;

use EasyWeChat\Core\Exception;
Expand Down
1 change: 0 additions & 1 deletion src/Core/Exceptions/HttpException.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
* @link https://github.com/overtrue
* @link http://overtrue.me
*/

namespace EasyWeChat\Core\Exceptions;

use EasyWeChat\Core\Exception;
Expand Down
1 change: 0 additions & 1 deletion src/Core/Exceptions/InvalidArgumentException.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
* @link https://github.com/overtrue
* @link http://overtrue.me
*/

namespace EasyWeChat\Core\Exceptions;

use EasyWeChat\Core\Exception;
Expand Down
1 change: 0 additions & 1 deletion src/Core/Exceptions/InvalidConfigException.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
* @link https://github.com/overtrue
* @link http://overtrue.me
*/

namespace EasyWeChat\Core\Exceptions;

use EasyWeChat\Core\Exception;
Expand Down
1 change: 0 additions & 1 deletion src/Core/Exceptions/RuntimeException.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
* @link https://github.com/overtrue
* @link http://overtrue.me
*/

namespace EasyWeChat\Core\Exceptions;

use EasyWeChat\Core\Exception;
Expand Down
1 change: 0 additions & 1 deletion src/Core/Exceptions/UnboundServiceException.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
* @link https://github.com/overtrue
* @link http://overtrue.me
*/

namespace EasyWeChat\Core\Exceptions;

use EasyWeChat\Core\Exception;
Expand Down
1 change: 0 additions & 1 deletion src/Core/Http.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/

namespace EasyWeChat\Core;

use EasyWeChat\Core\Exceptions\HttpException;
Expand Down
1 change: 0 additions & 1 deletion src/Device/DeviceHttpException.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
* @link https://github.com/overtrue
* @link http://overtrue.me
*/

namespace EasyWeChat\Device;

use EasyWeChat\Core\Exception as CoreException;
Expand Down
1 change: 0 additions & 1 deletion src/Encryption/EncryptionException.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
* @link https://github.com/overtrue
* @link http://overtrue.me
*/

namespace EasyWeChat\Encryption;

use EasyWeChat\Core\Exception as CoreException;
Expand Down
3 changes: 1 addition & 2 deletions src/Encryption/Encryptor.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
* @link https://github.com/overtrue
* @link http://overtrue.me
*/

namespace EasyWeChat\Encryption;

use EasyWeChat\Core\Exceptions\InvalidConfigException;
Expand Down Expand Up @@ -77,7 +76,7 @@ public function __construct($appId, $token, $AESKey)
$this->appId = $appId;
$this->token = $token;
$this->AESKey = $AESKey;
$this->blockSize = 32;// mcrypt_get_block_size(MCRYPT_RIJNDAEL_128, MCRYPT_MODE_CBC);
$this->blockSize = 32; // mcrypt_get_block_size(MCRYPT_RIJNDAEL_128, MCRYPT_MODE_CBC);
}

/**
Expand Down
1 change: 0 additions & 1 deletion src/Foundation/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
* @link https://github.com/overtrue/wechat
* @link http://overtrue.me
*/

namespace EasyWeChat\Foundation;

use EasyWeChat\Cache\Manager as CacheManager;
Expand Down
1 change: 0 additions & 1 deletion src/Foundation/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
* @link https://github.com/overtrue/wechat
* @link http://overtrue.me
*/

namespace EasyWeChat\Foundation;

use EasyWeChat\Support\Collection;
Expand Down
1 change: 0 additions & 1 deletion src/Foundation/ServiceProviders/JsServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/

namespace EasyWeChat\Foundation\ServiceProviders;

use EasyWeChat\Js\Js;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/

namespace EasyWeChat\Foundation\ServiceProviders;

use EasyWeChat\Material\Material;
Expand Down
1 change: 0 additions & 1 deletion src/Foundation/ServiceProviders/MenuServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/

namespace EasyWeChat\Foundation\ServiceProviders;

use EasyWeChat\Menu\Menu;
Expand Down
1 change: 0 additions & 1 deletion src/Foundation/ServiceProviders/NoticeServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/

namespace EasyWeChat\Foundation\ServiceProviders;

use EasyWeChat\Notice\Notice;
Expand Down
1 change: 0 additions & 1 deletion src/Foundation/ServiceProviders/OAuthServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/

namespace EasyWeChat\Foundation\ServiceProviders;

use Overtrue\Socialite\SocialiteManager as Socialite;
Expand Down
1 change: 0 additions & 1 deletion src/Foundation/ServiceProviders/POIServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
* @link https://github.com/overtrue/wechat
* @link http://overtrue.me
*/

namespace EasyWeChat\Foundation\ServiceProviders;

use EasyWeChat\POI\POI;
Expand Down
1 change: 0 additions & 1 deletion src/Foundation/ServiceProviders/PaymentServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
* @link https://github.com/overtrue/wechat
* @link http://overtrue.me
*/

namespace EasyWeChat\Foundation\ServiceProviders;

use EasyWeChat\Payment\Merchant;
Expand Down
1 change: 0 additions & 1 deletion src/Foundation/ServiceProviders/QRCodeServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
* @link https://github.com/overtrue/wechat
* @link http://overtrue.me
*/

namespace EasyWeChat\Foundation\ServiceProviders;

use EasyWeChat\QRCode\QRCode;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
* @link https://github.com/overtrue/wechat
* @link http://overtrue.me
*/

namespace EasyWeChat\Foundation\ServiceProviders;

use EasyWeChat\Semantic\Semantic;
Expand Down
1 change: 0 additions & 1 deletion src/Foundation/ServiceProviders/ServerServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
* @link https://github.com/overtrue/wechat
* @link http://overtrue.me
*/

namespace EasyWeChat\Foundation\ServiceProviders;

use EasyWeChat\Encryption\Encryptor;
Expand Down
1 change: 0 additions & 1 deletion src/Foundation/ServiceProviders/StaffServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/

namespace EasyWeChat\Foundation\ServiceProviders;

use EasyWeChat\Staff\Staff;
Expand Down
1 change: 0 additions & 1 deletion src/Foundation/ServiceProviders/StatsServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/

namespace EasyWeChat\Foundation\ServiceProviders;

use EasyWeChat\Stats\Stats;
Expand Down
1 change: 0 additions & 1 deletion src/Foundation/ServiceProviders/UrlServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/

namespace EasyWeChat\Foundation\ServiceProviders;

use EasyWeChat\Url\Url;
Expand Down
1 change: 0 additions & 1 deletion src/Foundation/ServiceProviders/UserServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
* @link https://github.com/overtrue/wechat
* @link http://overtrue.me
*/

namespace EasyWeChat\Foundation\ServiceProviders;

use EasyWeChat\User\User;
Expand Down
1 change: 0 additions & 1 deletion src/Js/Js.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
* @link https://github.com/overtrue
* @link http://overtrue.me
*/

namespace EasyWeChat\Js;

use EasyWeChat\Cache\Manager as Cache;
Expand Down
5 changes: 2 additions & 3 deletions src/Material/Material.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
* @link https://github.com/overtrue
* @link http://overtrue.me
*/

namespace EasyWeChat\Material;

use EasyWeChat\Core\AbstractAPI;
Expand Down Expand Up @@ -119,11 +118,11 @@ public function uploadArticle($articles)
$articles = [$articles];
}

$params = ['articles' => array_map(function($article){
$params = ['articles' => array_map(function ($article) {
if ($article instanceof Article) {
return $article->only([
'title', 'thumb_media_id', 'author', 'digest',
'show_cover_pic', 'content', 'content_source_url'
'show_cover_pic', 'content', 'content_source_url',
]);
}

Expand Down
1 change: 0 additions & 1 deletion src/Material/Temporary.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
* @link https://github.com/overtrue
* @link http://overtrue.me
*/

namespace EasyWeChat\Material;

use EasyWeChat\Core\AbstractAPI;
Expand Down
1 change: 0 additions & 1 deletion src/Menu/Menu.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
* @link https://github.com/overtrue
* @link http://overtrue.me
*/

namespace EasyWeChat\Menu;

use EasyWeChat\Core\AbstractAPI;
Expand Down
1 change: 0 additions & 1 deletion src/Message/AbstractMessage.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
* @link https://github.com/overtrue
* @link http://overtrue.me
*/

namespace EasyWeChat\Message;

use EasyWeChat\Support\Arr;
Expand Down
1 change: 0 additions & 1 deletion src/Message/Article.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
* @link https://github.com/overtrue
* @link http://overtrue.me
*/

namespace EasyWeChat\Message;

use EasyWeChat\Support\Attribute;
Expand Down
1 change: 0 additions & 1 deletion src/Message/Image.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
* @link https://github.com/overtrue
* @link http://overtrue.me
*/

namespace EasyWeChat\Message;

/**
Expand Down
1 change: 0 additions & 1 deletion src/Message/Link.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
* @link https://github.com/overtrue
* @link http://overtrue.me
*/

namespace EasyWeChat\Message;

/**
Expand Down
1 change: 0 additions & 1 deletion src/Message/Location.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
* @link https://github.com/overtrue
* @link http://overtrue.me
*/

namespace EasyWeChat\Message;

/**
Expand Down
1 change: 0 additions & 1 deletion src/Message/Music.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
* @link https://github.com/overtrue
* @link http://overtrue.me
*/

namespace EasyWeChat\Message;

/**
Expand Down
1 change: 0 additions & 1 deletion src/Message/News.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
* @link https://github.com/overtrue
* @link http://overtrue.me
*/

namespace EasyWeChat\Message;

use EasyWeChat\Support\Attribute;
Expand Down
Loading

0 comments on commit 2355e54

Please sign in to comment.