File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -452,7 +452,7 @@ protected function getAttributeFromTag($text, $attribute)
452
452
*/
453
453
protected function isListPlaceholder ($ text )
454
454
{
455
- return $ this ->isPlaceholderType ($ text , array ( 'ol ' , 'dl ' , 'ul ' ) );
455
+ return $ this ->isPlaceholderType ($ text , [ 'ol ' , 'dl ' , 'ul ' ] );
456
456
}
457
457
458
458
/**
@@ -478,26 +478,26 @@ public function isImagePlaceholder($text)
478
478
/**
479
479
* @param string $text
480
480
* @param array|string $types
481
- * @param bool $strict
482
481
*
483
482
* @return bool
484
483
*/
485
- protected function isPlaceholderType ($ text , $ types, $ strict = true )
484
+ protected function isPlaceholderType ($ text , $ types )
486
485
{
487
- if (! is_array ($ types )) {
488
- $ types = array ( $ types) ;
486
+ if (is_array ($ types ) === false ) {
487
+ $ types = [ $ types] ;
489
488
}
490
489
491
- $ criteria = array ();
490
+ $ criteria = [];
491
+
492
492
foreach ($ types as $ type ) {
493
- if ($ this ->config ->isIsolatedDiffTag ($ type )) {
493
+ if ($ this ->config ->isIsolatedDiffTag ($ type ) === true ) {
494
494
$ criteria [] = $ this ->config ->getIsolatedDiffTagPlaceholder ($ type );
495
495
} else {
496
496
$ criteria [] = $ type ;
497
497
}
498
498
}
499
499
500
- return in_array ($ text , $ criteria , $ strict );
500
+ return in_array ($ text , $ criteria , true );
501
501
}
502
502
503
503
/**
You can’t perform that action at this time.
0 commit comments