for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace League\Plates\Extension\Data;
use League\Plates\HydrateTemplate\CallableHydrateTemplate;
function idResolveData() {
return function(ResolveDataArgs $args) {
return $args->data;
};
}
function globalResolveData() {
return function(ResolveDataArgs $args, $next) {
$ctx = $args->getContext();
if (!isset($ctx['globals'])) {
return $next($args);
return $next($args->withAddedData($ctx['globals']));
function perTemplateResolveData() {
$name = $args->getTemplate()->name;
if (!isset($ctx['pre_assigned_template_data'][$name])) {
return $next($args->withAddedData($ctx['pre_assigned_template_data'][$name]));
/** Allow view composers which will dynamically assign data to a given template */
function composerResolveData(array $composers) {
$composers
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.
return function() {
function folderResolveData($sep) {
return function(ResolveDataArgs $args, $next) use ($sep) {
$args
$next
// return $args->
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.