Completed
Push — master ( 20d50d...2b9d31 )
by Nekrasov
03:50
created

Helpers   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 1
c 2
b 0
f 0
lcom 0
cbo 0
dl 0
loc 15
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A studly() 0 6 1
1
<?php
2
3
namespace Arrilot\BitrixMigrations;
4
5
class Helpers
6
{
7
    /**
8
     * Convert a value to studly caps case.
9
     *
10
     * @param  string  $value
11
     * @return string
12
     */
13
    public static function studly($value)
14
    {
15
        $value = ucwords(str_replace(['-', '_'], ' ', $value));
16
17
        return str_replace(' ', '', $value);
18
    }
19
}
20