Completed
Push — master ( 7e1171...a610d6 )
by Vitaliy
02:30
created
src/Element/CheckboxList.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
   class CheckboxList extends \Fiv\Form\Element\Multiple {
18 18
 
19 19
     /**
20
-     * @param array|string $data
20
+     * @param string[] $data
21 21
      * @return $this
22 22
      */
23 23
     public function setValue($data) {
Please login to merge, or discard this patch.
src/Form.php 1 patch
Doc Comments   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
 
51 51
 
52 52
     /**
53
-     * @param $name
53
+     * @param string $name
54 54
      * @return $this
55 55
      */
56 56
     public function setName($name) {
@@ -229,7 +229,7 @@  discard block
 block discarded – undo
229 229
 
230 230
     /**
231 231
      * @param string $name
232
-     * @param null $text
232
+     * @param string $text
233 233
      * @return Select
234 234
      */
235 235
     public function select($name, $text = null) {
@@ -257,7 +257,7 @@  discard block
 block discarded – undo
257 257
 
258 258
     /**
259 259
      * @param string $name
260
-     * @param null $text
260
+     * @param string $text
261 261
      * @return TextArea
262 262
      */
263 263
     public function textarea($name, $text = null) {
@@ -274,7 +274,7 @@  discard block
 block discarded – undo
274 274
      * $form->hidden('key', md5($this-user->id . HASH_A);
275 275
      * ```
276 276
      * @param string $name
277
-     * @param null $value
277
+     * @param string $value
278 278
      * @return \Fiv\Form\Element\Input
279 279
      */
280 280
     public function hidden($name, $value = null) {
@@ -292,7 +292,7 @@  discard block
 block discarded – undo
292 292
      * $form->submit('register', 'зареєструватись');
293 293
      * ```
294 294
      * @param string $name
295
-     * @param null $value
295
+     * @param string $value
296 296
      * @return Submit
297 297
      */
298 298
     public function submit($name, $value = null) {
@@ -323,7 +323,7 @@  discard block
 block discarded – undo
323 323
 
324 324
     /**
325 325
      * @param string $name
326
-     * @param null $text
326
+     * @param string $text
327 327
      * @return CheckboxList
328 328
      */
329 329
     public function checkboxList($name, $text = null) {
Please login to merge, or discard this patch.
Tests/Element/HtmlTest.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,4 +58,4 @@
 block discarded – undo
58 58
     }
59 59
 
60 60
   }
61
- 
62 61
\ No newline at end of file
62
+  
63 63
\ No newline at end of file
Please login to merge, or discard this patch.
Tests/Element/TextAreaTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,8 +20,8 @@
 block discarded – undo
20 20
 
21 21
     public function testRender() {
22 22
       $element = $this->getElement();
23
-      $this->assertContains('<textarea', (string)$element);
24
-      $this->assertContains('</textarea', (string)$element);
23
+      $this->assertContains('<textarea', (string) $element);
24
+      $this->assertContains('</textarea', (string) $element);
25 25
 
26 26
       $element->setValue('custom data');
27 27
       $this->assertContains('>custom data<', $element->render());
Please login to merge, or discard this patch.
Tests/FormTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -214,7 +214,7 @@
 block discarded – undo
214 214
 
215 215
       $checkedItemsNum = 0;
216 216
 
217
-      $element->addValidator(new CallBackValidator(function ($value) use (&$checkedItemsNum) {
217
+      $element->addValidator(new CallBackValidator(function($value) use (&$checkedItemsNum) {
218 218
         $checkedItemsNum++;
219 219
 
220 220
         return !empty($value);
Please login to merge, or discard this patch.
Tests/Validator/CallBackValidatorTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
11 11
   class CallBackValidatorTest extends \PHPUnit_Framework_TestCase {
12 12
 
13 13
     public function testLen() {
14
-      $lengthValidator = new CallBackValidator(function ($value) {
14
+      $lengthValidator = new CallBackValidator(function($value) {
15 15
         return strlen($value) > 3 and strlen($value) < 10;
16 16
       });
17 17
 
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
         '[email protected]',
54 54
       ];
55 55
 
56
-      $callBackValidator = (new CallBackValidator(function ($value) use ($existEmailList) {
56
+      $callBackValidator = (new CallBackValidator(function($value) use ($existEmailList) {
57 57
         if (empty($value)) {
58 58
           return true;
59 59
         }
Please login to merge, or discard this patch.
src/Validator/Len.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
    * @author  Ivan Shcherbak <[email protected]>
13 13
    * @package Fiv\Form\Validator
14 14
    */
15
-  class Len extends BaseValidator{
15
+  class Len extends BaseValidator {
16 16
 
17 17
     /**
18 18
      * @var int|null
Please login to merge, or discard this patch.
src/Filter/Trim.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@
 block discarded – undo
6 6
    * @author  Ivan Shcherbak <[email protected]>
7 7
    * @package Fiv\Form\Filter
8 8
    */
9
-  class Trim implements FilterInterface{
9
+  class Trim implements FilterInterface {
10 10
 
11 11
     /**
12 12
      * @inheritdoc
Please login to merge, or discard this patch.