Skip to content

Commit

Permalink
Merge pull request #39 from ziggurad/feature/add-command-to-remove-in…
Browse files Browse the repository at this point in the history
…-process-status-for-objects-fix

Add command to remove related products in process flag - FIX
  • Loading branch information
ziggurad authored Feb 18, 2021
2 parents 6a31733 + 2f286c5 commit fba1434
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/analysis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Analysis
on: [push]
on: [push, pull_request]

jobs:
build:
Expand Down
11 changes: 8 additions & 3 deletions src/Command/FieldcollectionsUpdateCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,11 @@ class FieldcollectionsUpdateCommand extends Command
* @param InstallerService $installerService
* @param string|null $name
*/
public function __construct(PimcoreFieldcollectionLocator $locator, InstallerService $installerService, ?string $name = null)
{
public function __construct(
PimcoreFieldcollectionLocator $locator,
InstallerService $installerService,
?string $name = null
) {
parent::__construct($name);
$this->locator = $locator;
$this->installerService = $installerService;
Expand All @@ -38,7 +41,9 @@ public function __construct(PimcoreFieldcollectionLocator $locator, InstallerSer
protected function configure()
{
$this
->setDescription('Updates fieldcollections from one (if specified) or all (by default) bundles under src catalog')
->setDescription(
'Updates fieldcollections from one (if specified) or all (by default) bundles under src catalog'
)
->addArgument('bundle', InputArgument::OPTIONAL, 'Bundle name');
}

Expand Down
4 changes: 2 additions & 2 deletions src/FileLocator/PimcoreFieldcollectionLocator.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@

class PimcoreFieldcollectionLocator extends PimcoreBundlesFilesLocator
{
protected const SUBCATALOG = 'Resources/fieldcollections';
protected const FILE_REGEX = '/fieldcollection\_(\w*)\_export\.json/';
const SUBCATALOG = 'Resources/fieldcollections';
const FILE_REGEX = '/fieldcollection\_(\w*)\_export\.json/';
}
2 changes: 1 addition & 1 deletion src/Service/DomService.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public function loadHTML(string $html): \DOMDocument
$doc->removeChild($doc->firstChild);
}

while ($container->firstChild ) {
while ($container->firstChild) {
$doc->appendChild($container->firstChild);
}

Expand Down

0 comments on commit fba1434

Please sign in to comment.