Issues (7)

src/Converters/NullConverter.php (1 issue)

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