Skip to content

Commit fc62f43

Browse files
committed
fixed @return when returning this or static
1 parent 0c68dd9 commit fc62f43

File tree

6 files changed

+67
-67
lines changed

6 files changed

+67
-67
lines changed

Adapter/AdapterInterface.php

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -19,105 +19,105 @@ interface AdapterInterface
1919
/**
2020
* @param bool $followLinks
2121
*
22-
* @return AdapterInterface Current instance
22+
* @return $this
2323
*/
2424
public function setFollowLinks($followLinks);
2525

2626
/**
2727
* @param int $mode
2828
*
29-
* @return AdapterInterface Current instance
29+
* @return $this
3030
*/
3131
public function setMode($mode);
3232

3333
/**
3434
* @param array $exclude
3535
*
36-
* @return AdapterInterface Current instance
36+
* @return $this
3737
*/
3838
public function setExclude(array $exclude);
3939

4040
/**
4141
* @param array $depths
4242
*
43-
* @return AdapterInterface Current instance
43+
* @return $this
4444
*/
4545
public function setDepths(array $depths);
4646

4747
/**
4848
* @param array $names
4949
*
50-
* @return AdapterInterface Current instance
50+
* @return $this
5151
*/
5252
public function setNames(array $names);
5353

5454
/**
5555
* @param array $notNames
5656
*
57-
* @return AdapterInterface Current instance
57+
* @return $this
5858
*/
5959
public function setNotNames(array $notNames);
6060

6161
/**
6262
* @param array $contains
6363
*
64-
* @return AdapterInterface Current instance
64+
* @return $this
6565
*/
6666
public function setContains(array $contains);
6767

6868
/**
6969
* @param array $notContains
7070
*
71-
* @return AdapterInterface Current instance
71+
* @return $this
7272
*/
7373
public function setNotContains(array $notContains);
7474

7575
/**
7676
* @param array $sizes
7777
*
78-
* @return AdapterInterface Current instance
78+
* @return $this
7979
*/
8080
public function setSizes(array $sizes);
8181

8282
/**
8383
* @param array $dates
8484
*
85-
* @return AdapterInterface Current instance
85+
* @return $this
8686
*/
8787
public function setDates(array $dates);
8888

8989
/**
9090
* @param array $filters
9191
*
92-
* @return AdapterInterface Current instance
92+
* @return $this
9393
*/
9494
public function setFilters(array $filters);
9595

9696
/**
9797
* @param \Closure|int $sort
9898
*
99-
* @return AdapterInterface Current instance
99+
* @return $this
100100
*/
101101
public function setSort($sort);
102102

103103
/**
104104
* @param array $paths
105105
*
106-
* @return AdapterInterface Current instance
106+
* @return $this
107107
*/
108108
public function setPath(array $paths);
109109

110110
/**
111111
* @param array $notPaths
112112
*
113-
* @return AdapterInterface Current instance
113+
* @return $this
114114
*/
115115
public function setNotPath(array $notPaths);
116116

117117
/**
118118
* @param bool $ignore
119119
*
120-
* @return AdapterInterface Current instance
120+
* @return $this
121121
*/
122122
public function ignoreUnreadableDirs($ignore = true);
123123

Expression/Expression.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class Expression implements ValueInterface
2727
/**
2828
* @param string $expr
2929
*
30-
* @return Expression
30+
* @return self
3131
*/
3232
public static function create($expr)
3333
{

Expression/Regex.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ class Regex implements ValueInterface
5555
/**
5656
* @param string $expr
5757
*
58-
* @return Regex
58+
* @return self
5959
*
6060
* @throws \InvalidArgumentException
6161
*/
@@ -173,7 +173,7 @@ public function hasOption($option)
173173
/**
174174
* @param string $option
175175
*
176-
* @return Regex
176+
* @return $this
177177
*/
178178
public function addOption($option)
179179
{
@@ -187,7 +187,7 @@ public function addOption($option)
187187
/**
188188
* @param string $option
189189
*
190-
* @return Regex
190+
* @return $this
191191
*/
192192
public function removeOption($option)
193193
{
@@ -199,7 +199,7 @@ public function removeOption($option)
199199
/**
200200
* @param bool $startFlag
201201
*
202-
* @return Regex
202+
* @return $this
203203
*/
204204
public function setStartFlag($startFlag)
205205
{
@@ -219,7 +219,7 @@ public function hasStartFlag()
219219
/**
220220
* @param bool $endFlag
221221
*
222-
* @return Regex
222+
* @return $this
223223
*/
224224
public function setEndFlag($endFlag)
225225
{
@@ -239,7 +239,7 @@ public function hasEndFlag()
239239
/**
240240
* @param bool $startJoker
241241
*
242-
* @return Regex
242+
* @return $this
243243
*/
244244
public function setStartJoker($startJoker)
245245
{
@@ -259,7 +259,7 @@ public function hasStartJoker()
259259
/**
260260
* @param bool $endJoker
261261
*
262-
* @return Regex
262+
* @return $this
263263
*/
264264
public function setEndJoker($endJoker)
265265
{
@@ -279,7 +279,7 @@ public function hasEndJoker()
279279
/**
280280
* @param array $replacement
281281
*
282-
* @return Regex
282+
* @return $this
283283
*/
284284
public function replaceJokers($replacement)
285285
{

Expression/ValueInterface.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,14 @@ public function getType();
4747
/**
4848
* @param string $expr
4949
*
50-
* @return ValueInterface
50+
* @return $this
5151
*/
5252
public function prepend($expr);
5353

5454
/**
5555
* @param string $expr
5656
*
57-
* @return ValueInterface
57+
* @return $this
5858
*/
5959
public function append($expr);
6060
}

0 commit comments

Comments
 (0)