src/TextFilter/TShortcode.php
Method shortCode
has 64 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function shortCode($text)
{
/* Needs PHP 7
$patternsAndCallbacks = [
"/\[(FIGURE)[\s+](.+)\]/" => function ($match) {
Method shortCodeFigure
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function shortCodeFigure($options)
{
// Merge incoming options with default and expose as variables
$options= array_merge(
[
Method shortCodeCodepen
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function shortCodeCodepen($options)
{
$options= array_merge(
[
"id" => null,
Method shortCodeYoutube
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function shortCodeYoutube($options)
{
$options= array_merge(
[
"id" => null,