Skip to content

Commit

Permalink
PHPStan
Browse files Browse the repository at this point in the history
  • Loading branch information
ilestis committed Jan 15, 2025
1 parent 18532a5 commit 2e1a217
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/Models/MiscModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
use App\Models\Scopes\SubEntityScopes;
use Carbon\Carbon;
use Exception;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\HasOne;
use Illuminate\Support\Facades\DB;
Expand All @@ -37,6 +38,8 @@
* @property Carbon $updated_at
* @property int $created_by
* @property int $updated_by
*
* @method static self|Builder sort(array $filters, array $defaultOrder = [])
*/
abstract class MiscModel extends Model
{
Expand Down
1 change: 1 addition & 0 deletions app/Services/Campaign/ExportService.php
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,7 @@ protected function gallery(): self
{
foreach ($this->campaign->images()->with('imageFolder')->get() as $image) {
try {
/** @var Image $image */
$this->processImage($image);
} catch (Exception $e) {
$saveFolder = storage_path($this->exportPath);
Expand Down
1 change: 1 addition & 0 deletions app/Services/Gallery/SetupService.php
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@ protected function folders(): array
->select(['id', 'name'])
->folders()
->get();
/** @var Image $folder */
foreach ($query as $folder) {
$folders[$folder->id] = $folder->name;
}
Expand Down

0 comments on commit 2e1a217

Please sign in to comment.