• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

plank / laravel-mediable / 4211702964

pending completion
4211702964

push

github

GitHub
Bump actions/cache from 2 to 3

1193 of 1260 relevant lines covered (94.68%)

117.31 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

25.0
/src/Exceptions/MediaMoveException.php
1
<?php
2
declare(strict_types=1);
3

4
namespace Plank\Mediable\Exceptions;
5

6
use Exception;
7

8
class MediaMoveException extends Exception
9
{
10
    public static function destinationExists(string $path): self
11
    {
12
        return new static("Another file already exists at `{$path}`.");
12✔
13
    }
14

15
    public static function destinationExistsOnDisk(string $disk, string $path): self
16
    {
17
        return new static("Another file already exists at `{$path}` on disk `{$disk}`.");
×
18
    }
19

20
    public static function fileNotFound(string $disk, string $path, Exception $previous = null): self
21
    {
22
        return new static("File not found at `{$path}` on disk `{$disk}`.", 0, $previous);
×
23
    }
24

25
    public static function failedToCopy(string $from, string $to, Exception $previous = null): self
26
    {
27
        return new static("Failed to copy file from `{$from}` to `{$to}`.", 0, $previous);
×
28
    }
29
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc