@@ 76-82 (lines=7) @@ | ||
73 | $currentDir = dirname($path); |
|
74 | ||
75 | $parents = []; |
|
76 | if (!empty($parent)) { |
|
77 | if (!isset($this->collectionParents[$parent])) { |
|
78 | throw new \InvalidArgumentException(sprintf('Cannot find parent resource with name %s', $parent)); |
|
79 | } |
|
80 | ||
81 | $parents = $this->collectionParents[$parent]; |
|
82 | } |
|
83 | ||
84 | $imported = $this->processor->importResource($this, $resource, $parents, $prefix, $namePrefix, $type, $currentDir); |
|
85 |
@@ 82-88 (lines=7) @@ | ||
79 | $currentDir = dirname($path); |
|
80 | ||
81 | $parents = []; |
|
82 | if (!empty($parent)) { |
|
83 | if (!isset($this->collectionParents[$parent])) { |
|
84 | throw new \InvalidArgumentException(sprintf('Cannot find parent resource with name %s', $parent)); |
|
85 | } |
|
86 | ||
87 | $parents = $this->collectionParents[$parent]; |
|
88 | } |
|
89 | ||
90 | $imported = $this->processor->importResource($this, $resource, $parents, $prefix, $namePrefix, $type, $currentDir); |
|
91 |