Completed
Push — develop ( 9a607f...a83719 )
by
unknown
07:31
created
module/Core/src/Core/Entity/Tree/Node.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -69,6 +69,9 @@
 block discarded – undo
69 69
      */
70 70
     protected $parent;
71 71
 
72
+    /**
73
+     * @param string $value
74
+     */
72 75
     final public static function filterValue($value)
73 76
     {
74 77
         $value = mb_strtolower($value);
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -153,7 +153,7 @@
 block discarded – undo
153 153
 
154 154
     public function getValueWithParents($withRoot = false, $useNames = false)
155 155
     {
156
-        $parts = [ ($useNames ? $this->getName() : $this->getValue()) ];
156
+        $parts = [($useNames ? $this->getName() : $this->getValue())];
157 157
         $item = $this;
158 158
 
159 159
         while ($item = $item->getParent()) {
Please login to merge, or discard this patch.
module/Core/src/Core/Form/Hydrator/Strategy/TreeSelectStrategy.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -222,7 +222,7 @@
 block discarded – undo
222 222
      */
223 223
     private function findLeaf(NodeInterface $leaf, $value)
224 224
     {
225
-        $parts = is_array($value) ? $value : explode($this->shouldUseNames() ? ' | ': '-', $value);
225
+        $parts = is_array($value) ? $value : explode($this->shouldUseNames() ? ' | ' : '-', $value);
226 226
         $value = array_shift($parts);
227 227
 
228 228
         /* @var NodeInterface $item */
Please login to merge, or discard this patch.