Skip to content

Commit

Permalink
Fix coding style
Browse files Browse the repository at this point in the history
  • Loading branch information
oanhnn committed Aug 10, 2016
1 parent c140803 commit 57d9ffc
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions tests/NonPublicAccessibleTrait.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
<?php
/*
* This file is part of `lemonphp/event` project.
*
* (c) 2015-2016 LemonPHP Team
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/

namespace Lemon\Event\Tests;

Expand Down Expand Up @@ -56,8 +64,7 @@ protected function setNonPublicProperty($obj, $property, $value)
*/
protected function invokeNonPublicMethod($obj, $method, $params = [])
{
if (!is_object($obj) || !is_string($method) || method_exists($obj,
$method)) {
if (!is_object($obj) || !is_string($method) || method_exists($obj, $method)) {
throw new \InvalidArgumentException();
}
$ref = new \ReflectionMethod($obj, $method);
Expand Down

0 comments on commit 57d9ffc

Please sign in to comment.