We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aec23cc commit 6b8145fCopy full SHA for 6b8145f
src/Scopes/ImportScope.php
@@ -27,7 +27,12 @@ public function scopeUnCompleted(Builder $builder): Builder
27
return $builder->whereNull('completed_at');
28
}
29
30
- public function percentageComplete()
+ /**
31
+ * Get the percentage of the model completion
32
+ *
33
+ * @return int
34
+ */
35
+ public function percentageComplete(): int
36
{
37
return floor(($this->processed_rows / $this->total_rows) * 100);
38
0 commit comments