Skip to content

Commit 16483a0

Browse files
committed
Minor reword
1 parent 4bf5789 commit 16483a0

File tree

1 file changed

+15
-11
lines changed

1 file changed

+15
-11
lines changed

components/finder.rst

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -197,11 +197,12 @@ Restrict files by name with the
197197

198198
$finder->files()->name('*.php');
199199

200-
The ``name()`` method accepts globs, strings, regexes or an array of globs, strings or regexes::
200+
The ``name()`` method accepts globs, strings, regexes or an array of globs,
201+
strings or regexes::
201202

202203
$finder->files()->name('/\.php$/');
203204

204-
Multiple files names can be defined by chaining calls or using an array as parameter::
205+
Multiple files names can be defined by chaining calls or passing an array::
205206

206207
$finder->files()->name('*.php')->name('*.twig');
207208

@@ -212,15 +213,16 @@ The ``notName()`` method excludes files matching a pattern::
212213

213214
$finder->files()->notName('*.rb');
214215

215-
Multiple files names can be excluded by chaining calls or using an array as parameter::
216+
Multiple files names can be excluded by chaining calls or passing an array::
216217

217218
$finder->files()->notName('*.rb')->notName('*.py');
218219

219220
// same as above
220221
$finder->files()->notName(array('*.rb', '*.py'));
221222

222223
.. versionadded:: 4.2
223-
Passing an array as parameter for method ``name()`` and ``notName()`` was introduced in Symfony 4.2
224+
Passing an array as parameter for method ``name()`` and ``notName()`` was
225+
introduced in Symfony 4.2
224226

225227
File Contents
226228
~~~~~~~~~~~~~
@@ -251,20 +253,22 @@ Restrict files and directories by path with the
251253

252254
On all platforms slash (i.e. ``/``) should be used as the directory separator.
253255

254-
The ``path()`` method accepts a string, a regular expression or an array of strings or regulars expressions::
256+
The ``path()`` method accepts a string, a regular expression or an array of
257+
strings or regulars expressions::
255258

256259
$finder->path('foo/bar');
257260
$finder->path('/^foo\/bar/');
258261

259-
Multiple paths can be defined by chaining calls or using an array as parameter::
262+
Multiple paths can be defined by chaining calls or passing an array::
260263

261264
$finder->path('data')->path('foo/bar');
262265

263266
// same as above
264267
$finder->path(array('data', 'foo/bar'));
265268

266269
.. versionadded:: 4.2
267-
Passing an array as parameter for method ``path()`` and ``notPath()`` was introduced in Symfony 4.2
270+
Passing an array as parameter for method ``path()`` and ``notPath()`` was
271+
introduced in Symfony 4.2
268272

269273
Internally, strings are converted into regular expressions by escaping slashes
270274
and adding delimiters:
@@ -278,7 +282,7 @@ The :method:`Symfony\\Component\\Finder\\Finder::notPath` method excludes files
278282

279283
$finder->notPath('other/dir');
280284

281-
Multiple paths can be excluded by chaining calls or using an array as parameter::
285+
Multiple paths can be excluded by chaining calls or passing an array::
282286

283287
$finder->notPath('first/dir')->notPath('other/dir');
284288

@@ -296,7 +300,7 @@ Restrict files by size with the
296300

297301
$finder->files()->size('< 1.5K');
298302

299-
Restrict by a size range by chaining calls or using an array as argument::
303+
Restrict by a size range by chaining calls or passing an array::
300304

301305
$finder->files()->size('>= 1K')->size('<= 2K');
302306

@@ -321,7 +325,7 @@ Restrict files by last modified dates with the
321325

322326
$finder->date('since yesterday');
323327

324-
Restrict by a date range by chaining calls or using an array as argument::
328+
Restrict by a date range by chaining calls or passing an array::
325329

326330
$finder->date('>= 2018-01-01')->size('<= 2018-12-31');
327331

@@ -346,7 +350,7 @@ traversing with :method:`Symfony\\Component\\Finder\\Finder::depth`::
346350
$finder->depth('== 0');
347351
$finder->depth('< 3');
348352

349-
Restrict by a depth range by chaining calls or using an array as argument::
353+
Restrict by a depth range by chaining calls or passing an array::
350354

351355
$finder->depth('> 2')->depth('< 5');
352356

0 commit comments

Comments
 (0)