Skip to content

Commit

Permalink
Merge pull request #317 from jdreesen/cs-fixes
Browse files Browse the repository at this point in the history
Some small CS fixes
  • Loading branch information
mnapoli committed Sep 6, 2015
2 parents d20d453 + 400defa commit 19ed78b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/DI/Definition/ObjectDefinition.php
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ public function getMethodInjections()
$injections = [];
array_walk_recursive($this->methodInjections, function ($injection) use (&$injections) {
$injections[] = $injection;
});;
});
return $injections;
}

Expand Down
4 changes: 2 additions & 2 deletions src/DI/Definition/Source/AnnotationReader.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class AnnotationReader implements DefinitionSource
* @var PhpDocReader
*/
private $phpDocReader;

/**
* @var bool
*/
Expand Down Expand Up @@ -231,7 +231,7 @@ private function getMethodParameter($parameterIndex, ReflectionParameter $parame
*/
public function getAnnotationReader()
{
if ($this->annotationReader == null) {
if ($this->annotationReader === null) {
AnnotationRegistry::registerAutoloadNamespace('DI\Annotation', __DIR__ . '/../../../');
$this->annotationReader = new SimpleAnnotationReader();
$this->annotationReader->addNamespace('DI\Annotation');
Expand Down

0 comments on commit 19ed78b

Please sign in to comment.