for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Kadet\Xmpp\Utils\map;
use Kadet\Xmpp\Xml\XmlElement;
function prepend(string $prefix) {
return function($content) use ($prefix) {
return $prefix . $content;
};
}
function append(string $suffix) {
return function($content) use ($suffix) {
return $content . $suffix;
function asElement(string $name, string $uri = null, $class = XmlElement::class) {
$name
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.
$uri
return function($item) use ($class) {
return new $class('group', null, ['content' => $item]);
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.