Completed
Pull Request — develop (#27)
by Chris
01:52
created
test.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,5 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-use Chrisyue\PhpM3u8\Document\Rfc8216\MediaPlaylist;
4 3
 use Chrisyue\PhpM3u8\Document\Rfc8216\MasterPlaylist;
5 4
 use Chrisyue\PhpM3u8\Stream\FileStream;
6 5
 use Chrisyue\PhpM3u8\Line\Lines;
Please login to merge, or discard this patch.
src/Dumper/ParentDumper.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
 
24 24
     public function dump($value)
25 25
     {
26
-        uasort($this->children, function (ChildDumperInterface $child, ChildDumperInterface $child2) {
26
+        uasort($this->children, function(ChildDumperInterface $child, ChildDumperInterface $child2) {
27 27
             return $child->getSequence() > $child2->getSequence();
28 28
         });
29 29
 
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
                 continue;
35 35
             }
36 36
 
37
-            $child->isRepeatable() ? array_walk($childResult, function ($val) use ($child) {
37
+            $child->isRepeatable() ? array_walk($childResult, function($val) use ($child) {
38 38
                 $child->dump($val);
39 39
             }) : $child->dump($childResult);
40 40
         }
Please login to merge, or discard this patch.
src/Transformer/AttrListReverser.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
         $attrs = [];
28 28
 
29 29
         $dataAccessor = $this->dataAccessorFactory->createByData($transformed);
30
-        $this->attrReversers->iterate(function ($key, AttrReverserInterface $reverser) use ($dataAccessor, &$attrs) {
30
+        $this->attrReversers->iterate(function($key, AttrReverserInterface $reverser) use ($dataAccessor, &$attrs) {
31 31
             $attrName = $reverser->getAttrName();
32 32
 
33 33
             $attrs[$attrName] = $reverser->reverse($dataAccessor->get($key));
Please login to merge, or discard this patch.
src/PdFactory/AnnotReadablePlaylistPdFactory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
     public function createParser()
30 30
     {
31 31
         $parsers = new Parsers();
32
-        $this->iterateFactories($this->class, function ($key, PdFactoryInterface $factory) use ($parsers) {
32
+        $this->iterateFactories($this->class, function($key, PdFactoryInterface $factory) use ($parsers) {
33 33
             $parsers->set($key, $factory->createParser());
34 34
         });
35 35
 
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
     public function createDumper()
40 40
     {
41 41
         $dumpers = [];
42
-        $this->iterateFactories($this->class, function ($key, PdFactoryInterface $factory) use (&$dumpers) {
42
+        $this->iterateFactories($this->class, function($key, PdFactoryInterface $factory) use (&$dumpers) {
43 43
             if ($factory instanceof LinesAwareInterface) {
44 44
                 $factory->setLines($this->lines);
45 45
             }
Please login to merge, or discard this patch.