From 83e9ff8de9d3727239025c027040ca9dce07b8d4 Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Thu, 17 Nov 2016 17:44:04 +0000 Subject: [PATCH] Applied fixes from StyleCI --- src/danog/MadelineProto/TL/TLMethod.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/danog/MadelineProto/TL/TLMethod.php b/src/danog/MadelineProto/TL/TLMethod.php index 4969b4186..b0b59bdd3 100644 --- a/src/danog/MadelineProto/TL/TLMethod.php +++ b/src/danog/MadelineProto/TL/TLMethod.php @@ -57,6 +57,7 @@ class TLMethod public function find_by_method($method) { $key = array_search($method, $this->method); + return ($key === false) ? false : [ 'id' => $this->id[$key], 'method' => $this->method[$key],