Skip to content

Commit c9cd496

Browse files
committed
scrutinizer fixes
1 parent 5c78125 commit c9cd496

5 files changed

Lines changed: 8 additions & 7 deletions

File tree

src/Assert/AbstractLengthAssertion.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
namespace Harp\Validate\Assert;
44

5-
use Harp\Validate\Error;
6-
75
/**
86
* @author Ivan Kerin <ikerin@gmail.com>
97
* @copyright (c) 2014 Clippings Ltd.

src/Assert/Number.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class Number extends AbstractValueAssertion
1616
const FLOAT = 2;
1717

1818
/**
19-
* @param mixed $value
19+
* @param mixed $value
2020
* @return boolean
2121
*/
2222
public static function isValidInteger($value)
@@ -25,7 +25,7 @@ public static function isValidInteger($value)
2525
}
2626

2727
/**
28-
* @param mixed $value
28+
* @param mixed $value
2929
* @return boolean
3030
*/
3131
public static function isValidFloat($value)
@@ -40,7 +40,7 @@ public static function isValidFloat($value)
4040

4141
/**
4242
* @param string $name
43-
* @param integer $type
43+
* @param integer $type Number::INTEGER or Number::FLOAT
4444
* @param string $message
4545
*/
4646
public function __construct($name, $type = Number::INTEGER, $message = ':name is an invalid number')

src/Assert/Present.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
namespace Harp\Validate\Assert;
44

55
use Harp\Validate\Error;
6-
use Harp\Validate\Subject;
76

87
/**
98
* Will trigger an error if the value is empty

src/Assert/URL.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,11 @@ public static function convertUtfUrl($url)
9898
*/
9999
private $type;
100100

101+
/**
102+
* @param strubg $name
103+
* @param integer $type URL::NORMAL or URL::STRICT
104+
* @param string $message
105+
*/
101106
public function __construct($name, $type = URL::NORMAL, $message = ':name should be a valid URL address')
102107
{
103108
$this->type = $type;

src/ValidateTrait.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ public function validate()
5050
/**
5151
* Throws an exception if invalid
5252
*
53-
* @return static
5453
* @throws InvalidException If has errors
5554
*/
5655
public function assertValid()

0 commit comments

Comments
 (0)