Skip to content

Commit

Permalink
[CODESTYLE] Make qa happy
Browse files Browse the repository at this point in the history
  • Loading branch information
dhoffmann1979 committed Aug 21, 2024
1 parent c1183bc commit d055c14
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
use In2code\In2publishCore\Component\Core\Demand\CallerAwareDemandsCollection;
use In2code\In2publishCore\Component\Core\Demand\Demands;
use In2code\In2publishCore\Component\Core\Demand\Type\MmDemand;
use In2code\In2publishCore\Component\Core\Demand\Type\SelectDemand;
use In2code\In2publishCore\Component\Core\DemandResolver\DemandResolver;
use In2code\In2publishCore\Component\Core\DemandResolver\Exception\InvalidDemandException;
use In2code\In2publishCore\Component\Core\Record\Factory\RecordFactoryInjection;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ class GroupProcessor extends AbstractProcessor
'uploadfolder',
];

/**
* @SuppressWarnings(PHPMD.CyclomaticComplexity)
* @SuppressWarnings(PHPMD.NPathComplexity)
*/
protected function additionalPreProcess(string $table, string $column, array $tca): array
{
$internalType = $tca['internal_type'] ?? 'db';
Expand Down Expand Up @@ -77,6 +81,10 @@ protected function additionalPreProcess(string $table, string $column, array $tc
return $reasons;
}

/**
* @SuppressWarnings(PHPMD.CyclomaticComplexity)
* @SuppressWarnings(PHPMD.NPathComplexity)
*/
protected function buildResolver(string $table, string $column, array $processedTca): ?Resolver
{
$foreignTable = $processedTca['allowed'];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,5 +84,4 @@ public function findMmByProperty(string $table, string $property, array $values)

return $this->mergeRowsByIdentifier($localRows, $foreignRows);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,12 @@
namespace In2code\In2publishCore\Component\Core\Resolver;

use In2code\In2publishCore\Component\Core\Demand\Demands;
use In2code\In2publishCore\Component\Core\Demand\Type\JoinDemand;
use In2code\In2publishCore\Component\Core\Demand\Type\MmDemand;
use In2code\In2publishCore\Component\Core\Demand\Type\StandaloneMmDemand;
use In2code\In2publishCore\Component\Core\PreProcessing\PreProcessor\AbstractProcessor;
use In2code\In2publishCore\Component\Core\Record\Model\Record;
use In2code\In2publishCore\Service\ReplaceMarkersService;
use In2code\In2publishCore\Service\ReplaceMarkersServiceInject;
use TYPO3\CMS\Core\Utility\GeneralUtility;

use function preg_match;

class SelectStandaloneMmResolver extends AbstractResolver
{
use ReplaceMarkersServiceInject;
Expand Down
3 changes: 3 additions & 0 deletions Classes/Component/Core/Resolver/TextResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ public function resolve(Demands $demands, Record $record): void
}
}

/**
* @SuppressWarnings(PHPMD.CyclomaticComplexity)
*/
protected function findRelationsInText(Demands $demands, string $text, Record $record): void
{
if (empty($text)) {
Expand Down
4 changes: 2 additions & 2 deletions Tests/Browser/AbstractBrowserTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@

abstract class AbstractBrowserTestCase extends TestCase
{
use DriverAssertions;

// Sleep Time used for "Workaround Sleeps"
protected $sleepTime = 3;

use DriverAssertions;

protected function setUp(): void
{
$env = [];
Expand Down
1 change: 0 additions & 1 deletion Tests/Browser/PublishFilesModuleTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@ static function (WebDriver $driver, RemoteWebElement $folderElement): void {

$foreignDriver->close();
unset($foreignDriver);

}

/**
Expand Down

0 comments on commit d055c14

Please sign in to comment.