Skip to content

Commit

Permalink
Fix coding style
Browse files Browse the repository at this point in the history
  • Loading branch information
antonioribeiro committed Mar 8, 2020
1 parent 53ddb75 commit 99168cf
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
6 changes: 1 addition & 5 deletions src/Services/Blocks/Block.php
Original file line number Diff line number Diff line change
Expand Up @@ -180,11 +180,7 @@ public function parse()

$name = Str::before($this->file->getFilename(), '.blade.php');

$title = $this->parseProperty(
'title',
$contents,
$name
);
$title = $this->parseProperty('title', $contents, $name);

$icon = $this->parseProperty('icon', $contents, $name);

Expand Down
18 changes: 11 additions & 7 deletions src/Services/Blocks/BlockCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,11 @@ public function findByName($search, $sources = [])
*/
public function getBlocks()
{
return $this->collect()->filter(function ($block) {
return $block->type === Block::TYPE_BLOCK;
})->values();
return $this->collect()
->filter(function ($block) {
return $block->type === Block::TYPE_BLOCK;
})
->values();
}

/**
Expand All @@ -66,7 +68,7 @@ public function getBlockList()
{
return $this->getBlocks()->map(function (Block $block) {
return $block->toList();
});;
});
}

/**
Expand Down Expand Up @@ -207,9 +209,11 @@ public function collect()
*/
public function getRepeaters()
{
return $this->collect()->filter(function ($block) {
return $block->type === Block::TYPE_REPEATER;
})->values();
return $this->collect()
->filter(function ($block) {
return $block->type === Block::TYPE_REPEATER;
})
->values();
}

/**
Expand Down

0 comments on commit 99168cf

Please sign in to comment.