Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenvanassche authored and github-actions[bot] committed Jun 21, 2023
1 parent 6a85dbb commit 4d1176f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Support/Annotations/DataCollectableAnnotationReader.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,10 @@ protected function resolveArrayAnnotations(

$arrayType = Arr::first(
explode('|', $types),
fn(string $type) => str_contains($type, '[]'),
fn (string $type) => str_contains($type, '[]'),
);

if(empty($arrayType)){
if(empty($arrayType)) {
continue;
}

Expand Down
2 changes: 1 addition & 1 deletion src/Support/DataClass.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public static function create(ReflectionClass $class): self

$dataCollectablePropertyAnnotations = DataCollectableAnnotationReader::create()->getForClass($class);

if($constructor){
if($constructor) {
$dataCollectablePropertyAnnotations = array_merge(
$dataCollectablePropertyAnnotations,
DataCollectableAnnotationReader::create()->getForMethod($constructor)
Expand Down

0 comments on commit 4d1176f

Please sign in to comment.