Skip to content
This repository has been archived by the owner on May 30, 2019. It is now read-only.

Commit

Permalink
PhpDoc: Add missing types & correct incorrect types
Browse files Browse the repository at this point in the history
  • Loading branch information
hacfi committed Mar 16, 2015
1 parent 36f2d07 commit 22e8025
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class MinimumPriceCouponListener
protected $currencyConverter;

/**
* @param $currencyConverter
* @param CurrencyConverter $currencyConverter
*/
public function __construct($currencyConverter)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public function __construct(
* @param string $context Context
* @param string $source Source
*
* @return array Comments
* @return Response Comments
*/
public function listCommentsAction($context, $source)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ public function get($configurationIdentifier)
/**
* Deletes a parameter given the format "namespace.key"
*
* @param $configurationIdentifier
* @param string $configurationIdentifier
*
* @return bool
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ interface GeneratorInterface
/**
* Generates a hash
*
* @param string $length Length of generation
* @param integer $length Length of generation
*
* @return string Generation
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Elcodi/Component/Core/Generator/RandomGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class RandomGenerator implements GeneratorInterface
/**
* Generates a random string with entropy
*
* @param string $length Length of generation
* @param integer $length Length of generation
*
* @return string Result of generation
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Elcodi/Component/Core/Generator/Sha1Generator.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public function __construct(GeneratorInterface $generator)
/**
* Generates a random string
*
* @param string $length Length of generation
* @param integer $length Length of generation
*
* @return string Result of generation
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Elcodi/Component/Core/Generator/UniqIdGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class UniqIdGenerator implements GeneratorInterface
/**
* Generates a unique Id
*
* @param string $length Length of generation
* @param integer $length Length of generation
*
* @return string Result of generation
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Elcodi/Component/Metric/Core/Entity/Entry.php
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ public function getType()
/**
* Get CreatedAt
*
* @return mixed CreatedAt
* @return DateTime|null CreatedAt
*/
public function getCreatedAt()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class VariantRepository extends EntityRepository
* returns the Variant that is associated with the options matching the IDs, if any
*
* @param ProductInterface $product to compare Variants from
* @param $optionsSearchedIds array containing IDs of the options to match
* @param array $optionsSearchedIds array containing IDs of the options to match
*
* @return VariantInterface|null Variant if found, or null if not
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Elcodi/Component/Rule/Repository/RuleRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class RuleRepository extends EntityRepository
/**
* Return a rule by name
*
* @param $name
* @param string $name
*
* @return null|RuleInterface
*/
Expand Down

0 comments on commit 22e8025

Please sign in to comment.