GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Branch dev (ec2832)
by t
03:09
created

DMAT   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
c 1
b 0
f 0
dl 0
loc 25
ccs 4
cts 4
cp 1
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A degrees() 0 3 1
A decimal() 0 3 1
1
<?php
2
/**
3
 * Trait MathAndTrigonometry-D
4
 *
5
 * @link https://www.icy2003.com/
6
 * @author icy2003 <[email protected]>
7
 * @copyright Copyright (c) 2017, icy2003
8
 */
9
namespace icy2003\php\icomponents\excel\mathAndTrigonometry;
10
11
/**
12
 * MathAndTrigonometry-D
13
 */
14
trait DMAT
15
{
16
    /**
17
     * 按给定基数将数字的文本表示形式转换成十进制数
18
     *
19
     * @param string $text 必需
20
     * @param integer $radix 必需。Radix 必须是整数
21
     *
22
     * @return string
23
     */
24 1
    public static function decimal($text, $radix)
25
    {
26 1
        return base_convert($text, $radix, 10);
27
    }
28
29
    /**
30
     * 将弧度转换为度
31
     *
32
     * @param double $angle
33
     *
34
     * @return double
35
     */
36 1
    public static function degrees($angle)
37
    {
38 1
        return rad2deg($angle);
39
    }
40
}
41