Skip to content

Commit 6d637f7

Browse files
authored
Merge pull request #774 from loic425/fix/boolean
Rename boolean type in lowercase
2 parents 153e4bb + b486428 commit 6d637f7

8 files changed

Lines changed: 28 additions & 28 deletions

File tree

src/Driver/DriverInterface.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public function start();
5353
/**
5454
* Checks whether driver is started.
5555
*
56-
* @return Boolean
56+
* @return boolean
5757
*/
5858
public function isStarted();
5959

@@ -142,7 +142,7 @@ public function back();
142142
/**
143143
* Sets HTTP Basic authentication parameters.
144144
*
145-
* @param string|Boolean $user user name or false to disable authentication
145+
* @param string|boolean $user user name or false to disable authentication
146146
* @param string $password password
147147
*
148148
* @throws UnsupportedDriverActionException When operation not supported by the driver
@@ -394,7 +394,7 @@ public function uncheck($xpath);
394394
*
395395
* @param string $xpath
396396
*
397-
* @return Boolean
397+
* @return boolean
398398
*
399399
* @throws UnsupportedDriverActionException When operation not supported by the driver
400400
* @throws DriverException When the operation cannot be done
@@ -408,7 +408,7 @@ public function isChecked($xpath);
408408
*
409409
* @param string $xpath
410410
* @param string $value
411-
* @param Boolean $multiple
411+
* @param boolean $multiple
412412
*
413413
* @throws UnsupportedDriverActionException When operation not supported by the driver
414414
* @throws DriverException When the operation cannot be done
@@ -422,7 +422,7 @@ public function selectOption($xpath, $value, $multiple = false);
422422
*
423423
* @param string $xpath
424424
*
425-
* @return Boolean
425+
* @return boolean
426426
*
427427
* @throws UnsupportedDriverActionException When operation not supported by the driver
428428
* @throws DriverException When the operation cannot be done
@@ -479,7 +479,7 @@ public function attachFile($xpath, $path);
479479
*
480480
* @param string $xpath
481481
*
482-
* @return Boolean
482+
* @return boolean
483483
*
484484
* @throws UnsupportedDriverActionException When operation not supported by the driver
485485
* @throws DriverException When the operation cannot be done

src/Element/DocumentElement.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public function getContent()
4242
*
4343
* @param string $content
4444
*
45-
* @return Boolean
45+
* @return boolean
4646
*/
4747
public function hasContent($content)
4848
{

src/Element/ElementInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public function getSession();
4141
* @param string $selector selector engine name
4242
* @param string|array $locator selector locator
4343
*
44-
* @return Boolean
44+
* @return boolean
4545
*
4646
* @see ElementInterface::findAll for the supported selectors
4747
*/

src/Element/NodeElement.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ public function setValue($value)
110110
*
111111
* @param string $name
112112
*
113-
* @return Boolean
113+
* @return boolean
114114
*/
115115
public function hasAttribute($name)
116116
{
@@ -198,11 +198,11 @@ public function uncheck()
198198
*
199199
* Calling this method on any other elements is not allowed.
200200
*
201-
* @return Boolean
201+
* @return boolean
202202
*/
203203
public function isChecked()
204204
{
205-
return (Boolean) $this->getDriver()->isChecked($this->getXpath());
205+
return (boolean) $this->getDriver()->isChecked($this->getXpath());
206206
}
207207

208208
/**
@@ -216,7 +216,7 @@ public function isChecked()
216216
* Calling this method on any other elements is not allowed.
217217
*
218218
* @param string $option
219-
* @param Boolean $multiple whether the option should be added to the selection for multiple selects
219+
* @param boolean $multiple whether the option should be added to the selection for multiple selects
220220
*
221221
* @throws ElementNotFoundException when the option is not found in the select box
222222
*/
@@ -242,11 +242,11 @@ public function selectOption($option, $multiple = false)
242242
*
243243
* Calling this method on any other elements is not allowed.
244244
*
245-
* @return Boolean
245+
* @return boolean
246246
*/
247247
public function isSelected()
248248
{
249-
return (Boolean) $this->getDriver()->isSelected($this->getXpath());
249+
return (boolean) $this->getDriver()->isSelected($this->getXpath());
250250
}
251251

252252
/**
@@ -264,11 +264,11 @@ public function attachFile($path)
264264
/**
265265
* Checks whether current node is visible on page.
266266
*
267-
* @return Boolean
267+
* @return boolean
268268
*/
269269
public function isVisible()
270270
{
271-
return (Boolean) $this->getDriver()->isVisible($this->getXpath());
271+
return (boolean) $this->getDriver()->isVisible($this->getXpath());
272272
}
273273

274274
/**

src/Element/TraversableElement.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public function findById($id)
3636
*
3737
* @param string $locator link id, title, text or image alt
3838
*
39-
* @return Boolean
39+
* @return boolean
4040
*/
4141
public function hasLink($locator)
4242
{
@@ -78,7 +78,7 @@ public function clickLink($locator)
7878
*
7979
* @param string $locator button id, value or alt
8080
*
81-
* @return Boolean
81+
* @return boolean
8282
*/
8383
public function hasButton($locator)
8484
{
@@ -120,7 +120,7 @@ public function pressButton($locator)
120120
*
121121
* @param string $locator input id, name or label
122122
*
123-
* @return Boolean
123+
* @return boolean
124124
*/
125125
public function hasField($locator)
126126
{
@@ -165,7 +165,7 @@ public function fillField($locator, $value)
165165
*
166166
* @param string $locator input id, name or label
167167
*
168-
* @return Boolean
168+
* @return boolean
169169
*
170170
* @see NodeElement::isChecked
171171
*/
@@ -181,7 +181,7 @@ public function hasCheckedField($locator)
181181
*
182182
* @param string $locator input id, name or label
183183
*
184-
* @return Boolean
184+
* @return boolean
185185
*
186186
* @see NodeElement::isChecked
187187
*/
@@ -233,7 +233,7 @@ public function uncheckField($locator)
233233
*
234234
* @param string $locator select id, name or label
235235
*
236-
* @return Boolean
236+
* @return boolean
237237
*/
238238
public function hasSelect($locator)
239239
{
@@ -245,7 +245,7 @@ public function hasSelect($locator)
245245
*
246246
* @param string $locator input id, name or label
247247
* @param string $value option value
248-
* @param Boolean $multiple select multiple options
248+
* @param boolean $multiple select multiple options
249249
*
250250
* @throws ElementNotFoundException
251251
*
@@ -267,7 +267,7 @@ public function selectFieldOption($locator, $value, $multiple = false)
267267
*
268268
* @param string $locator table id or caption
269269
*
270-
* @return Boolean
270+
* @return boolean
271271
*/
272272
public function hasTable($locator)
273273
{

src/Mink.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public function registerSession($name, Session $session)
6464
*
6565
* @param string $name
6666
*
67-
* @return Boolean
67+
* @return boolean
6868
*/
6969
public function hasSession($name)
7070
{

src/Selector/SelectorsHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public function registerSelector($name, SelectorInterface $selector)
5656
*
5757
* @param string $name selector engine name
5858
*
59-
* @return Boolean
59+
* @return boolean
6060
*/
6161
public function isSelectorRegistered($name)
6262
{

src/Session.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public function __construct(DriverInterface $driver, SelectorsHandler $selectors
4747
/**
4848
* Checks whether session (driver) was started.
4949
*
50-
* @return Boolean
50+
* @return boolean
5151
*/
5252
public function isStarted()
5353
{
@@ -151,7 +151,7 @@ public function visit($url)
151151
/**
152152
* Sets HTTP Basic authentication parameters.
153153
*
154-
* @param string|Boolean $user user name or false to disable authentication
154+
* @param string|boolean $user user name or false to disable authentication
155155
* @param string $password password
156156
*/
157157
public function setBasicAuth($user, $password = '')

0 commit comments

Comments
 (0)