NullConverter   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
c 1
b 0
f 0
dl 0
loc 14
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A convert() 0 3 1
1
<?php
2
3
namespace Cion\TextToSpeech\Converters;
4
5
use Cion\TextToSpeech\Contracts\Converter;
6
use Cion\TextToSpeech\Traits\HasLanguage;
7
use Cion\TextToSpeech\Traits\Sourceable;
8
use Cion\TextToSpeech\Traits\SSMLable;
9
use Cion\TextToSpeech\Traits\Storable;
10
11
class NullConverter implements Converter
12
{
13
    use Storable, Sourceable, HasLanguage, SSMLable;
14
15
    /**
16
     * Converts the text to speech.
17
     *
18
     * @param mixed $data
19
     * @param array $options
20
     * @return void
21
     */
22
    public function convert($data, array $options = null)
23
    {
24
        return $this->store($data, null);
0 ignored issues
show
Bug Best Practice introduced by
The expression return $this->store($data, null) returns the type string which is incompatible with the documented return type void.
Loading history...
25
    }
26
}
27