Skip to content

Commit

Permalink
remove unused 'use Zend\Validator\ValidatorInterface' in Zend\Form\El…
Browse files Browse the repository at this point in the history
…ement\*
  • Loading branch information
samsonasik committed Dec 3, 2012
1 parent c6c2758 commit 588cd09
Show file tree
Hide file tree
Showing 12 changed files with 23 additions and 35 deletions.
5 changes: 2 additions & 3 deletions library/Zend/Form/Element/Checkbox.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
use Zend\Form\Element;
use Zend\InputFilter\InputProviderInterface;
use Zend\Validator\InArray as InArrayValidator;
use Zend\Validator\ValidatorInterface;

/**
* @category Zend
Expand All @@ -46,7 +45,7 @@ class Checkbox extends Element implements InputProviderInterface
);

/**
* @var ValidatorInterface
* @var \Zend\Validator\ValidatorInterface
*/
protected $validator;

Expand Down Expand Up @@ -162,7 +161,7 @@ public function getCheckedValue()
/**
* Get validator
*
* @return ValidatorInterface
* @return \Zend\Validator\ValidatorInterface
*/
protected function getValidator()
{
Expand Down
5 changes: 2 additions & 3 deletions library/Zend/Form/Element/Color.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
use Zend\Form\Element;
use Zend\InputFilter\InputProviderInterface;
use Zend\Validator\Regex as RegexValidator;
use Zend\Validator\ValidatorInterface;

/**
* @category Zend
Expand All @@ -32,14 +31,14 @@ class Color extends Element implements InputProviderInterface
);

/**
* @var ValidatorInterface
* @var \Zend\Validator\ValidatorInterface
*/
protected $validator;

/**
* Get validator
*
* @return ValidatorInterface
* @return \Zend\Validator\ValidatorInterface
*/
protected function getValidator()
{
Expand Down
5 changes: 2 additions & 3 deletions library/Zend/Form/Element/Date.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
use Zend\Form\Element\DateTime as DateTimeElement;
use Zend\Validator\Date as DateValidator;
use Zend\Validator\DateStep as DateStepValidator;
use Zend\Validator\ValidatorInterface;

/**
* @category Zend
Expand Down Expand Up @@ -43,7 +42,7 @@ class Date extends DateTimeElement
/**
* Retrieves a Date Validator configured for a DateTime Input type
*
* @return ValidatorInterface
* @return \Zend\Validator\ValidatorInterface
*/
protected function getDateValidator()
{
Expand All @@ -53,7 +52,7 @@ protected function getDateValidator()
/**
* Retrieves a DateStep Validator configured for a Date Input type
*
* @return ValidatorInterface
* @return \Zend\Validator\ValidatorInterface
*/
protected function getStepValidator()
{
Expand Down
3 changes: 1 addition & 2 deletions library/Zend/Form/Element/DateTimeLocal.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@

use Zend\Form\Element;
use Zend\Validator\DateStep as DateStepValidator;
use Zend\Validator\ValidatorInterface;

/**
* @category Zend
Expand Down Expand Up @@ -44,7 +43,7 @@ class DateTimeLocal extends DateTime
/**
* Retrieves a DateStepValidator configured for a Date Input type
*
* @return ValidatorInterface
* @return \Zend\Validator\ValidatorInterface
*/
protected function getStepValidator()
{
Expand Down
11 changes: 5 additions & 6 deletions library/Zend/Form/Element/Email.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
use Zend\InputFilter\InputProviderInterface;
use Zend\Validator\Regex as RegexValidator;
use Zend\Validator\Explode as ExplodeValidator;
use Zend\Validator\ValidatorInterface;

/**
* @category Zend
Expand All @@ -38,14 +37,14 @@ class Email extends Element implements InputProviderInterface
protected $validator;

/**
* @var ValidatorInterface
* @var \Zend\Validator\ValidatorInterface
*/
protected $emailValidator;

/**
* Get primary validator
*
* @return ValidatorInterface
* @return \Zend\Validator\ValidatorInterface
*/
public function getValidator()
{
Expand All @@ -70,7 +69,7 @@ public function getValidator()
/**
* Sets the primary validator to use for this element
*
* @param ValidatorInterface $validator
* @param \Zend\Validator\ValidatorInterface $validator
* @return Email
*/
public function setValidator(ValidatorInterface $validator)
Expand All @@ -97,7 +96,7 @@ public function setValidator(ValidatorInterface $validator)
* (more strict) email validator such as Zend\Validator\Email
* if you wish.
*
* @return ValidatorInterface
* @return \Zend\Validator\ValidatorInterface
*/
public function getEmailValidator()
{
Expand All @@ -113,7 +112,7 @@ public function getEmailValidator()
* Sets the email validator to use for multiple or single
* email addresses.
*
* @param ValidatorInterface $validator
* @param \Zend\Validator\ValidatorInterface $validator
* @return Email
*/
public function setEmailValidator(ValidatorInterface $validator)
Expand Down
3 changes: 1 addition & 2 deletions library/Zend/Form/Element/Number.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
use Zend\Validator\GreaterThan as GreaterThanValidator;
use Zend\Validator\LessThan as LessThanValidator;
use Zend\Validator\Step as StepValidator;
use Zend\Validator\ValidatorInterface;

/**
* @category Zend
Expand All @@ -42,7 +41,7 @@ class Number extends Element implements InputProviderInterface
/**
* Get validator
*
* @return ValidatorInterface[]
* @return \Zend\Validator\ValidatorInterface[]
*/
protected function getValidators()
{
Expand Down
3 changes: 1 addition & 2 deletions library/Zend/Form/Element/Radio.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
namespace Zend\Form\Element;

use Zend\Validator\InArray as InArrayValidator;
use Zend\Validator\ValidatorInterface;

/**
* @category Zend
Expand All @@ -32,7 +31,7 @@ class Radio extends MultiCheckbox
/**
* Get validator
*
* @return ValidatorInterface
* @return \Zend\Validator\ValidatorInterface
*/
protected function getValidator()
{
Expand Down
3 changes: 1 addition & 2 deletions library/Zend/Form/Element/Range.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
use Zend\Validator\GreaterThan as GreaterThanValidator;
use Zend\Validator\LessThan as LessThanValidator;
use Zend\Validator\Step as StepValidator;
use Zend\Validator\ValidatorInterface;

/**
* @category Zend
Expand All @@ -36,7 +35,7 @@ class Range extends NumberElement
/**
* Get validator
*
* @return ValidatorInterface[]
* @return \Zend\Validator\ValidatorInterface[]
*/
protected function getValidators()
{
Expand Down
5 changes: 2 additions & 3 deletions library/Zend/Form/Element/Select.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
use Zend\InputFilter\InputProviderInterface;
use Zend\Validator\Explode as ExplodeValidator;
use Zend\Validator\InArray as InArrayValidator;
use Zend\Validator\ValidatorInterface;

/**
* @category Zend
Expand All @@ -49,7 +48,7 @@ class Select extends Element implements InputProviderInterface
);

/**
* @var ValidatorInterface
* @var \Zend\Validator\ValidatorInterface
*/
protected $validator;

Expand Down Expand Up @@ -172,7 +171,7 @@ public function getEmptyOption()
/**
* Get validator
*
* @return ValidatorInterface
* @return \Zend\Validator\ValidatorInterface
*/
protected function getValidator()
{
Expand Down
5 changes: 2 additions & 3 deletions library/Zend/Form/Element/Time.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
use Zend\Form\Element;
use Zend\Validator\Date as DateValidator;
use Zend\Validator\DateStep as DateStepValidator;
use Zend\Validator\ValidatorInterface;

/**
* @category Zend
Expand All @@ -34,7 +33,7 @@ class Time extends DateTime
/**
* Retrieves a Date Validator configured for a DateTime Input type
*
* @return ValidatorInterface
* @return \Zend\Validator\ValidatorInterface
*/
protected function getDateValidator()
{
Expand All @@ -44,7 +43,7 @@ protected function getDateValidator()
/**
* Retrieves a DateStepValidator configured for a Date Input type
*
* @return ValidatorInterface
* @return \Zend\Validator\ValidatorInterface
*/
protected function getStepValidator()
{
Expand Down
5 changes: 2 additions & 3 deletions library/Zend/Form/Element/Url.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
use Zend\Form\Element;
use Zend\InputFilter\InputProviderInterface;
use Zend\Validator\Uri as UriValidator;
use Zend\Validator\ValidatorInterface;

/**
* @category Zend
Expand All @@ -32,14 +31,14 @@ class Url extends Element implements InputProviderInterface
);

/**
* @var ValidatorInterface
* @var \Zend\Validator\ValidatorInterface
*/
protected $validator;

/**
* Get validator
*
* @return ValidatorInterface
* @return \Zend\Validator\ValidatorInterface
*/
public function getValidator()
{
Expand Down
5 changes: 2 additions & 3 deletions library/Zend/Form/Element/Week.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
use Zend\Form\Element;
use Zend\Validator\DateStep as DateStepValidator;
use Zend\Validator\Regex as RegexValidator;
use Zend\Validator\ValidatorInterface;

/**
* @category Zend
Expand All @@ -34,7 +33,7 @@ class Week extends DateTime
/**
* Retrieves a Date Validator configured for a Week Input type
*
* @return ValidatorInterface
* @return \Zend\Validator\ValidatorInterface
*/
protected function getDateValidator()
{
Expand All @@ -44,7 +43,7 @@ protected function getDateValidator()
/**
* Retrieves a DateStep Validator configured for a Week Input type
*
* @return ValidatorInterface
* @return \Zend\Validator\ValidatorInterface
*/
protected function getStepValidator()
{
Expand Down

0 comments on commit 588cd09

Please sign in to comment.