Completed
Push — master ( b5cb72...88a9c7 )
by Dennis
03:56
created
src/WzClassification.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
         return array_merge(
61 61
             array_filter(
62 62
                 $this->items,
63
-                function (WzItemInterface $item) use ($level) {
63
+                function(WzItemInterface $item) use ($level) {
64 64
                     return $item->getLevel() == $level;
65 65
                 }));
66 66
     }
Please login to merge, or discard this patch.
src/Factory/WzClassificationFactory.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -75,8 +75,8 @@  discard block
 block discarded – undo
75 75
         ];
76 76
 
77 77
         foreach ($xml->xpath('//Item') as $xmlItem) {
78
-            $itemId = (string)$xmlItem['id'];
79
-            $itemLevel = (int)$xmlItem['idLevel'];
78
+            $itemId = (string) $xmlItem['id'];
79
+            $itemLevel = (int) $xmlItem['idLevel'];
80 80
 
81 81
             $parent = $levels[$itemLevel - 1];
82 82
             $current = new WzItem(
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
         $labels = [];
102 102
 
103 103
         foreach ($xmlItem->xpath('Label[@qualifier="Usual"]/LabelText') as $label) {
104
-            $labels[strtolower($label['language'])] = (string)$label;
104
+            $labels[strtolower($label['language'])] = (string) $label;
105 105
         }
106 106
 
107 107
         return $labels;
Please login to merge, or discard this patch.
benchmarks/SimpleXml/SimpleXmlParentItemAccessBench.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
         $parentLevel = $child['idLevel'] - 1;
43 43
         $parent = $child->xpath('preceding-sibling::Item[@idLevel="' . $parentLevel . '"][1]')[0];
44 44
 
45
-        $this->assertSame($params['parent'], (string)$parent['id']);
45
+        $this->assertSame($params['parent'], (string) $parent['id']);
46 46
     }
47 47
 
48 48
     /**
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
         $parentLevel = $child['idLevel'] - 1;
63 63
         $parent = $child->xpath('preceding-sibling::Item[@idLevel="' . $parentLevel . '"][1]')[0];
64 64
 
65
-        $this->assertSame($params['parent'], (string)$parent['id']);
65
+        $this->assertSame($params['parent'], (string) $parent['id']);
66 66
     }
67 67
 
68 68
     /**
Please login to merge, or discard this patch.