Skip to content

Commit

Permalink
fixed @return when returning this or static
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed Dec 27, 2016
1 parent 0c68dd9 commit fc62f43
Show file tree
Hide file tree
Showing 6 changed files with 67 additions and 67 deletions.
30 changes: 15 additions & 15 deletions Adapter/AdapterInterface.php
Expand Up @@ -19,105 +19,105 @@ interface AdapterInterface
/**
* @param bool $followLinks
*
* @return AdapterInterface Current instance
* @return $this
*/
public function setFollowLinks($followLinks);

/**
* @param int $mode
*
* @return AdapterInterface Current instance
* @return $this
*/
public function setMode($mode);

/**
* @param array $exclude
*
* @return AdapterInterface Current instance
* @return $this
*/
public function setExclude(array $exclude);

/**
* @param array $depths
*
* @return AdapterInterface Current instance
* @return $this
*/
public function setDepths(array $depths);

/**
* @param array $names
*
* @return AdapterInterface Current instance
* @return $this
*/
public function setNames(array $names);

/**
* @param array $notNames
*
* @return AdapterInterface Current instance
* @return $this
*/
public function setNotNames(array $notNames);

/**
* @param array $contains
*
* @return AdapterInterface Current instance
* @return $this
*/
public function setContains(array $contains);

/**
* @param array $notContains
*
* @return AdapterInterface Current instance
* @return $this
*/
public function setNotContains(array $notContains);

/**
* @param array $sizes
*
* @return AdapterInterface Current instance
* @return $this
*/
public function setSizes(array $sizes);

/**
* @param array $dates
*
* @return AdapterInterface Current instance
* @return $this
*/
public function setDates(array $dates);

/**
* @param array $filters
*
* @return AdapterInterface Current instance
* @return $this
*/
public function setFilters(array $filters);

/**
* @param \Closure|int $sort
*
* @return AdapterInterface Current instance
* @return $this
*/
public function setSort($sort);

/**
* @param array $paths
*
* @return AdapterInterface Current instance
* @return $this
*/
public function setPath(array $paths);

/**
* @param array $notPaths
*
* @return AdapterInterface Current instance
* @return $this
*/
public function setNotPath(array $notPaths);

/**
* @param bool $ignore
*
* @return AdapterInterface Current instance
* @return $this
*/
public function ignoreUnreadableDirs($ignore = true);

Expand Down
2 changes: 1 addition & 1 deletion Expression/Expression.php
Expand Up @@ -27,7 +27,7 @@ class Expression implements ValueInterface
/**
* @param string $expr
*
* @return Expression
* @return self
*/
public static function create($expr)
{
Expand Down
16 changes: 8 additions & 8 deletions Expression/Regex.php
Expand Up @@ -55,7 +55,7 @@ class Regex implements ValueInterface
/**
* @param string $expr
*
* @return Regex
* @return self
*
* @throws \InvalidArgumentException
*/
Expand Down Expand Up @@ -173,7 +173,7 @@ public function hasOption($option)
/**
* @param string $option
*
* @return Regex
* @return $this
*/
public function addOption($option)
{
Expand All @@ -187,7 +187,7 @@ public function addOption($option)
/**
* @param string $option
*
* @return Regex
* @return $this
*/
public function removeOption($option)
{
Expand All @@ -199,7 +199,7 @@ public function removeOption($option)
/**
* @param bool $startFlag
*
* @return Regex
* @return $this
*/
public function setStartFlag($startFlag)
{
Expand All @@ -219,7 +219,7 @@ public function hasStartFlag()
/**
* @param bool $endFlag
*
* @return Regex
* @return $this
*/
public function setEndFlag($endFlag)
{
Expand All @@ -239,7 +239,7 @@ public function hasEndFlag()
/**
* @param bool $startJoker
*
* @return Regex
* @return $this
*/
public function setStartJoker($startJoker)
{
Expand All @@ -259,7 +259,7 @@ public function hasStartJoker()
/**
* @param bool $endJoker
*
* @return Regex
* @return $this
*/
public function setEndJoker($endJoker)
{
Expand All @@ -279,7 +279,7 @@ public function hasEndJoker()
/**
* @param array $replacement
*
* @return Regex
* @return $this
*/
public function replaceJokers($replacement)
{
Expand Down
4 changes: 2 additions & 2 deletions Expression/ValueInterface.php
Expand Up @@ -47,14 +47,14 @@ public function getType();
/**
* @param string $expr
*
* @return ValueInterface
* @return $this
*/
public function prepend($expr);

/**
* @param string $expr
*
* @return ValueInterface
* @return $this
*/
public function append($expr);
}

0 comments on commit fc62f43

Please sign in to comment.