Skip to content

Commit 950038b

Browse files
committed
update manager parameter name
1 parent b6f2668 commit 950038b

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/Manager.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,23 +25,23 @@ class Manager
2525
private $path;
2626

2727
/**
28-
* the paths to the views,app files.
28+
* The paths to directories where we look for localised strings to sync.
2929
*
3030
* @var array
3131
*/
32-
private $allFiles;
32+
private $syncPaths;
3333

3434
/**
3535
* Manager constructor.
3636
*
3737
* @param Filesystem $disk
3838
* @param string $path
3939
*/
40-
public function __construct(Filesystem $disk, $path, array $allFiles)
40+
public function __construct(Filesystem $disk, $path, array $syncPaths)
4141
{
4242
$this->disk = $disk;
4343
$this->path = $path;
44-
$this->allFiles = $allFiles;
44+
$this->syncPaths = $syncPaths;
4545
}
4646

4747
/**
@@ -53,7 +53,7 @@ public function __construct(Filesystem $disk, $path, array $allFiles)
5353
*/
5454
public function files()
5555
{
56-
$files = Collection::make($this->disk->allFiles($this->path));
56+
$files = Collection::make($this->disk->syncPaths($this->path));
5757

5858
$filesByFile = $files->groupBy(function ($file) {
5959
$fileName = $file->getBasename('.'.$file->getExtension());
@@ -274,7 +274,7 @@ public function collectFromViews()
274274
;
275275

276276
/** @var \Symfony\Component\Finder\SplFileInfo $file */
277-
foreach ($this->disk->allFiles($this->allFiles) as $file) {
277+
foreach ($this->disk->allFiles($this->syncPaths) as $file) {
278278
if (preg_match_all("/$pattern/siU", $file->getContents(), $matches)) {
279279
foreach ($matches[2] as $key) {
280280
try {

0 commit comments

Comments
 (0)