Cleanup: Update and add missing docblocks, remove unused imports

Just a bit of house keeping for the sake of code cleanliness.
This commit is contained in:
Emir Beganovic
2015-10-05 10:18:21 +02:00
parent 6665dcc1d3
commit fb1cd7a944
10 changed files with 7 additions and 10 deletions
+1 -1
View File
@@ -32,7 +32,7 @@ class DefaultUuidBuilder implements UuidBuilderInterface
/**
* Constructs the DefaultUuidBuilder
*
* @param NumberConverterInterface The number converter to use when constructing the Uuid
* @param NumberConverterInterface $converter The number converter to use when constructing the Uuid
*/
public function __construct(NumberConverterInterface $converter)
{
+1 -1
View File
@@ -31,7 +31,7 @@ class DegradedUuidBuilder implements UuidBuilderInterface
/**
* Constructs the DegradedUuidBuilder
*
* @param NumberConverterInterface The number converter to use when constructing the DegradedUuid
* @param NumberConverterInterface $converter The number converter to use when constructing the DegradedUuid
*/
public function __construct(NumberConverterInterface $converter)
{
-1
View File
@@ -14,7 +14,6 @@
namespace Ramsey\Uuid\Codec;
use Ramsey\Uuid\Uuid;
use Ramsey\Uuid\UuidInterface;
/**
+2
View File
@@ -112,6 +112,7 @@ class StringCodec implements CodecInterface
/**
* Returns an array of UUID components (the UUID exploded on its dashes)
*
* @param string $encodedUuid
* @return array
*/
protected function extractComponents($encodedUuid)
@@ -148,6 +149,7 @@ class StringCodec implements CodecInterface
* Returns the fields that make up this UUID
*
* @see \Ramsey\Uuid\UuidInterface::getFieldsHex()
* @param array $components
* @return array
*/
protected function getFields(array $components)
-2
View File
@@ -14,8 +14,6 @@
namespace Ramsey\Uuid;
use Ramsey\Uuid\Converter\NumberConverterInterface;
use Ramsey\Uuid\Codec\CodecInterface;
use Ramsey\Uuid\Exception\UnsatisfiedDependencyException;
use Ramsey\Uuid\Exception\UnsupportedOperationException;
+1
View File
@@ -263,6 +263,7 @@ class FeatureSet
* Determines which time-based UUID generator to use and returns the configured
* time-based UUID generator for this environment
*
* @param TimeProviderInterface $timeProvider
* @return TimeGeneratorInterface
*/
protected function buildTimeGenerator(TimeProviderInterface $timeProvider)
+1 -1
View File
@@ -33,7 +33,7 @@ class FixedTimeProvider implements TimeProviderInterface
* Constructs a `FixedTimeProvider` using the provided `$timestamp`
*
* @param int[] Array containing `sec` and `usec` components of a timestamp
* @throws InvalidArgumentException if the `$timestamp` does not contain `sec` or `usec` components
* @throws \InvalidArgumentException if the `$timestamp` does not contain `sec` or `usec` components
*/
public function __construct(array $timestamp)
{
-1
View File
@@ -14,7 +14,6 @@
namespace Ramsey\Uuid;
use InvalidArgumentException;
use Ramsey\Uuid\Converter\NumberConverterInterface;
use Ramsey\Uuid\Codec\CodecInterface;
use Ramsey\Uuid\Exception\UnsupportedOperationException;
-2
View File
@@ -14,14 +14,12 @@
namespace Ramsey\Uuid;
use InvalidArgumentException;
use Ramsey\Uuid\Converter\NumberConverterInterface;
use Ramsey\Uuid\Provider\NodeProviderInterface;
use Ramsey\Uuid\Generator\RandomGeneratorInterface;
use Ramsey\Uuid\Generator\TimeGeneratorInterface;
use Ramsey\Uuid\Codec\CodecInterface;
use Ramsey\Uuid\Builder\UuidBuilderInterface;
use Ramsey\Uuid\UuidInterface;
class UuidFactory implements UuidFactoryInterface
{
+1 -1
View File
@@ -15,7 +15,7 @@
namespace Ramsey\Uuid;
use Ramsey\Uuid\Converter\NumberConverterInterface;
use Ramsey\Uuid\Exception\UnsupportedOperationException;
/**
* UuidInterface defines common functionality for all universally unique
* identifiers (UUIDs)