Conditions | 1 |
Paths | 1 |
Total Lines | 17 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Tests | 10 |
CRAP Score | 1 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
23 | 11 | public function Sign( |
|
24 | string $sourceType, |
||
25 | string $category, |
||
26 | string $fileName, |
||
27 | int $width, |
||
28 | int $height, |
||
29 | int $cast |
||
30 | ): string { |
||
31 | 11 | return $this->hash( |
|
32 | 11 | implode('/', [ |
|
33 | 11 | $this->salt, |
|
34 | 11 | $sourceType, |
|
35 | 11 | $category, |
|
36 | 11 | $fileName, |
|
37 | 11 | (string)$width, |
|
38 | 11 | (string)$height, |
|
39 | 11 | (string)$cast |
|
40 | ]) |
||
49 | } |