1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-08 06:06:45 +02:00

refactor(core): code formating and refactoring

This commit is contained in:
Awilum
2020-12-19 01:15:44 +03:00
parent 4082e1c63e
commit 86004c57ac
5 changed files with 9 additions and 16 deletions

View File

@@ -13,8 +13,8 @@ if (! function_exists('find')) {
/**
* Create a Finder instance with predefined filter params or without them.
*
* @param string $path Path.
* @param array $options Options array.
* @param string $path Path.
* @param array $options Options array.
* @param string $searchIn Search in 'files' or 'directories'. Default is 'files'.
*
* @return Symfony\Component\Finder<Finder>

View File

@@ -9,12 +9,12 @@ declare(strict_types=1);
namespace Flextype\Support\Parsers;
use Exception;
use ParsedownExtra;
use function flextype;
use function strings;
use ParsedownExtra;
use Exception;
final class Markdown
{
/**
@@ -117,7 +117,7 @@ final class Markdown
*
* @access public
*/
public function getCacheID($input): string
public function getCacheID(string $input): string
{
return strings('markdown' . $input)->hash()->toString();
}

View File

@@ -11,9 +11,6 @@ namespace Flextype\Support\Parsers;
use Atomastic\Macroable\Macroable;
use Flextype\Support\Parsers\Markdown;
use Flextype\Support\Parsers\Shortcode;
class Parsers
{
use Macroable;

View File

@@ -9,12 +9,12 @@ declare(strict_types=1);
namespace Flextype\Support\Parsers;
use Exception;
use Thunder\Shortcode\ShortcodeFacade;
use function flextype;
use function strings;
use Thunder\Shortcode\ShortcodeFacade;
use Exception;
final class Shortcode
{
/**

View File

@@ -11,10 +11,6 @@ namespace Flextype\Support\Serializers;
use Atomastic\Macroable\Macroable;
use Flextype\Support\Serializers\Frontmatter;
use Flextype\Support\Serializers\Json;
use Flextype\Support\Serializers\Yaml;
class Serializers
{
use Macroable;