NullConverter::convert()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 2
dl 0
loc 3
rs 10
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