31
31
*
32
32
* All methods return the current Finder object to allow easy chaining:
33
33
*
34
- * $finder = Finder::create()->files()->name('*.php')->in(__DIR__);
34
+ * $finder = Finder::create()->files()->name('*.php')->in(__DIR__);
35
35
*
36
36
* @author Fabien Potencier <[email protected] >
37
37
*/
@@ -105,8 +105,8 @@ public function files()
105
105
*
106
106
* Usage:
107
107
*
108
- * $finder->depth('> 1') // the Finder will start matching at level 1.
109
- * $finder->depth('< 3') // the Finder will descend at most 3 levels of directories below the starting point.
108
+ * $finder->depth('> 1') // the Finder will start matching at level 1.
109
+ * $finder->depth('< 3') // the Finder will descend at most 3 levels of directories below the starting point.
110
110
*
111
111
* @param string|int $level The depth level expression
112
112
*
@@ -127,10 +127,10 @@ public function depth($level)
127
127
*
128
128
* The date must be something that strtotime() is able to parse:
129
129
*
130
- * $finder->date('since yesterday');
131
- * $finder->date('until 2 days ago');
132
- * $finder->date('> now - 2 hours');
133
- * $finder->date('>= 2005-10-15');
130
+ * $finder->date('since yesterday');
131
+ * $finder->date('until 2 days ago');
132
+ * $finder->date('> now - 2 hours');
133
+ * $finder->date('>= 2005-10-15');
134
134
*
135
135
* @param string $date A date range string
136
136
*
@@ -152,9 +152,9 @@ public function date($date)
152
152
*
153
153
* You can use patterns (delimited with / sign), globs or simple strings.
154
154
*
155
- * $finder->name('*.php')
156
- * $finder->name('/\.php$/') // same as above
157
- * $finder->name('test.php')
155
+ * $finder->name('*.php')
156
+ * $finder->name('/\.php$/') // same as above
157
+ * $finder->name('test.php')
158
158
*
159
159
* @param string $pattern A pattern (a regexp, a glob, or a string)
160
160
*
@@ -190,8 +190,8 @@ public function notName($pattern)
190
190
*
191
191
* Strings or PCRE patterns can be used:
192
192
*
193
- * $finder->contains('Lorem ipsum')
194
- * $finder->contains('/Lorem ipsum/i')
193
+ * $finder->contains('Lorem ipsum')
194
+ * $finder->contains('/Lorem ipsum/i')
195
195
*
196
196
* @param string $pattern A pattern (string or regexp)
197
197
*
@@ -211,8 +211,8 @@ public function contains($pattern)
211
211
*
212
212
* Strings or PCRE patterns can be used:
213
213
*
214
- * $finder->notContains('Lorem ipsum')
215
- * $finder->notContains('/Lorem ipsum/i')
214
+ * $finder->notContains('Lorem ipsum')
215
+ * $finder->notContains('/Lorem ipsum/i')
216
216
*
217
217
* @param string $pattern A pattern (string or regexp)
218
218
*
@@ -232,8 +232,8 @@ public function notContains($pattern)
232
232
*
233
233
* You can use patterns (delimited with / sign) or simple strings.
234
234
*
235
- * $finder->path('some/special/dir')
236
- * $finder->path('/some\/special\/dir/') // same as above
235
+ * $finder->path('some/special/dir')
236
+ * $finder->path('/some\/special\/dir/') // same as above
237
237
*
238
238
* Use only / as dirname separator.
239
239
*
@@ -255,8 +255,8 @@ public function path($pattern)
255
255
*
256
256
* You can use patterns (delimited with / sign) or simple strings.
257
257
*
258
- * $finder->notPath('some/special/dir')
259
- * $finder->notPath('/some\/special\/dir/') // same as above
258
+ * $finder->notPath('some/special/dir')
259
+ * $finder->notPath('/some\/special\/dir/') // same as above
260
260
*
261
261
* Use only / as dirname separator.
262
262
*
@@ -276,9 +276,9 @@ public function notPath($pattern)
276
276
/**
277
277
* Adds tests for file sizes.
278
278
*
279
- * $finder->size('> 10K');
280
- * $finder->size('<= 1Ki');
281
- * $finder->size(4);
279
+ * $finder->size('> 10K');
280
+ * $finder->size('<= 1Ki');
281
+ * $finder->size(4);
282
282
*
283
283
* @param string|int $size A size range string or an integer
284
284
*
@@ -589,7 +589,7 @@ public function getIterator()
589
589
*
590
590
* The set can be another Finder, an Iterator, an IteratorAggregate, or even a plain array.
591
591
*
592
- * @param mixed $iterator
592
+ * @param iterable $iterator
593
593
*
594
594
* @return $this
595
595
*
0 commit comments