Skip to content

Commit

Permalink
Merge pull request #18 from danielboendergaard/fix-docblock-return-types
Browse files Browse the repository at this point in the history
Change docblock return types from self to static
  • Loading branch information
JeffreyWay committed Mar 27, 2015
2 parents fb6c6db + 03b4494 commit 13edbc8
Show file tree
Hide file tree
Showing 6 changed files with 51 additions and 51 deletions.
30 changes: 15 additions & 15 deletions src/Emulator.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,47 +8,47 @@ interface Emulator
* Make a GET request to the given page.
*
* @param string $page
* @return self
* @return static
*/
public function visit($page);

/**
* Search the DOM for the given text.
*
* @param string $text
* @return self
* @return static
*/
public function see($text);

/**
* Convenience method that defers to onPage.
*
* @param string $page
* @return self
* @return static
*/
public function seePageIs($page);

/**
* Assert that the current page is...
*
* @param string $page
* @return self
* @return static
*/
public function onPage($page);

/**
* Click a link with the given body.
*
* @param string $text
* @return self
* @return static
*/
public function click($text);

/**
* Alias that points to the click method.
*
* @param string $text
* @return self
* @return static
*/
public function follow($text);

Expand All @@ -57,15 +57,15 @@ public function follow($text);
*
* @param string $buttonText
* @param array|null $formData
* @return self
* @return static
*/
public function submitForm($buttonText, $formData = null);

/**
* Press the form submit button with the given text.
*
* @param string $buttonText
* @return self
* @return static
*/
public function press($buttonText);

Expand All @@ -74,7 +74,7 @@ public function press($buttonText);
*
* @param string $text
* @param string $element
* @return self
* @return static
*/
public function type($text, $element);

Expand All @@ -83,23 +83,23 @@ public function type($text, $element);
*
* @param string $text
* @param string $element
* @return self
* @return static
*/
public function fill($text, $element);

/**
* Check a checkbox.
*
* @param string $element
* @return self
* @return static
*/
public function check($element);

/**
* Alias that defers to check method.
*
* @param string $element
* @return self
* @return static
*/
public function tick($element);

Expand All @@ -108,7 +108,7 @@ public function tick($element);
*
* @param string $element
* @param string $option
* @return self
* @return static
*/
public function select($element, $option);

Expand All @@ -117,7 +117,7 @@ public function select($element, $option);
*
* @param string $table
* @param array $data
* @return self
* @return static
*/
public function seeInDatabase($table, array $data);

Expand All @@ -126,7 +126,7 @@ public function seeInDatabase($table, array $data);
*
* @param string $table
* @param array $data
* @return self
* @return static
*/
public function verifyInDatabase($table, array $data);

Expand Down
4 changes: 2 additions & 2 deletions src/Extensions/Goutte.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public function baseUrl()
*
* @param string $buttonText
* @param array|null $formData
* @return self
* @return static
*/
public function submitForm($buttonText, $formData = null)
{
Expand All @@ -71,7 +71,7 @@ public function submitForm($buttonText, $formData = null)
* @param string $requestType
* @param string $uri
* @param array $parameters
* @return self
* @return static
*/
protected function makeRequest($requestType, $uri)
{
Expand Down
32 changes: 16 additions & 16 deletions src/Extensions/IntegrationTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public function setUp()
* Make a GET request to the given uri.
*
* @param string $url
* @return self
* @return static
*/
public function visit($uri)
{
Expand Down Expand Up @@ -99,7 +99,7 @@ protected function prepareUrl($url)
* Search the DOM for the given text.
*
* @param string $text
* @return self
* @return static
*/
public function see($text)
{
Expand All @@ -122,7 +122,7 @@ public function see($text)
* Assert that the current page matches a uri.
*
* @param string $uri
* @return self
* @return static
*/
public function seePageIs($uri)
{
Expand All @@ -139,7 +139,7 @@ public function seePageIs($uri)
* Alias that defers to seePageIs.
*
* @param string $page
* @return self
* @return static
*/
public function onPage($page)
{
Expand All @@ -150,7 +150,7 @@ public function onPage($page)
* Click a link with the given body.
*
* @param string $name
* @return self
* @return static
*/
public function click($name)
{
Expand Down Expand Up @@ -179,7 +179,7 @@ public function click($name)
* Alias that points to the click method.
*
* @param string $text
* @return self
* @return static
*/
public function follow($text)
{
Expand All @@ -191,7 +191,7 @@ public function follow($text)
*
* @param string $text
* @param string $element
* @return self
* @return static
*/
public function type($text, $element)
{
Expand All @@ -203,7 +203,7 @@ public function type($text, $element)
*
* @param string $text
* @param string $element
* @return self
* @return static
*/
public function fill($text, $element)
{
Expand All @@ -214,7 +214,7 @@ public function fill($text, $element)
* Check a checkbox.
*
* @param string $element
* @return self
* @return static
*/
public function check($element)
{
Expand All @@ -225,7 +225,7 @@ public function check($element)
* Alias that defers to check method.
*
* @param string $element
* @return self
* @return static
*/
public function tick($element)
{
Expand All @@ -237,7 +237,7 @@ public function tick($element)
*
* @param string $element
* @param string $option
* @return self
* @return static
*/
public function select($element, $option)
{
Expand All @@ -249,7 +249,7 @@ public function select($element, $option)
*
* @param string $name
* @param string $value
* @return self
* @return static
*/
protected function storeInput($name, $value)
{
Expand All @@ -266,7 +266,7 @@ protected function storeInput($name, $value)
* Press the form submit button with the given text.
*
* @param string $buttonText
* @return self
* @return static
*/
public function press($buttonText)
{
Expand Down Expand Up @@ -380,7 +380,7 @@ protected function assertFilterProducedResults($filter)
*
* @param string $table
* @param array $data
* @return self
* @return static
*/
public function seeInDatabase($table, array $data)
{
Expand All @@ -401,7 +401,7 @@ public function seeInDatabase($table, array $data)
*
* @param string $table
* @param array $data
* @return self
* @return static
*/
public function verifyInDatabase($table, array $data)
{
Expand All @@ -411,7 +411,7 @@ public function verifyInDatabase($table, array $data)
/**
* Clear out the inputs array.
*
* @return self
* @return static
*/
protected function clearInputs()
{
Expand Down
6 changes: 3 additions & 3 deletions src/Extensions/Laravel.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public function baseUrl()
*
* @param string $buttonText
* @param array $formData
* @return self
* @return static
*/
public function submitForm($buttonText, $formData = [])
{
Expand All @@ -54,7 +54,7 @@ public function submitForm($buttonText, $formData = [])
* @param string $requestType
* @param string $uri
* @param array $parameters
* @return self
* @return static
*/
protected function makeRequest($requestType, $uri, $parameters = [])
{
Expand Down Expand Up @@ -90,7 +90,7 @@ protected function followRedirects()
* Make a request to a URL using form parameters.
*
* @param Form $form
* @return self
* @return static
*/
protected function makeRequestUsingForm(Form $form)
{
Expand Down
Loading

0 comments on commit 13edbc8

Please sign in to comment.