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

Code cleanup and refactoring #5

This commit is contained in:
Awilum
2018-06-09 13:36:44 +03:00
parent a4377f4d91
commit fdc3229938
3 changed files with 17 additions and 18 deletions

View File

@@ -2,7 +2,7 @@
* Content: Markdown(Parsedown) parser removed! From now we are using plain HTML + Shortcodes
* Theme Simple: Cross-site scripting Vulnerabilities fixes
* Improving main .htaccess
* Code cleanup and refactoring #5
# Flextype 0.5.0, 2018-06-03
* Delete folders: site/data and site/accounts

View File

@@ -20,7 +20,7 @@ use Thunder\Shortcode\Shortcode\ShortcodeInterface;
class Content
{
/**
* An instance of the Cache class
* An instance of the Content class
*
* @var object
* @access protected
@@ -110,8 +110,8 @@ class Content
* Content::updateCurrentPage('title', 'New page title');
*
* @access public
* @param string $path Array path
* @param mixed $value Value to set
* @param string $path Array path
* @param mixed $value Value to set
* @return void
*/
public static function updateCurrentPage(string $path, $value) : void
@@ -190,11 +190,11 @@ class Content
* $pages = Content::getPages('projects');
*
* @access public
* @param string $url Page url
* @param bool $raw Raw or not raw content
* @param string $order_by Order type
* @param int $offset Offset
* @param int $length Length
* @param string $url Page url
* @param bool $raw Raw or not raw content
* @param string $order_by Order type
* @param int $offset Offset
* @param int $length Length
* @return array
*/
public static function getPages(string $url = '', bool $raw = false, string $order_by = 'date', string $order_type = 'DESC', int $offset = null, int $length = null) : array
@@ -376,8 +376,7 @@ class Content
*/
public static function processContent(string $content) : string
{
$content = Content::processShortcodes($content);
return $content;
return Content::processShortcodes($content);
}
/**

View File

@@ -17,6 +17,13 @@ use Symfony\Component\Yaml\Yaml;
class Flextype
{
/**
* The version of Flextype
*
* @var string
*/
const VERSION = '0.5.0';
/**
* An instance of the Flextype class
*
@@ -35,13 +42,6 @@ class Flextype
// Nothing here.
}
/**
* The version of Flextype
*
* @var string
*/
const VERSION = '0.5.0';
/**
* Constructor.
*