Completed
Push — master ( e4dcc5...23e640 )
by Robert
02:26
created
src/Document/BaseDocument.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -15,6 +15,9 @@
 block discarded – undo
15 15
         return $this->loadString(file_get_contents($file));
16 16
     }
17 17
 
18
+    /**
19
+     * @param resource $stream
20
+     */
18 21
     public function loadStream($stream) : Element
19 22
     {
20 23
         Assert::resource($stream);
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Rs\XmlFilter\Exception;
6 6
 
Please login to merge, or discard this patch.
src/Filter/Behavior/FilterContextTrait.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -40,6 +40,9 @@
 block discarded – undo
40 40
         return sprintf($path, $options['context']);
41 41
     }
42 42
 
43
+    /**
44
+     * @return Element
45
+     */
43 46
     protected function getSearchElement(Element $element, $options)
44 47
     {
45 48
         if (!isset($options['context']) || !$options['context'] instanceof Element) {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Rs\XmlFilter\Exception;
6 6
 
Please login to merge, or discard this patch.
src/Container/XmlFilterProvider.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Rs\XmlFilter\Container;
6 6
 
@@ -19,14 +19,14 @@  discard block
 block discarded – undo
19 19
     {
20 20
         $this->registerManager($pimple);
21 21
 
22
-        $pimple['xml_filter'] = function ($pimple) {
22
+        $pimple['xml_filter'] = function($pimple) {
23 23
             return new XmlFilter($pimple['filter_manager']);
24 24
         };
25 25
     }
26 26
 
27 27
     private function registerManager(Container $pimple)
28 28
     {
29
-        $pimple['pimple_manager'] = function ($pimple) {
29
+        $pimple['pimple_manager'] = function($pimple) {
30 30
             $manager = new PimpleFilterManager();
31 31
             $manager->register(new FilterServiceProvider());
32 32
 
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
             return $manager;
36 36
         };
37 37
 
38
-        $pimple['validation_manager'] = function ($pimple) {
38
+        $pimple['validation_manager'] = function($pimple) {
39 39
             $manager = new ValidationFilterManager($pimple['pimple_manager']);
40 40
 
41 41
             $pimple['pimple_manager']['manager'] = $manager;
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
             return $manager;
44 44
         };
45 45
 
46
-        $pimple['filter_manager'] = function ($pimple) {
46
+        $pimple['filter_manager'] = function($pimple) {
47 47
             return $pimple['validation_manager'];
48 48
         };
49 49
     }
Please login to merge, or discard this patch.
src/Container/FilterServiceProvider.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Rs\XmlFilter\Container;
6 6
 
@@ -21,27 +21,27 @@  discard block
 block discarded – undo
21 21
             throw new \InvalidArgumentException('this provider can only be registered to a FilterManager');
22 22
         }
23 23
 
24
-        $pimple[Filter\ScalarFilter::class] = function (PimpleFilterManager $pimple) {
24
+        $pimple[Filter\ScalarFilter::class] = function(PimpleFilterManager $pimple) {
25 25
             return new Filter\ScalarFilter($pimple['manager']);
26 26
         };
27 27
 
28
-        $pimple[Filter\AggregateFilter::class] = function (PimpleFilterManager $pimple) {
28
+        $pimple[Filter\AggregateFilter::class] = function(PimpleFilterManager $pimple) {
29 29
             return new Filter\AggregateFilter($pimple['manager']);
30 30
         };
31 31
 
32
-        $pimple[Filter\MapFilter::class] = function (PimpleFilterManager $pimple) {
32
+        $pimple[Filter\MapFilter::class] = function(PimpleFilterManager $pimple) {
33 33
             return new Filter\MapFilter($pimple['manager']);
34 34
         };
35 35
 
36
-        $pimple[Filter\ReferenceFilter::class] = function (PimpleFilterManager $pimple) {
36
+        $pimple[Filter\ReferenceFilter::class] = function(PimpleFilterManager $pimple) {
37 37
             return new Filter\ReferenceFilter($pimple['manager']);
38 38
         };
39 39
 
40
-        $pimple[Filter\MergeFilter::class] = function (PimpleFilterManager $pimple) {
40
+        $pimple[Filter\MergeFilter::class] = function(PimpleFilterManager $pimple) {
41 41
             return new Filter\MergeFilter($pimple['manager']);
42 42
         };
43 43
 
44
-        $pimple[Filter\PostFilter::class] = function (PimpleFilterManager $pimple) {
44
+        $pimple[Filter\PostFilter::class] = function(PimpleFilterManager $pimple) {
45 45
             return new Filter\PostFilter($pimple['manager']);
46 46
         };
47 47
     }
Please login to merge, or discard this patch.
src/Exception/ValidationException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Rs\XmlFilter\Exception;
6 6
 
Please login to merge, or discard this patch.
src/XmlFilter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Rs\XmlFilter\Exception;
6 6
 
Please login to merge, or discard this patch.
src/Exception/ReferenceException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Rs\XmlFilter\Exception;
6 6
 
Please login to merge, or discard this patch.
src/Exception/AmbigousValueException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Rs\XmlFilter\Exception;
6 6
 
Please login to merge, or discard this patch.
src/Exception/FilterException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Rs\XmlFilter\Exception;
6 6
 
Please login to merge, or discard this patch.