Skip to content

Commit

Permalink
Uniformize exception vars according to our CS
Browse files Browse the repository at this point in the history
  • Loading branch information
dunglas committed Oct 5, 2016
1 parent ed8ccd1 commit cc9a499
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Expand Up @@ -208,7 +208,7 @@ private function getDocBlockFromProperty($class, $property)
// Use a ReflectionProperty instead of $class to get the parent class if applicable
try {
$reflectionProperty = new \ReflectionProperty($class, $property);
} catch (\ReflectionException $reflectionException) {
} catch (\ReflectionException $e) {
return;
}

Expand Down Expand Up @@ -260,7 +260,7 @@ private function getDocBlockFromMethod($class, $ucFirstProperty, $type)
) {
break;
}
} catch (\ReflectionException $reflectionException) {
} catch (\ReflectionException $e) {
// Try the next prefix if the method doesn't exist
}
}
Expand Down
Expand Up @@ -51,7 +51,7 @@ public function getProperties($class, array $context = array())
{
try {
$reflectionClass = new \ReflectionClass($class);
} catch (\ReflectionException $reflectionException) {
} catch (\ReflectionException $e) {
return;
}

Expand Down Expand Up @@ -261,7 +261,7 @@ private function isPublicProperty($class, $property)
$reflectionProperty = new \ReflectionProperty($class, $property);

return $reflectionProperty->isPublic();
} catch (\ReflectionException $reflectionExcetion) {
} catch (\ReflectionException $e) {
// Return false if the property doesn't exist
}

Expand Down Expand Up @@ -290,7 +290,7 @@ private function getAccessorMethod($class, $property)
if (0 === $reflectionMethod->getNumberOfRequiredParameters()) {
return array($reflectionMethod, $prefix);
}
} catch (\ReflectionException $reflectionException) {
} catch (\ReflectionException $e) {
// Return null if the property doesn't exist
}
}
Expand Down Expand Up @@ -319,7 +319,7 @@ private function getMutatorMethod($class, $property)
if ($reflectionMethod->getNumberOfParameters() >= 1) {
return array($reflectionMethod, $prefix);
}
} catch (\ReflectionException $reflectionException) {
} catch (\ReflectionException $e) {
// Try the next prefix if the method doesn't exist
}
}
Expand Down

0 comments on commit cc9a499

Please sign in to comment.