Skip to content

Commit

Permalink
fixing missing frontend libs private dir
Browse files Browse the repository at this point in the history
  • Loading branch information
iruzevic committed Oct 27, 2023
1 parent a61ed51 commit 7bfc16c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Blocks/AbstractBlocksCli.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ protected function moveItems(array $args, string $source, string $destination, s
$sourceItems = \array_fill_keys(\array_values($sourceItems), $source);
$sourceItemsPrivate = [];

if ($sourcePrivate) {
if (\is_dir($sourcePrivate)) {
$sourceItemsPrivate = \array_diff(\scandir($sourcePrivate) ?: [], ['..', '.']); // phpcs:ignore WordPress.PHP.DisallowShortTernary.Found
$sourceItemsPrivate = \array_fill_keys(\array_values($sourceItemsPrivate), $sourcePrivate);
}
Expand Down

0 comments on commit 7bfc16c

Please sign in to comment.