src/Contracts/Converter.phpmodified+6-7Changes to src/Contracts/Converter.php | @@ -7,9 +7,8 @@ interface Converter |
| 7 | 7 | |
| 8 | 8 | |
| 9 | 9 | |
| 10 | | - |
| 11 | | - |
| 12 | | - |
| 10 | + |
| 11 | + |
| 13 | 12 | |
| 14 | 13 | |
| 15 | 14 | public function convert(string $text, array $options = null); |
formatting only · 8 hidden lines
Changes to src/Contracts/Converter.php | @@ -17,7 +16,7 @@ interface Converter formatting only |
| 17 | 16 | |
| 18 | 17 | |
| 19 | 18 | |
| 20 | | - |
| 19 | + |
| 21 | 20 | |
| 22 | 21 | |
| 23 | 22 | public function disk(string $disk); |
formatting only · 8 hidden lines
Changes to src/Contracts/Converter.php | @@ -25,7 +24,7 @@ interface Converter formatting only |
| 25 | 24 | |
| 26 | 25 | |
| 27 | 26 | |
| 28 | | - |
| 27 | + |
| 29 | 28 | |
| 30 | 29 | |
| 31 | 30 | public function saveTo(string $path); |
formatting only · 8 hidden lines
Changes to src/Contracts/Converter.php | @@ -33,7 +32,7 @@ interface Converter formatting only |
| 33 | 32 | |
| 34 | 33 | |
| 35 | 34 | |
| 36 | | - |
| 35 | + |
| 37 | 36 | |
| 38 | 37 | |
| 39 | 38 | public function source(string $source); |
formatting only · 8 hidden lines
Changes to src/Contracts/Converter.php | @@ -41,7 +40,7 @@ interface Converter formatting only |
| 41 | 40 | |
| 42 | 41 | |
| 43 | 42 | |
| 44 | | - |
| 43 | + |
| 45 | 44 | |
| 46 | 45 | |
| 47 | 46 | public function language(string $language); |
src/Contracts/Source.phpmodifiedformatting only+1-1Changes to src/Contracts/Source.php | @@ -7,7 +7,7 @@ interface Source |
| 7 | 7 | |
| 8 | 8 | |
| 9 | 9 | |
| 10 | | - |
| 10 | + |
| 11 | 11 | |
| 12 | 12 | |
| 13 | 13 | public function handle(string $data): string; |
src/Converters/NullConverter.phpmodified+2-3Changes to src/Converters/NullConverter.php | @@ -15,9 +15,8 @@ class NullConverter implements Converter |
| 15 | 15 | |
| 16 | 16 | |
| 17 | 17 | |
| 18 | | - |
| 19 | | - |
| 20 | | - |
| 18 | + |
| 19 | + |
| 21 | 20 | |
| 22 | 21 | |
| 23 | 22 | public function convert($data, array $options = null) |
src/Converters/PollyConverter.phpmodified+13-15formatting only · 8 hidden lines
Changes to src/Converters/PollyConverter.php | @@ -26,7 +26,7 @@ class PollyConverter implements Converter formatting only |
| 26 | 26 | |
| 27 | 27 | |
| 28 | 28 | |
| 29 | | - |
| 29 | + |
| 30 | 30 | |
| 31 | 31 | public function __construct(PollyClient $client) |
| 32 | 32 | { |
Changes to src/Converters/PollyConverter.php | @@ -46,9 +46,8 @@ class PollyConverter implements Converter |
| 46 | 46 | |
| 47 | 47 | |
| 48 | 48 | |
| 49 | | - |
| 50 | | - |
| 51 | | - |
| 49 | + |
| 50 | + |
| 52 | 51 | |
| 53 | 52 | |
| 54 | 53 | public function convert(string $data, array $options = null) |
| @@ -82,9 +81,8 @@ class PollyConverter implements Converter |
| 82 | 81 | |
| 83 | 82 | |
| 84 | 83 | |
| 85 | | - |
| 86 | | - |
| 87 | | - |
| 84 | + |
| 85 | + |
| 88 | 86 | |
| 89 | 87 | |
| 90 | 88 | protected function synthesizeSpeech($text, array $options = null) |
formatting only · 8 hidden lines
Changes to src/Converters/PollyConverter.php | @@ -137,7 +135,7 @@ class PollyConverter implements Converter formatting only |
| 137 | 135 | |
| 138 | 136 | |
| 139 | 137 | |
| 140 | | - |
| 138 | + |
| 141 | 139 | |
| 142 | 140 | |
| 143 | 141 | protected function isTextAboveLimit(string $text) |
formatting only · 10 hidden lines
Changes to src/Converters/PollyConverter.php | @@ -148,8 +146,8 @@ class PollyConverter implements Converter formatting only |
| 148 | 146 | |
| 149 | 147 | |
| 150 | 148 | |
| 151 | | - |
| 152 | | - |
| 149 | + |
| 150 | + |
| 153 | 151 | |
| 154 | 152 | |
| 155 | 153 | protected function getChunkText(string $text, int $size = 2000) |
formatting only · 8 hidden lines
formatting only · 8 hidden lines
formatting only · 8 hidden lines
formatting only · 8 hidden lines
Changes to src/Converters/PollyConverter.php | @@ -235,7 +233,7 @@ class PollyConverter implements Converter formatting only |
| 235 | 233 | |
| 236 | 234 | |
| 237 | 235 | |
| 238 | | - |
| 236 | + |
| 239 | 237 | |
| 240 | 238 | |
| 241 | 239 | protected function getResultContent($result) |
formatting only · 8 hidden lines
Changes to src/Converters/PollyConverter.php | @@ -256,7 +254,7 @@ class PollyConverter implements Converter formatting only |
| 256 | 254 | |
| 257 | 255 | |
| 258 | 256 | |
| 259 | | - |
| 257 | + |
| 260 | 258 | |
| 261 | 259 | |
| 262 | 260 | protected function formatToArray($json) |
src/Sources/PathSource.phpmodifiedformatting only+1-1Changes to src/Sources/PathSource.php | @@ -9,7 +9,7 @@ class PathSource implements SourceContract |
| 9 | 9 | |
| 10 | 10 | |
| 11 | 11 | |
| 12 | | - |
| 12 | + |
| 13 | 13 | |
| 14 | 14 | |
| 15 | 15 | public function handle(string $data): string |
src/Sources/RecursiveDOMIterator.phpmodified+10-1Changes to src/Sources/RecursiveDOMIterator.php | @@ -9,18 +9,20 @@ class RecursiveDOMIterator implements RecursiveIterator |
| 9 | 9 | { |
| 10 | 10 | |
| 11 | 11 | |
| 12 | + |
| 12 | 13 | |
| 13 | 14 | |
| 14 | 15 | protected $_position; |
| 15 | 16 | |
| 16 | 17 | |
| 17 | 18 | |
| 19 | + |
| 18 | 20 | |
| 19 | 21 | |
| 20 | 22 | protected $_nodeList; |
| 21 | 23 | |
| 22 | 24 | |
| 23 | | - |
| 25 | + |
| 24 | 26 | |
| 25 | 27 | public function __construct(DOMNode $domNode) |
| 26 | 28 | { |
| @@ -30,6 +32,7 @@ class RecursiveDOMIterator implements RecursiveIterator |
| 30 | 32 | |
| 31 | 33 | |
| 32 | 34 | |
| 35 | + |
| 33 | 36 | |
| 34 | 37 | |
| 35 | 38 | public function current() |
| @@ -39,6 +42,7 @@ class RecursiveDOMIterator implements RecursiveIterator |
| 39 | 42 | |
| 40 | 43 | |
| 41 | 44 | |
| 45 | + |
| 42 | 46 | |
| 43 | 47 | |
| 44 | 48 | public function getChildren() |
| @@ -48,6 +52,7 @@ class RecursiveDOMIterator implements RecursiveIterator |
| 48 | 52 | |
| 49 | 53 | |
| 50 | 54 | |
| 55 | + |
| 51 | 56 | |
| 52 | 57 | |
| 53 | 58 | public function hasChildren() |
| @@ -57,6 +62,7 @@ class RecursiveDOMIterator implements RecursiveIterator |
| 57 | 62 | |
| 58 | 63 | |
| 59 | 64 | |
| 65 | + |
| 60 | 66 | |
| 61 | 67 | |
| 62 | 68 | public function key() |
| @@ -66,6 +72,7 @@ class RecursiveDOMIterator implements RecursiveIterator |
| 66 | 72 | |
| 67 | 73 | |
| 68 | 74 | |
| 75 | + |
| 69 | 76 | |
| 70 | 77 | |
| 71 | 78 | public function next() |
| @@ -75,6 +82,7 @@ class RecursiveDOMIterator implements RecursiveIterator |
| 75 | 82 | |
| 76 | 83 | |
| 77 | 84 | |
| 85 | + |
| 78 | 86 | |
| 79 | 87 | |
| 80 | 88 | public function rewind() |
| @@ -84,6 +92,7 @@ class RecursiveDOMIterator implements RecursiveIterator |
| 84 | 92 | |
| 85 | 93 | |
| 86 | 94 | |
| 95 | + |
| 87 | 96 | |
| 88 | 97 | |
| 89 | 98 | public function valid() |
src/Sources/TextSource.phpmodifiedformatting only+1-1Changes to src/Sources/TextSource.php | @@ -9,7 +9,7 @@ class TextSource implements SourceContract |
| 9 | 9 | |
| 10 | 10 | |
| 11 | 11 | |
| 12 | | - |
| 12 | + |
| 13 | 13 | |
| 14 | 14 | |
| 15 | 15 | public function handle(string $data): string |
src/Sources/WebsiteSource.phpmodifiedformatting only+2-2Changes to src/Sources/WebsiteSource.php | @@ -12,7 +12,7 @@ class WebsiteSource implements SourceContract |
| 12 | 12 | |
| 13 | 13 | |
| 14 | 14 | |
| 15 | | - |
| 15 | + |
| 16 | 16 | |
| 17 | 17 | |
| 18 | 18 | public function handle(string $data): string |
| @@ -45,7 +45,7 @@ class WebsiteSource implements SourceContract |
| 45 | 45 | |
| 46 | 46 | |
| 47 | 47 | |
| 48 | | - |
| 48 | + |
| 49 | 49 | |
| 50 | 50 | |
| 51 | 51 | protected function getTextFromArticle(DOMNodeList $articles): string |
src/TextToSpeechManager.phpmodifiedformatting only+3-3Changes to src/TextToSpeechManager.php | @@ -45,8 +45,8 @@ class TextToSpeechManager extends Manager |
| 45 | 45 | |
| 46 | 46 | |
| 47 | 47 | |
| 48 | | - |
| 49 | | - |
| 48 | + |
| 49 | + |
| 50 | 50 | |
| 51 | 51 | |
| 52 | 52 | protected function setPollyClient(array $config, Credentials $credentials) |
| @@ -61,7 +61,7 @@ class TextToSpeechManager extends Manager |
| 61 | 61 | |
| 62 | 62 | |
| 63 | 63 | |
| 64 | | - |
| 64 | + |
| 65 | 65 | |
| 66 | 66 | |
| 67 | 67 | protected function getCredentials(array $credentials) |
src/Traits/HasLanguage.phpmodifiedformatting only+1-1Changes to src/Traits/HasLanguage.php | @@ -12,7 +12,7 @@ trait HasLanguage |
| 12 | 12 | |
| 13 | 13 | |
| 14 | 14 | |
| 15 | | - |
| 15 | + |
| 16 | 16 | |
| 17 | 17 | |
| 18 | 18 | public function language(string $language) |
src/Traits/HasSpeechMarks.phpmodifiedformatting only+1-1Changes to src/Traits/HasSpeechMarks.php | @@ -12,7 +12,7 @@ trait HasSpeechMarks |
| 12 | 12 | |
| 13 | 13 | |
| 14 | 14 | |
| 15 | | - |
| 15 | + |
| 16 | 16 | |
| 17 | 17 | |
| 18 | 18 | public function speechMarks(array $speechMarks) |
src/Traits/Sourceable.phpmodified+2-3formatting only · 8 hidden lines
Changes to src/Traits/Sourceable.php | @@ -16,7 +16,7 @@ trait Sourceable formatting only |
| 16 | 16 | |
| 17 | 17 | |
| 18 | 18 | |
| 19 | | - |
| 19 | + |
| 20 | 20 | |
| 21 | 21 | |
| 22 | 22 | public function source(string $source) |
Changes to src/Traits/Sourceable.php | @@ -29,8 +29,7 @@ trait Sourceable |
| 29 | 29 | |
| 30 | 30 | |
| 31 | 31 | |
| 32 | | - |
| 33 | | - |
| 32 | + |
| 34 | 33 | |
| 35 | 34 | |
| 36 | 35 | protected function getTextFromSource(string $data): string |
src/Traits/Storable.phpmodified+8-13Changes to src/Traits/Storable.php | @@ -24,8 +24,7 @@ trait Storable |
| 24 | 24 | |
| 25 | 25 | |
| 26 | 26 | |
| 27 | | - |
| 28 | | - |
| 27 | + |
| 29 | 28 | |
| 30 | 29 | |
| 31 | 30 | public function disk(string $disk) |
| @@ -38,8 +37,7 @@ trait Storable |
| 38 | 37 | |
| 39 | 38 | |
| 40 | 39 | |
| 41 | | - |
| 42 | | - |
| 40 | + |
| 43 | 41 | |
| 44 | 42 | |
| 45 | 43 | public function saveTo(string $path) |
| @@ -52,9 +50,8 @@ trait Storable |
| 52 | 50 | |
| 53 | 51 | |
| 54 | 52 | |
| 55 | | - |
| 56 | | - |
| 57 | | - |
| 53 | + |
| 54 | + |
| 58 | 55 | |
| 59 | 56 | |
| 60 | 57 | protected function store($text, $resultContent) |
| @@ -71,9 +68,8 @@ trait Storable |
| 71 | 68 | |
| 72 | 69 | |
| 73 | 70 | |
| 74 | | - |
| 75 | | - |
| 76 | | - |
| 71 | + |
| 72 | + |
| 77 | 73 | |
| 78 | 74 | |
| 79 | 75 | protected function ensurePathIsNotNull($text, $audio) |
| @@ -111,9 +107,8 @@ trait Storable |
| 111 | 107 | |
| 112 | 108 | |
| 113 | 109 | |
| 114 | | - |
| 115 | | - |
| 116 | | - |
| 110 | + |
| 111 | + |
| 117 | 112 | |
| 118 | 113 | |
| 119 | 114 | protected function getDefaultFilename($text, $audio) |