Passed
Pull Request — master (#1)
by Rob
03:03
created

ResizableTrait   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
dl 0
loc 20
rs 10
c 1
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getSizes() 0 3 1
A getResizables() 0 3 1
1
<?php
2
3
namespace Rvdlee\ZfImageResizer\Traits;
4
5
use Rvdlee\ZfImageResizer\Model\Image;
6
7
trait ResizableTrait
8
{
9
    /**
10
     * This function will return the properties that are resizable.
11
     *
12
     * @return array
13
     */
14
    public function getResizables(): array
15
    {
16
        return self::RESIZEABLES;
0 ignored issues
show
Bug introduced by
The constant Rvdlee\ZfImageResizer\Tr...zableTrait::RESIZEABLES was not found. Maybe you did not declare it correctly or list all dependencies?
Loading history...
17
    }
18
19
    /**
20
     * This function will return the sizes that are accepted by the resize service.
21
     *
22
     * @return array
23
     */
24
    public function getSizes(): array
25
    {
26
        return self::SIZES;
0 ignored issues
show
Bug introduced by
The constant Rvdlee\ZfImageResizer\Traits\ResizableTrait::SIZES was not found. Maybe you did not declare it correctly or list all dependencies?
Loading history...
27
    }
28
}