Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PSDI Army
yii2
Commits
5cf99922
Commit
5cf99922
authored
Oct 15, 2013
by
Alexander Makarov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed @codeCoverageIgnore
parent
d75ad87e
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
0 additions
and
18 deletions
+0
-18
CaptchaValidator.php
framework/yii/captcha/CaptchaValidator.php
+0
-1
BooleanValidator.php
framework/yii/validators/BooleanValidator.php
+0
-1
CompareValidator.php
framework/yii/validators/CompareValidator.php
+0
-1
EmailValidator.php
framework/yii/validators/EmailValidator.php
+0
-3
NumberValidator.php
framework/yii/validators/NumberValidator.php
+0
-1
RangeValidator.php
framework/yii/validators/RangeValidator.php
+0
-1
RegularExpressionValidator.php
framework/yii/validators/RegularExpressionValidator.php
+0
-2
RequiredValidator.php
framework/yii/validators/RequiredValidator.php
+0
-1
StringValidator.php
framework/yii/validators/StringValidator.php
+0
-1
UrlValidator.php
framework/yii/validators/UrlValidator.php
+0
-3
FakedValidationModel.php
tests/unit/data/validators/models/FakedValidationModel.php
+0
-3
No files found.
framework/yii/captcha/CaptchaValidator.php
View file @
5cf99922
...
@@ -101,7 +101,6 @@ class CaptchaValidator extends Validator
...
@@ -101,7 +101,6 @@ class CaptchaValidator extends Validator
* @param \yii\base\View $view the view object that is going to be used to render views or view files
* @param \yii\base\View $view the view object that is going to be used to render views or view files
* containing a model form with this validator applied.
* containing a model form with this validator applied.
* @return string the client-side validation script.
* @return string the client-side validation script.
* @codeCoverageIgnore
*/
*/
public
function
clientValidateAttribute
(
$object
,
$attribute
,
$view
)
public
function
clientValidateAttribute
(
$object
,
$attribute
,
$view
)
{
{
...
...
framework/yii/validators/BooleanValidator.php
View file @
5cf99922
...
@@ -82,7 +82,6 @@ class BooleanValidator extends Validator
...
@@ -82,7 +82,6 @@ class BooleanValidator extends Validator
* @param \yii\base\View $view the view object that is going to be used to render views or view files
* @param \yii\base\View $view the view object that is going to be used to render views or view files
* containing a model form with this validator applied.
* containing a model form with this validator applied.
* @return string the client-side validation script.
* @return string the client-side validation script.
* @codeCoverageIgnore
*/
*/
public
function
clientValidateAttribute
(
$object
,
$attribute
,
$view
)
public
function
clientValidateAttribute
(
$object
,
$attribute
,
$view
)
{
{
...
...
framework/yii/validators/CompareValidator.php
View file @
5cf99922
...
@@ -182,7 +182,6 @@ class CompareValidator extends Validator
...
@@ -182,7 +182,6 @@ class CompareValidator extends Validator
* @param \yii\base\View $view the view object that is going to be used to render views or view files
* @param \yii\base\View $view the view object that is going to be used to render views or view files
* containing a model form with this validator applied.
* containing a model form with this validator applied.
* @throws InvalidConfigException if CompareValidator::operator is invalid
* @throws InvalidConfigException if CompareValidator::operator is invalid
* @codeCoverageIgnore
*/
*/
public
function
clientValidateAttribute
(
$object
,
$attribute
,
$view
)
public
function
clientValidateAttribute
(
$object
,
$attribute
,
$view
)
{
{
...
...
framework/yii/validators/EmailValidator.php
View file @
5cf99922
...
@@ -64,9 +64,7 @@ class EmailValidator extends Validator
...
@@ -64,9 +64,7 @@ class EmailValidator extends Validator
{
{
parent
::
init
();
parent
::
init
();
if
(
$this
->
enableIDN
&&
!
function_exists
(
'idn_to_ascii'
))
{
if
(
$this
->
enableIDN
&&
!
function_exists
(
'idn_to_ascii'
))
{
// @codeCoverageIgnoreStart
throw
new
InvalidConfigException
(
'In order to use IDN validation intl extension must be installed and enabled.'
);
throw
new
InvalidConfigException
(
'In order to use IDN validation intl extension must be installed and enabled.'
);
// @codeCoverageIgnoreEnd
}
}
if
(
$this
->
message
===
null
)
{
if
(
$this
->
message
===
null
)
{
$this
->
message
=
Yii
::
t
(
'yii'
,
'{attribute} is not a valid email address.'
);
$this
->
message
=
Yii
::
t
(
'yii'
,
'{attribute} is not a valid email address.'
);
...
@@ -124,7 +122,6 @@ class EmailValidator extends Validator
...
@@ -124,7 +122,6 @@ class EmailValidator extends Validator
* @param \yii\base\View $view the view object that is going to be used to render views or view files
* @param \yii\base\View $view the view object that is going to be used to render views or view files
* containing a model form with this validator applied.
* containing a model form with this validator applied.
* @return string the client-side validation script.
* @return string the client-side validation script.
* @codeCoverageIgnore
*/
*/
public
function
clientValidateAttribute
(
$object
,
$attribute
,
$view
)
public
function
clientValidateAttribute
(
$object
,
$attribute
,
$view
)
{
{
...
...
framework/yii/validators/NumberValidator.php
View file @
5cf99922
...
@@ -117,7 +117,6 @@ class NumberValidator extends Validator
...
@@ -117,7 +117,6 @@ class NumberValidator extends Validator
* @param \yii\base\View $view the view object that is going to be used to render views or view files
* @param \yii\base\View $view the view object that is going to be used to render views or view files
* containing a model form with this validator applied.
* containing a model form with this validator applied.
* @return string the client-side validation script.
* @return string the client-side validation script.
* @codeCoverageIgnore
*/
*/
public
function
clientValidateAttribute
(
$object
,
$attribute
,
$view
)
public
function
clientValidateAttribute
(
$object
,
$attribute
,
$view
)
{
{
...
...
framework/yii/validators/RangeValidator.php
View file @
5cf99922
...
@@ -84,7 +84,6 @@ class RangeValidator extends Validator
...
@@ -84,7 +84,6 @@ class RangeValidator extends Validator
* @param \yii\base\View $view the view object that is going to be used to render views or view files
* @param \yii\base\View $view the view object that is going to be used to render views or view files
* containing a model form with this validator applied.
* containing a model form with this validator applied.
* @return string the client-side validation script.
* @return string the client-side validation script.
* @codeCoverageIgnore
*/
*/
public
function
clientValidateAttribute
(
$object
,
$attribute
,
$view
)
public
function
clientValidateAttribute
(
$object
,
$attribute
,
$view
)
{
{
...
...
framework/yii/validators/RegularExpressionValidator.php
View file @
5cf99922
...
@@ -81,8 +81,6 @@ class RegularExpressionValidator extends Validator
...
@@ -81,8 +81,6 @@ class RegularExpressionValidator extends Validator
* @param \yii\base\View $view the view object that is going to be used to render views or view files
* @param \yii\base\View $view the view object that is going to be used to render views or view files
* containing a model form with this validator applied.
* containing a model form with this validator applied.
* @return string the client-side validation script.
* @return string the client-side validation script.
* @throws InvalidConfigException if the "pattern" is not a valid regular expression
* @codeCoverageIgnore
*/
*/
public
function
clientValidateAttribute
(
$object
,
$attribute
,
$view
)
public
function
clientValidateAttribute
(
$object
,
$attribute
,
$view
)
{
{
...
...
framework/yii/validators/RequiredValidator.php
View file @
5cf99922
...
@@ -105,7 +105,6 @@ class RequiredValidator extends Validator
...
@@ -105,7 +105,6 @@ class RequiredValidator extends Validator
* @param \yii\base\View $view the view object that is going to be used to render views or view files
* @param \yii\base\View $view the view object that is going to be used to render views or view files
* containing a model form with this validator applied.
* containing a model form with this validator applied.
* @return string the client-side validation script.
* @return string the client-side validation script.
* @codeCoverageIgnore
*/
*/
public
function
clientValidateAttribute
(
$object
,
$attribute
,
$view
)
public
function
clientValidateAttribute
(
$object
,
$attribute
,
$view
)
{
{
...
...
framework/yii/validators/StringValidator.php
View file @
5cf99922
...
@@ -145,7 +145,6 @@ class StringValidator extends Validator
...
@@ -145,7 +145,6 @@ class StringValidator extends Validator
* @param \yii\base\View $view the view object that is going to be used to render views or view files
* @param \yii\base\View $view the view object that is going to be used to render views or view files
* containing a model form with this validator applied.
* containing a model form with this validator applied.
* @return string the client-side validation script.
* @return string the client-side validation script.
* @codeCoverageIgnore
*/
*/
public
function
clientValidateAttribute
(
$object
,
$attribute
,
$view
)
public
function
clientValidateAttribute
(
$object
,
$attribute
,
$view
)
{
{
...
...
framework/yii/validators/UrlValidator.php
View file @
5cf99922
...
@@ -54,9 +54,7 @@ class UrlValidator extends Validator
...
@@ -54,9 +54,7 @@ class UrlValidator extends Validator
{
{
parent
::
init
();
parent
::
init
();
if
(
$this
->
enableIDN
&&
!
function_exists
(
'idn_to_ascii'
))
{
if
(
$this
->
enableIDN
&&
!
function_exists
(
'idn_to_ascii'
))
{
// @codeCoverageIgnoreStart
throw
new
InvalidConfigException
(
'In order to use IDN validation intl extension must be installed and enabled.'
);
throw
new
InvalidConfigException
(
'In order to use IDN validation intl extension must be installed and enabled.'
);
// @codeCoverageIgnoreEnd
}
}
if
(
$this
->
message
===
null
)
{
if
(
$this
->
message
===
null
)
{
$this
->
message
=
Yii
::
t
(
'yii'
,
'{attribute} is not a valid URL.'
);
$this
->
message
=
Yii
::
t
(
'yii'
,
'{attribute} is not a valid URL.'
);
...
@@ -121,7 +119,6 @@ class UrlValidator extends Validator
...
@@ -121,7 +119,6 @@ class UrlValidator extends Validator
* containing a model form with this validator applied.
* containing a model form with this validator applied.
* @return string the client-side validation script.
* @return string the client-side validation script.
* @see \yii\Web\ActiveForm::enableClientValidation
* @see \yii\Web\ActiveForm::enableClientValidation
* @codeCoverageIgnore
*/
*/
public
function
clientValidateAttribute
(
$object
,
$attribute
,
$view
)
public
function
clientValidateAttribute
(
$object
,
$attribute
,
$view
)
{
{
...
...
tests/unit/data/validators/models/FakedValidationModel.php
View file @
5cf99922
...
@@ -4,9 +4,6 @@ namespace yiiunit\data\validators\models;
...
@@ -4,9 +4,6 @@ namespace yiiunit\data\validators\models;
use
yii\base\Model
;
use
yii\base\Model
;
/**
* @codeCoverageIgnore
*/
class
FakedValidationModel
extends
Model
class
FakedValidationModel
extends
Model
{
{
public
$val_attr_a
;
public
$val_attr_a
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment