Completed
Pull Request — master (#43)
by
unknown
02:41
created
lib/ApiClient/AbstractApiClient.php 2 patches
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,12 +5,12 @@
 block discarded – undo
5 5
 use Doctrine\Common\Collections\ArrayCollection;
6 6
 use MovingImage\Client\VMPro\Collection\ChannelCollection;
7 7
 use MovingImage\Client\VMPro\Collection\VideoCollection;
8
+use MovingImage\Client\VMPro\Entity\Attachment;
8 9
 use MovingImage\Client\VMPro\Entity\Channel;
9 10
 use MovingImage\Client\VMPro\Entity\ChannelsRequestParameters;
10 11
 use MovingImage\Client\VMPro\Entity\EmbedCode;
11 12
 use MovingImage\Client\VMPro\Entity\Keyword;
12 13
 use MovingImage\Client\VMPro\Entity\Video;
13
-use MovingImage\Client\VMPro\Entity\Attachment;
14 14
 use MovingImage\Client\VMPro\Entity\VideoManager;
15 15
 use MovingImage\Client\VMPro\Entity\VideoRequestParameters;
16 16
 use MovingImage\Client\VMPro\Entity\VideosRequestParameters;
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -55,12 +55,12 @@  discard block
 block discarded – undo
55 55
      */
56 56
     protected function sortChannels(ArrayCollection $channels)
57 57
     {
58
-        $channels->map(function ($channel) {
58
+        $channels->map(function($channel) {
59 59
             $channel->setChildren($this->sortChannels($channel->getChildren()));
60 60
         });
61 61
 
62 62
         $iterator = $channels->getIterator();
63
-        $iterator->uasort(function ($a, $b) {
63
+        $iterator->uasort(function($a, $b) {
64 64
             return $a->getName() > $b->getName();
65 65
         });
66 66
 
@@ -266,7 +266,7 @@  discard block
 block discarded – undo
266 266
             [self::OPT_VIDEO_MANAGER_ID => $videoManagerId]
267 267
         );
268 268
 
269
-        return $this->deserialize($response->getBody()->getContents(), 'ArrayCollection<' . Keyword::class . '>');
269
+        return $this->deserialize($response->getBody()->getContents(), 'ArrayCollection<'.Keyword::class.'>');
270 270
     }
271 271
 
272 272
     /**
Please login to merge, or discard this patch.