Commit 1 of 1:
15eb28ae59
Apply fixes from StyleCI
whole branch
Review threads live on the whole diff, not on one commit, so
none are shown here - a thread's line means something in the
branch's final form, and painting it into an intermediate
step would put it on code it is not about.
src/Contracts/Converter.php modified formatting only +6 -6 Changes to src/Contracts/Converter.php ⋯ 6 lines Show the 6 lines above this hunk @@ -7,8 +7,8 @@ interface Converter 7 7 8 8 9 9 10 - 11 - 10 + 11 + 12 12 13 13 14 14 public function convert ( string $text , array $options = null ) ; ⋯ 1 line Show the 1 line above this hunk @@ -16,7 +16,7 @@ interface Converter 16 16 17 17 18 18 19 - 19 + 20 20 21 21 22 22 public function disk ( string $disk ) ; ⋯ 1 line Show the 1 line above this hunk @@ -24,7 +24,7 @@ interface Converter 24 24 25 25 26 26 27 - 27 + 28 28 29 29 30 30 public function saveTo ( string $path ) ; ⋯ 1 line Show the 1 line above this hunk @@ -32,7 +32,7 @@ interface Converter 32 32 33 33 34 34 35 - 35 + 36 36 37 37 38 38 public function source ( string $source ) ; ⋯ 1 line Show the 1 line above this hunk @@ -40,7 +40,7 @@ interface Converter 40 40 41 41 42 42 43 - 43 + 44 44 45 45 46 46 public function language ( string $language ) ;
src/Contracts/Source.php modified formatting only +1 -1 Changes to src/Contracts/Source.php ⋯ 6 lines Show the 6 lines above this hunk @@ -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.php modified formatting only +2 -2 Changes to src/Converters/NullConverter.php ⋯ 14 lines Show the 14 lines above this hunk @@ -15,8 +15,8 @@ class NullConverter implements Converter 15 15 16 16 17 17 18 - 19 - 18 + 19 + 20 20 21 21 22 22 public function convert ( $data , array $options = null )
src/Converters/PollyConverter.php modified formatting only +13 -13 Changes to src/Converters/PollyConverter.php ⋯ 25 lines Show the 25 lines above this hunk @@ -26,7 +26,7 @@ class PollyConverter implements Converter 26 26 27 27 28 28 29 - 29 + 30 30 31 31 public function __construct ( PollyClient $client ) 32 32 { ⋯ 13 lines Show the 13 lines above this hunk @@ -46,8 +46,8 @@ class PollyConverter implements Converter 46 46 47 47 48 48 49 - 50 - 49 + 50 + 51 51 52 52 53 53 public function convert ( string $data , array $options = null ) ⋯ 27 lines Show the 27 lines above this hunk @@ -81,8 +81,8 @@ class PollyConverter implements Converter 81 81 82 82 83 83 84 - 85 - 84 + 85 + 86 86 87 87 88 88 protected function synthesizeSpeech ( $text , array $options = null ) ⋯ 46 lines Show the 46 lines above this hunk @@ -135,7 +135,7 @@ class PollyConverter implements Converter 135 135 136 136 137 137 138 - 138 + 139 139 140 140 141 141 protected function isTextAboveLimit ( string $text ) ⋯ 4 lines Show the 4 lines above this hunk @@ -146,8 +146,8 @@ class PollyConverter implements Converter 146 146 147 147 148 148 149 - 150 - 149 + 150 + 151 151 152 152 153 153 protected function getChunkText ( string $text , int $size = 2000 ) ⋯ 4 lines Show the 4 lines above this hunk @@ -158,7 +158,7 @@ class PollyConverter implements Converter 158 158 159 159 160 160 161 - 161 + 162 162 163 163 164 164 protected function voice ( $options ) ⋯ 28 lines Show the 28 lines above this hunk @@ -193,7 +193,7 @@ class PollyConverter implements Converter 193 193 194 194 195 195 196 - 196 + 197 197 198 198 199 199 protected function format ( $options ) ⋯ 10 lines Show the 10 lines above this hunk @@ -210,7 +210,7 @@ class PollyConverter implements Converter 210 210 211 211 212 212 213 - 213 + 214 214 215 215 216 216 protected function engine ( $options ) ⋯ 16 lines Show the 16 lines above this hunk @@ -233,7 +233,7 @@ class PollyConverter implements Converter 233 233 234 234 235 235 236 - 236 + 237 237 238 238 239 239 protected function getResultContent ( $result ) ⋯ 14 lines Show the 14 lines above this hunk @@ -254,7 +254,7 @@ class PollyConverter implements Converter 254 254 255 255 256 256 257 - 257 + 258 258 259 259 260 260 protected function formatToArray ( $json )
src/Sources/PathSource.php modified formatting only +1 -1 Changes to src/Sources/PathSource.php ⋯ 8 lines Show the 8 lines above this hunk @@ -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.php modified +10 -1 Changes to src/Sources/RecursiveDOMIterator.php ⋯ 8 lines Show the 8 lines above this hunk @@ -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 { ⋯ 3 lines Show the 3 lines above this hunk @@ -30,6 +32,7 @@ class RecursiveDOMIterator implements RecursiveIterator 30 32 31 33 32 34 35 + 33 36 34 37 35 38 public function current ( ) ⋯ 3 lines Show the 3 lines above this hunk @@ -39,6 +42,7 @@ class RecursiveDOMIterator implements RecursiveIterator 39 42 40 43 41 44 45 + 42 46 43 47 44 48 public function getChildren ( ) ⋯ 3 lines Show the 3 lines above this hunk @@ -48,6 +52,7 @@ class RecursiveDOMIterator implements RecursiveIterator 48 52 49 53 50 54 55 + 51 56 52 57 53 58 public function hasChildren ( ) ⋯ 3 lines Show the 3 lines above this hunk @@ -57,6 +62,7 @@ class RecursiveDOMIterator implements RecursiveIterator 57 62 58 63 59 64 65 + 60 66 61 67 62 68 public function key ( ) ⋯ 3 lines Show the 3 lines above this hunk @@ -66,6 +72,7 @@ class RecursiveDOMIterator implements RecursiveIterator 66 72 67 73 68 74 75 + 69 76 70 77 71 78 public function next ( ) ⋯ 3 lines Show the 3 lines above this hunk @@ -75,6 +82,7 @@ class RecursiveDOMIterator implements RecursiveIterator 75 82 76 83 77 84 85 + 78 86 79 87 80 88 public function rewind ( ) ⋯ 3 lines Show the 3 lines above this hunk @@ -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.php modified formatting only +1 -1 Changes to src/Sources/TextSource.php ⋯ 8 lines Show the 8 lines above this hunk @@ -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.php modified formatting only +2 -2 Changes to src/Sources/WebsiteSource.php ⋯ 11 lines Show the 11 lines above this hunk @@ -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 ⋯ 26 lines Show the 26 lines above this hunk @@ -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.php modified formatting only +3 -3 Changes to src/TextToSpeechManager.php ⋯ 44 lines Show the 44 lines above this hunk @@ -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 ) ⋯ 8 lines Show the 8 lines above this hunk @@ -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.php modified formatting only +1 -1 Changes to src/Traits/HasLanguage.php ⋯ 11 lines Show the 11 lines above this hunk @@ -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.php modified formatting only +1 -1 Changes to src/Traits/HasSpeechMarks.php ⋯ 11 lines Show the 11 lines above this hunk @@ -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.php modified +3 -2 Changes to src/Traits/Sourceable.php ⋯ 15 lines Show the 15 lines above this hunk @@ -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 ) ⋯ 5 lines Show the 5 lines above this hunk @@ -28,7 +28,8 @@ trait Sourceable 28 28 29 29 30 30 31 - 31 + 32 + 32 33 33 34 34 35 protected function getTextFromSource ( string $data ) : string
src/Traits/Storable.php modified +8 -13 Changes to src/Traits/Storable.php ⋯ 23 lines Show the 23 lines above this hunk @@ -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 ) ⋯ 6 lines Show the 6 lines above this hunk @@ -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 ) ⋯ 6 lines Show the 6 lines above this hunk @@ -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 ) ⋯ 10 lines Show the 10 lines above this hunk @@ -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 ) ⋯ 31 lines Show the 31 lines above this hunk @@ -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 )