1 | <?php |
||
20 | class ImageStyler |
||
21 | { |
||
22 | /** |
||
23 | * @var |
||
24 | */ |
||
25 | private $compression = 90; |
||
26 | /** |
||
27 | * @var |
||
28 | */ |
||
29 | private $cropCoordinates = []; |
||
30 | /** |
||
31 | * @var |
||
32 | */ |
||
33 | private $driver = 'gd'; |
||
34 | /** |
||
35 | * @var |
||
36 | */ |
||
37 | private $focusCoordinates = []; |
||
38 | /** |
||
39 | * @var \Intervention\Image\Image |
||
40 | */ |
||
41 | private $image; |
||
42 | /** |
||
43 | * @var |
||
44 | */ |
||
45 | private $manager; |
||
46 | /** |
||
47 | * @var array |
||
48 | */ |
||
49 | private $styleData = []; |
||
50 | |||
51 | /** |
||
52 | * ImageStyler constructor. |
||
53 | * |
||
54 | * @param array $responsiveImageConfig |
||
55 | */ |
||
56 | public function __construct($responsiveImageConfig = []) |
||
65 | |||
66 | /** |
||
67 | * Separates the crop and focus coordinates from the image object and stores them. |
||
68 | * |
||
69 | * @param $cropFocusCoords |
||
70 | */ |
||
71 | public function setCoordinateGroups($cropFocusCoords) |
||
78 | |||
79 | /** |
||
80 | * Returns the style information of a defined style. |
||
81 | * |
||
82 | * @param array $style |
||
83 | */ |
||
84 | public function setStyleData($style = []) |
||
91 | |||
92 | /** |
||
93 | * @param $width |
||
94 | * @param $height |
||
95 | */ |
||
96 | protected function scaleImage($width, $height) |
||
106 | |||
107 | /** |
||
108 | * @param $source |
||
109 | * @param string $driver |
||
110 | */ |
||
111 | protected function setImage($source, $driver = 'gd') |
||
118 | |||
119 | /** |
||
120 | * Performs the image manipulation using current style information |
||
121 | * and user defined crop and focus rectangles. |
||
122 | * |
||
123 | * @param $source |
||
124 | * @param $destination |
||
125 | * @param array $style |
||
126 | * @param null $cropFocusCoords |
||
127 | * |
||
128 | * @return string |
||
129 | */ |
||
130 | public function createImage($source, $destination, array $style = [], $cropFocusCoords = null) |
||
196 | |||
197 | /** |
||
198 | * @param $width |
||
199 | * @param $height |
||
200 | * @param $xOffset |
||
201 | * @param $yOffset |
||
202 | */ |
||
203 | protected function cropImage($width, $height, $xOffset, $yOffset) |
||
216 | |||
217 | /** |
||
218 | * Crops out defined crop area. |
||
219 | */ |
||
220 | protected function doCropRectangle() |
||
235 | |||
236 | /** |
||
237 | * @param string $type |
||
238 | * |
||
239 | * @return bool |
||
240 | */ |
||
241 | protected function getCoordinates($type = 'crop') |
||
258 | |||
259 | /** |
||
260 | * @param $destination |
||
261 | * |
||
262 | * @return mixed |
||
263 | */ |
||
264 | protected function saveImage($destination) |
||
270 | } |
Scrutinizer analyzes your
composer.json
/composer.lock
file if available to determine the classes, and functions that are defined by your dependencies.It seems like the listed class was neither found in your dependencies, nor was it found in the analyzed files in your repository. If you are using some other form of dependency management, you might want to disable this analysis.