Completed
Pull Request — master (#127)
by Kevin
07:07
created
lib/Actions/SetFormValue.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,6 @@
 block discarded – undo
6 6
 use Facebook\WebDriver\WebDriverElement;
7 7
 use Facebook\WebDriver\WebDriverSelect;
8 8
 use Magium\NotFoundException;
9
-use Magium\WebDriver\FastSelectElement;
10 9
 use Magium\WebDriver\WebDriver;
11 10
 
12 11
 class SetFormValue
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
 
30 30
     public function setById($id, $value)
31 31
     {
32
-        $this->set('id:' . $id, $value);
32
+        $this->set('id:'.$id, $value);
33 33
     }
34 34
 
35 35
     public function set($name, $value)
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
         } else {
42 42
             $element = $this->webDriver->byXpath(sprintf('//label[.="%s"]', $name));
43 43
             if (!$element->getAttribute('for')) {
44
-                throw new NotFoundException('Unable to find the "for" attribute for a label with the text: ' . $name);
44
+                throw new NotFoundException('Unable to find the "for" attribute for a label with the text: '.$name);
45 45
             }
46 46
             $formElement = $this->webDriver->byId($element->getAttribute('for'));
47 47
         }
Please login to merge, or discard this patch.