Skip to content

Commit

Permalink
CS
Browse files Browse the repository at this point in the history
  • Loading branch information
Maks3w committed Aug 17, 2019
1 parent 6c94d84 commit 8eae34e
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/Common/PlaceholderMethods.php
Expand Up @@ -33,7 +33,7 @@ public static function findInvalidPlaceholdersNames(array $placeholders, array $
$invalidPlaceholderNames = array_intersect($placeholders, $contextKeys);

$invalidPlaceholderNames = array_filter($invalidPlaceholderNames, function ($placeholder) {
return !PlaceholderMethods::isValidPlaceholderName($placeholder);
return !self::isValidPlaceholderName($placeholder);
});

return $invalidPlaceholderNames;
Expand Down
2 changes: 1 addition & 1 deletion tests/PhpUnit/ExceptionsInContextConstraintTest.php
Expand Up @@ -23,7 +23,7 @@ protected function setUp()

public function testConstraintDefinition()
{
self::assertEquals(1, count($this->constraint));
self::assertCount(1, $this->constraint);
self::assertEquals(
'exceptions are located in the "exception" key',
$this->constraint->toString()
Expand Down
2 changes: 1 addition & 1 deletion tests/PhpUnit/LevelConstraintTest.php
Expand Up @@ -24,7 +24,7 @@ protected function setUp()

public function testConstraintDefinition()
{
self::assertEquals(1, count($this->constraint));
self::assertCount(1, $this->constraint);
self::assertEquals(
'is a recognized log level (emergency, alert, critical, error, warning, notice, info, debug)',
$this->constraint->toString()
Expand Down
2 changes: 1 addition & 1 deletion tests/PhpUnit/MessageTypeConstraintTest.php
Expand Up @@ -25,7 +25,7 @@ protected function setUp()

public function testConstraintDefinition()
{
self::assertEquals(1, count($this->constraint));
self::assertCount(1, $this->constraint);
self::assertEquals(
'is string or a object with a __toString() method',
$this->constraint->toString()
Expand Down
Expand Up @@ -31,7 +31,7 @@ protected function setUp()

public function testConstraintDefinition()
{
self::assertEquals(1, count($this->constraint));
self::assertCount(1, $this->constraint);
self::assertEquals(
'placeholder exists in the context array',
$this->constraint->toString()
Expand Down
Expand Up @@ -27,7 +27,7 @@ protected function setUp()

public function testConstraintDefinition()
{
self::assertEquals(1, count($this->constraint));
self::assertCount(1, $this->constraint);
self::assertEquals(
'placeholder has valid name',
$this->constraint->toString()
Expand Down

0 comments on commit 8eae34e

Please sign in to comment.