Skip to content

Commit

Permalink
Fix PhpMd errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Westin Shafer committed Dec 18, 2019
1 parent 17c929e commit 50cdc8c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"phpunit/phpunit": "^8.5.0",
"squizlabs/php_codesniffer": "^3.5.3",
"phpmd/phpmd" : "@stable",
"satooshi/php-coveralls": "^1.0",
"satooshi/php-coveralls": "^2.2.0",
"swiftmailer/swiftmailer": "^6.0",
"php-amqplib/php-amqplib": "2.6.*",
"graylog2/gelf-php": "^1.5",
Expand Down
9 changes: 3 additions & 6 deletions src/Handler/HandlerMapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,12 @@

/**
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
* @SuppressWarnings(PHPMD.CyclomaticComplexity)
* @SuppressWarnings(PHPMD.ExcessiveClassComplexity)
* @SuppressWarnings(PHPMD.ExcessiveMethodLength)
*/
class HandlerMapper implements MapperInterface
{
/**
* @param string $type
* @return null|string
*
* @SuppressWarnings(PHPMD.CyclomaticComplexity)
*/
public function map(string $type)
{
$type = strtolower($type);
Expand Down
3 changes: 3 additions & 0 deletions src/Handler/SendGridHandlerFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@

class SendGridHandlerFactory implements FactoryInterface
{
/**
* * @SuppressWarnings(PHPMD.ShortVariable)
*/
public function __invoke(array $options)
{
$apiUser = (string) ($options['apiUser'] ?? '');
Expand Down

0 comments on commit 50cdc8c

Please sign in to comment.