Test Failed
Branch master (b41ac8)
by John
03:12
created

decrypt   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A decrypt() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Encryption\Traits;
6
7
8
trait decrypt
0 ignored issues
show
Coding Style introduced by
decrypt does not seem to conform to the naming convention (^[A-Z][a-zA-Z0-9]*$).

This check examines a number of code elements and verifies that they conform to the given naming conventions.

You can set conventions for local variables, abstract classes, utility classes, constant, properties, methods, parameters, interfaces, classes, exceptions and special methods.

Loading history...
9
{
10 64
    public function decrypt(string $encryptedText, string $key, string $iv): string
11
    {
12 64
        return rtrim(openssl_decrypt(base64_decode($encryptedText), static::CIPHER, $key, OPENSSL_RAW_DATA, $iv));
13
    }
14
}
15