Skip to content

Commit

Permalink
Update AccessibilityHelperTrait.php
Browse files Browse the repository at this point in the history
  • Loading branch information
davidyell committed Jun 24, 2015
1 parent 5a5fac8 commit a5d0e58
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/AccessibilityHelperTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
namespace FriendsOfCake\TestUtilities;

use Exception;
use ReflectionProperty;
use ReflectionMethod;

/**
*
Expand Down Expand Up @@ -68,7 +70,7 @@ public function setReflectionClassInstance($instance, $class = null) {
*
* @param string $class
* @return Object
* @throws Exception
* @throws \Exception
*/
public function getReflectionInstance($class) {
$class = $this->_getReflectionTargetClass($class);
Expand Down Expand Up @@ -148,7 +150,7 @@ protected function _getReflectionPropertyInstance($property, $class) {
*
* @param string $class
* @return string
* @throws Exception
* @throws \Exception
*/
protected function _getReflectionTargetClass($class) {
$class = $class ?: $this->defaultReflectionTarget;
Expand All @@ -172,7 +174,7 @@ protected function _getReflectionTargetClass($class) {
* @return \ReflectionMethod
*/
protected function _getNewReflectionMethod($class, $method) {
return new \ReflectionMethod($class, $method);
return new ReflectionMethod($class, $method);
}

/**
Expand All @@ -183,6 +185,6 @@ protected function _getNewReflectionMethod($class, $method) {
* @return \ReflectionProperty
*/
protected function _getNewReflectionProperty($class, $property) {
return new \ReflectionProperty($class, $property);
return new ReflectionProperty($class, $property);
}
}

0 comments on commit a5d0e58

Please sign in to comment.