Apply fixes from StyleCI

This commit is contained in:
Daniil Gentili 2017-07-01 17:40:08 +00:00 committed by StyleCI Bot
parent 54e7499930
commit d1bed9e6a0

View File

@ -71,31 +71,45 @@ if ($MadelineProto === false) {
$message = (getenv('TRAVIS_COMMIT') == '') ? 'I iz works always (io laborare sembre) (yo lavorar siempre) (mi labori ĉiam) (я всегда работать) (Ik werkuh altijd) (Ngimbonga ngaso sonke isikhathi ukusebenza)' : ('Travis ci tests in progress: commit '.getenv('TRAVIS_COMMIT').', job '.getenv('TRAVIS_JOB_NUMBER').', PHP version: '.getenv('TRAVIS_PHP_VERSION')); $message = (getenv('TRAVIS_COMMIT') == '') ? 'I iz works always (io laborare sembre) (yo lavorar siempre) (mi labori ĉiam) (я всегда работать) (Ik werkuh altijd) (Ngimbonga ngaso sonke isikhathi ukusebenza)' : ('Travis ci tests in progress: commit '.getenv('TRAVIS_COMMIT').', job '.getenv('TRAVIS_JOB_NUMBER').', PHP version: '.getenv('TRAVIS_PHP_VERSION'));
class pony extends \danog\MadelineProto\VoIP class pony extends \danog\MadelineProto\VoIP
{ {
public function setState(int $state) { public function setState(int $state)
{
var_dump("SET STATE $state"); var_dump("SET STATE $state");
} }
public function startOutput() {
var_dump("START READING DATA"); public function startOutput()
} {
public function startInput() { var_dump('START READING DATA');
var_dump("START WRITING DATA");
}
public function stopOutput() {
var_dump("STOP READING DATA");
}
public function stopInput() {
var_dump("STOP WRITING DATA");
}
public function configureAudioOutput(int $sampleRate, int $bitsPerSample, int $channels) {
var_dump("CONFIGURE AUDIO OUTPUT: sampleRate: $sampleRate, bitsPerSample: $bitsPerSample, channels: $channels");
}
public function configureAudioInput(int $sampleRate, int $bitsPerSample, int $channels) {
var_dump("CONFIGURE AUDIO INPUT: sampleRate: $sampleRate, bitsPerSample: $bitsPerSample, channels: $channels");
}
public function getOutputLevel() {
return 0;
} }
public function startInput()
{
var_dump('START WRITING DATA');
}
public function stopOutput()
{
var_dump('STOP READING DATA');
}
public function stopInput()
{
var_dump('STOP WRITING DATA');
}
public function configureAudioOutput(int $sampleRate, int $bitsPerSample, int $channels)
{
var_dump("CONFIGURE AUDIO OUTPUT: sampleRate: $sampleRate, bitsPerSample: $bitsPerSample, channels: $channels");
}
public function configureAudioInput(int $sampleRate, int $bitsPerSample, int $channels)
{
var_dump("CONFIGURE AUDIO INPUT: sampleRate: $sampleRate, bitsPerSample: $bitsPerSample, channels: $channels");
}
public function getOutputLevel()
{
return 0;
}
} }
echo 'Serializing MadelineProto to session.madeline...'.PHP_EOL; echo 'Wrote echo 'Serializing MadelineProto to session.madeline...'.PHP_EOL; echo 'Wrote