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:
@@ -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>
|
||||
|
@@ -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();
|
||||
}
|
||||
|
@@ -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;
|
||||
|
@@ -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
|
||||
{
|
||||
/**
|
||||
|
@@ -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;
|
||||
|
Reference in New Issue
Block a user