From f63fd6fecfa280983448f5c92de9fbc4e232b902 Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Wed, 22 Feb 2017 19:45:45 +0000 Subject: [PATCH] Apply fixes from StyleCI --- src/danog/MadelineProto/Serialization.php | 4 +++- src/danog/MadelineProto/TL/TL.php | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/danog/MadelineProto/Serialization.php b/src/danog/MadelineProto/Serialization.php index 33e1af97..834dcd36 100644 --- a/src/danog/MadelineProto/Serialization.php +++ b/src/danog/MadelineProto/Serialization.php @@ -60,7 +60,9 @@ class Serialization } else { throw new Exception('File does not exist'); } - if ($unserialized === false) throw new Exception('An error occurred on deserialization'); + if ($unserialized === false) { + throw new Exception('An error occurred on deserialization'); + } return $unserialized; } } diff --git a/src/danog/MadelineProto/TL/TL.php b/src/danog/MadelineProto/TL/TL.php index 5a453749..c62b6579 100644 --- a/src/danog/MadelineProto/TL/TL.php +++ b/src/danog/MadelineProto/TL/TL.php @@ -777,6 +777,7 @@ trait TL if (!is_string($x)) { throw new Exception("deserialize: generated value isn't a string"); } + return $x; case 'true': return true;