Passed
Push — master ( 1b58c8...5bb8d0 )
by Aleksandr
02:30
created

Separable   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 3
dl 0
loc 13
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A explodeOutput() 0 3 1
1
<?php
2
3
namespace Sanchescom\WiFi\System;
4
5
trait Separable
6
{
7
    /** @var string */
8
    protected $separator = '--separator--';
9
10
    /**
11
     * @param string $output
12
     *
13
     * @return array
14
     */
15
    protected function explodeOutput(string $output): array
16
    {
17
        return explode($this->separator, $output);
18
    }
19
}
20