From 99168cfdc37a5d27ac5cd6da89167d0aec9bc002 Mon Sep 17 00:00:00 2001 From: Antonio Carlos Ribeiro Date: Sun, 8 Mar 2020 18:37:35 +0100 Subject: [PATCH] Fix coding style --- src/Services/Blocks/Block.php | 6 +----- src/Services/Blocks/BlockCollection.php | 18 +++++++++++------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/Services/Blocks/Block.php b/src/Services/Blocks/Block.php index 02775bf8a..a7768e6a8 100644 --- a/src/Services/Blocks/Block.php +++ b/src/Services/Blocks/Block.php @@ -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); diff --git a/src/Services/Blocks/BlockCollection.php b/src/Services/Blocks/BlockCollection.php index 91a774e79..2a8c87430 100644 --- a/src/Services/Blocks/BlockCollection.php +++ b/src/Services/Blocks/BlockCollection.php @@ -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(); } /** @@ -66,7 +68,7 @@ public function getBlockList() { return $this->getBlocks()->map(function (Block $block) { return $block->toList(); - });; + }); } /** @@ -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(); } /**