From f40301d37d5add2d9623bcba9a820da86e374411 Mon Sep 17 00:00:00 2001 From: Eugene Leonovich Date: Tue, 9 Sep 2014 15:02:00 +0200 Subject: [PATCH] Remove duplicate check --- src/mg/PAGI/Client/Result/PlayResult.php | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/mg/PAGI/Client/Result/PlayResult.php b/src/mg/PAGI/Client/Result/PlayResult.php index cf62a1f..1277361 100644 --- a/src/mg/PAGI/Client/Result/PlayResult.php +++ b/src/mg/PAGI/Client/Result/PlayResult.php @@ -57,14 +57,12 @@ public function __construct(IReadResult $result) parent::__construct($result); if ($result->hasData()) { // check offset - if ($result->hasData()) { - $data = explode('=', $result->getData()); - if (isset($data[1])) { - if ($data[1] == 0) { - throw new SoundFileException('Invalid format?'); - } + $data = explode('=', $result->getData()); + if (isset($data[1])) { + if ($data[1] == 0) { + throw new SoundFileException('Invalid format?'); } } } } -} \ No newline at end of file +}