| @@ 116-120 (lines=5) @@ | ||
| 113 | ], |
|
| 114 | [ |
|
| 115 | UploadModelInterface::FILE_TYPE_THUMB, |
|
| 116 | function($attribute){ |
|
| 117 | if (!is_numeric($this->{$attribute}) && !is_string($this->{$attribute})){ |
|
| 118 | $this->addError($attribute, 'Tumbnail content must be a numeric or string.'); |
|
| 119 | } |
|
| 120 | }, |
|
| 121 | 'skipOnError' => false, |
|
| 122 | ], |
|
| 123 | [ |
|
| @@ 129-133 (lines=5) @@ | ||
| 126 | ], |
|
| 127 | [ |
|
| 128 | UploadModelInterface::FILE_TYPE_THUMB, |
|
| 129 | function($attribute){ |
|
| 130 | if (!is_numeric($this->{$attribute}) && !is_string($this->{$attribute})){ |
|
| 131 | $this->addError($attribute, 'Tumbnail content must be a numeric or string.'); |
|
| 132 | } |
|
| 133 | }, |
|
| 134 | 'skipOnError' => false, |
|
| 135 | ], |
|
| 136 | [ |
|
| @@ 126-130 (lines=5) @@ | ||
| 123 | ], |
|
| 124 | [ |
|
| 125 | UploadModelInterface::FILE_TYPE_THUMB, |
|
| 126 | function($attribute) { |
|
| 127 | if (!is_numeric($this->{$attribute}) && !is_string($this->{$attribute})) { |
|
| 128 | $this->addError($attribute, 'Tumbnail content must be a numeric or string.'); |
|
| 129 | } |
|
| 130 | }, |
|
| 131 | 'skipOnError' => false, |
|
| 132 | ], |
|
| 133 | [ |
|