Skip to content

Commit

Permalink
Applied fixes from StyleCI (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
Grasseh committed Jul 28, 2016
1 parent 3c3599c commit e9f6785
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/controls.php
Expand Up @@ -31,7 +31,7 @@
echo $form->Select('Select a placeholder', 'selCond', $Objects, ['class' => 'form-control'], '', 'Placeholder', 'Wrap');
echo $form->Label('', 'Label', ['class' => 'form-label'], 'Wrap');
echo $form->YesNo('Do you?', 'yesno1', ['class' => 'form-label'], true, 'Wrap');
echo $form->YesNo('Faites-vous?', 'yesno2', ['class' => 'form-label', "yes" => "si", "no" => "nicht"], false, 'Wrap');
echo $form->YesNo('Faites-vous?', 'yesno2', ['class' => 'form-label', 'yes' => 'si', 'no' => 'nicht'], false, 'Wrap');

echo $form->Submit('Go To Github', 'Click Here', ['class' => 'btn'], 'Wrap');
echo $form->close();
Expand Down
1 change: 1 addition & 0 deletions src/anekdotes/Controls/YesNo.php
Expand Up @@ -9,6 +9,7 @@
*/

namespace Anekdotes\FormWrapper\Controls;

use Anekdotes\Support\Arr;

/**
Expand Down
2 changes: 1 addition & 1 deletion tests/controls/YesNoControlTest.php
Expand Up @@ -19,6 +19,6 @@ public function testYesNoPrepare()
{
$control = new YesNo();
$expected = '<div class="radio"><label><input type="radio" checked name="test" value="1" class="toaster">maybe</label></div><div class="radio"><label><input type="radio" name="test" value="0" class="toaster">No</label></div>';
$this->assertEquals($control->prepare(['test', ['class' => 'toaster','yes' => 'maybe'], true]), $expected);
$this->assertEquals($control->prepare(['test', ['class' => 'toaster', 'yes' => 'maybe'], true]), $expected);
}
}

0 comments on commit e9f6785

Please sign in to comment.