Completed
Pull Request — master (#9)
by ARCANEDEV
06:45
created

FileStoring   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 34
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
dl 0
loc 34
c 0
b 0
f 0
wmc 1
lcom 0
cbo 0
ccs 4
cts 4
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
1
<?php namespace Arcanesoft\Media\Events;
2
3
use Illuminate\Http\UploadedFile;
4
5
/**
6
 * Class     UploadedFileStoring
7
 *
8
 * @package  Arcanesoft\Media\Events
9
 * @author   ARCANEDEV <[email protected]>
10
 */
11
class FileStoring
12
{
13
    /* -----------------------------------------------------------------
14
     |  Properties
15
     | -----------------------------------------------------------------
16
     */
17
18
    /** @var  \Illuminate\Http\UploadedFile */
19
    public $file;
20
21
    /** @var  string */
22
    public $destination;
23
24
    /** @var  array */
25
    protected $options;
26
27
    /* -----------------------------------------------------------------
28
     |  Constructor
29
     | -----------------------------------------------------------------
30
     */
31
32
    /**
33
     * UploadedFileStoring constructor.
34
     *
35
     * @param  string                         $destination
36
     * @param  \Illuminate\Http\UploadedFile  $file
37
     * @param  array                          $options
38
     */
39 8
    public function __construct($destination, UploadedFile $file, $options)
0 ignored issues
show
Unused Code introduced by
The parameter $destination is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
40
    {
41 8
        $this->file    = $file;
42 8
        $this->options = $options;
43 8
    }
44
}
45