Skip to content

Commit

Permalink
some fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
schmittjoh committed Dec 21, 2013
1 parent 814f758 commit f44eefc
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/Metadata/Driver/AbstractFileDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public function getAllClassNames()
* @param \ReflectionClass $class
* @param string $file
*
* @return \MetaData\ClassMetadata|null
* @return \Metadata\ClassMetadata|null
*/
abstract protected function loadMetadataFromFile(\ReflectionClass $class, $file);

Expand Down
12 changes: 10 additions & 2 deletions src/Metadata/MetadataFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public function __construct(DriverInterface $driver, $hierarchyMetadataClass = '
}

/**
* @param boolean $bool
* @param boolean $include
*/
public function setIncludeInterfaces($include)
{
Expand All @@ -60,7 +60,7 @@ public function setCache(CacheInterface $cache)
/**
* @param string $className
*
* @return ClassMetaData
* @return ClassHierarchyMetadata|MergeableClassMetadata|null
*/
public function getMetadataForClass($className)
{
Expand Down Expand Up @@ -158,6 +158,9 @@ private function addClassMetadata(&$metadata, $toAdd)
}
}

/**
* @param string $class
*/
private function getClassHierarchy($class)
{
$classes = array();
Expand Down Expand Up @@ -193,6 +196,11 @@ private function getClassHierarchy($class)
return $newHierarchy;
}

/**
* @param NullMetadata|null $metadata
*
* @return ClassMetadata|null
*/
private function filterNullMetadata($metadata = null)
{
return !$metadata instanceof NullMetadata ? $metadata : null;
Expand Down
1 change: 0 additions & 1 deletion tests/Metadata/Tests/Cache/FileCacheTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
namespace Metadata\Tests\Cache;

use Metadata\ClassMetadata;

use Metadata\Cache\FileCache;

class FileCacheTest extends \PHPUnit_Framework_TestCase
Expand Down
1 change: 0 additions & 1 deletion tests/Metadata/Tests/MergeableClassMetadataTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
namespace Metadata\Tests;

use Metadata\MergeableClassMetadata;
use Metadata\ClassMetadata;

class MergeableClassMetadataTest extends \PHPUnit_Framework_TestCase
{
Expand Down
1 change: 0 additions & 1 deletion tests/Metadata/Tests/MethodMetadataTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
namespace Metadata\Tests;

use Metadata\Tests\Fixtures\TestObject;

use Metadata\MethodMetadata;

class MethodMetadataTest extends \PHPUnit_Framework_TestCase
Expand Down
1 change: 0 additions & 1 deletion tests/Metadata/Tests/PropertyMetadataTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
namespace Metadata\Tests;

use Metadata\Tests\Fixtures\TestObject;

use Metadata\PropertyMetadata;

class PropertyMetadataTest extends \PHPUnit_Framework_TestCase
Expand Down

0 comments on commit f44eefc

Please sign in to comment.