ObjectHelper   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A isCaseSafeObjectId() 0 4 1
1
<?php
2
3
/**
4
 * @copyright  Copyright (c) Flipbox Digital Limited
5
 * @license    https://github.com/flipbox/salesforce/blob/master/LICENSE.md
6
 * @link       https://github.com/flipbox/salesforce
7
 */
8
9
namespace flipbox\craft\salesforce\helpers;
10
11
use craft\helpers\StringHelper;
12
13
/**
14
 * @author Flipbox Factory <[email protected]>
15
 * @since 1.0.2
16
 */
17
class ObjectHelper
18
{
19
    /**
20
     * @param string $objectId
21
     * @return bool
22
     */
23
    public static function isCaseSafeObjectId(string $objectId): bool
24
    {
25
        return StringHelper::length($objectId) === 18;
26
    }
27
}
28