Code Duplication    Length = 5-5 lines in 2 locations

src/Entities/ServerResponse.php 2 locations

@@ 86-90 (lines=5) @@
83
                    $this->result     = true;
84
                    $this->error_code = null;
85
86
                    if (isset($data['description'])) {
87
                        $this->description = $data['description'];
88
                    } else {
89
                        $this->description = '';
90
                    }
91
                } elseif (is_numeric($data['result'])) {
92
                    //Response from getChatMembersCount
93
                    $this->result = $data['result'];
@@ 117-121 (lines=5) @@
114
                $this->error_code = null;
115
            }
116
117
            if (isset($data['description'])) {
118
                $this->description = $data['description'];
119
            } else {
120
                $this->description = null;
121
            }
122
123
            //throw new TelegramException('ok(variable) is not set!');
124
        }