Apply fixes from StyleCI

This commit is contained in:
Daniil Gentili 2017-11-03 12:02:33 +00:00 committed by StyleCI Bot
parent e5da891ac2
commit da912540f9
13 changed files with 101 additions and 100 deletions

View File

@ -66,6 +66,7 @@ class API extends APIFactory
$this->APIFactory();
$this->API = $unserialized->API;
return;
}
$this->API = new MTProto($params);

View File

@ -58,6 +58,6 @@ class Serialization
*/
public static function deserialize($filename, $no_updates = false)
{
throw new \danog\MadelineProto\Exception('You can\'t call \danog\MadelineProto\Serialization::deserialize($filename) anymore, use new \danog\MadelineProto\API($filename) instead'.PHP_EOL.PHP_EOL."Protip: run the following command to fix all of your scripts:".PHP_EOL.PHP_EOL."find . -type f -exec sed 's/\\\\danog\\\\MadelineProto\\\\Serialization::deserialize/new \\\\danog\\\\MadelineProto\\\\API/g' -i {} +".PHP_EOL.PHP_EOL, 0, null, 'MadelineProto', 0);
throw new \danog\MadelineProto\Exception('You can\'t call \danog\MadelineProto\Serialization::deserialize($filename) anymore, use new \danog\MadelineProto\API($filename) instead'.PHP_EOL.PHP_EOL.'Protip: run the following command to fix all of your scripts:'.PHP_EOL.PHP_EOL."find . -type f -exec sed 's/\\\\danog\\\\MadelineProto\\\\Serialization::deserialize/new \\\\danog\\\\MadelineProto\\\\API/g' -i {} +".PHP_EOL.PHP_EOL, 0, null, 'MadelineProto', 0);
}
}