Skip to content

Commit

Permalink
style: apply automated php-cs-fixer changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohammad-Alavi committed Oct 1, 2024
1 parent cb8ace0 commit f5d355b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/Traits/HashIdTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,8 @@ private function locateAndDecodeIds($requestData, $key): mixed
private function processField($data, $keysTodo, $currentFieldName): mixed
{
// is the current field a null?! we can give it back and chill out
if(is_null($data)) {
return $data;
if (is_null($data)) {
return $data;
}

// check if there are no more fields to be processed
Expand Down
3 changes: 1 addition & 2 deletions tests/Unit/Traits/HashIdTraitTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
use Apiato\Core\Tests\Unit\UnitTestCase;
use Apiato\Core\Traits\HashIdTrait;
use PHPUnit\Framework\Attributes\CoversClass;
use ReflectionClass;

#[CoversClass(HashIdTrait::class)]
class HashIdTraitTest extends UnitTestCase
Expand All @@ -26,7 +25,7 @@ public function testProcessFieldShouldNotWrapANullInAnArray(): void
$data = null;
$keysTodo = ['*'];
$currentFieldName = null;
$reflection = new ReflectionClass($this->trait);
$reflection = new \ReflectionClass($this->trait);
$method = $reflection->getMethod('processField');

$result = $method->invoke($this->trait, $data, $keysTodo, $currentFieldName);
Expand Down

0 comments on commit f5d355b

Please sign in to comment.