diff --git a/src/PermalinkFormComposer.php b/src/PermalinkFormComposer.php index d9fec35..7cc9b3c 100644 --- a/src/PermalinkFormComposer.php +++ b/src/PermalinkFormComposer.php @@ -33,13 +33,9 @@ public function compose(View $view) */ protected function getPermalinkPath($permalink = null) { - if ($permalink) { - return substr( - $permalink->final_path, 0, strrpos($permalink->final_path, "/") - ); - } - - return ''; + return $permalink ? substr( + $permalink->final_path, 0, strrpos($permalink->final_path, "/") + ) : ''; } /**