for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace JeroenNoten\LaravelAdminLte\Menu\Filters;
use JeroenNoten\LaravelAdminLte\Menu\Builder;
class DataFilter implements FilterInterface
{
public function transform($item, Builder $builder)
if (isset($item['data'])) {
$item['data-compiled'] = $this->compileData($item['data']);
}
return $item;
protected function compileData($dataArray, $topNav = false)
$topNav
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.
$compiled = '';
foreach ($dataArray as $key => $value) {
$compiled .= 'data-'.$key.'="'.$value.'" ';
return $compiled;
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.