Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/Commands/ExportEntries.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class ExportEntries extends Command
public function handle()
{
$this->usingDefaultRepositories(function () {
$this->importEntries();
$this->exportEntries();
});

return 0;
Expand All @@ -61,9 +61,9 @@ private function usingDefaultRepositories(Closure $callback)
$callback();
}

private function importEntries()
private function exportEntries()
{
$entries = app('statamic.eloquent.entries.entry')::all();
$entries = app('statamic.eloquent.entries.model')::all();

$entriesWithOrigin = $entries->filter(function ($model) {
return (bool) $model->origin_id;
Expand All @@ -74,7 +74,7 @@ private function importEntries()
});

if ($entriesWithOrigin->count() > 0) {
$this->info('Importing origin entries');
$this->info('Exporting origin entries');
}

$this->withProgressBar($entriesWithoutOrigin, function ($model) {
Expand Down Expand Up @@ -104,7 +104,7 @@ private function importEntries()

if ($entriesWithOrigin->count() > 0) {
$this->newLine();
$this->info('Importing localized entries');
$this->info('Exporting localized entries');

$this->withProgressBar($entriesWithOrigin, function ($model) {
$entry = Entry::make()
Expand Down