for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
class GistShortCodeHandler
You can fix this by adding a namespace to your class:
namespace YourVendor; class YourClass { }
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.
{
public static function parse_gist($arguments, $caption = null, $parser = null)
$parser
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.
// first things first, if we dont have a Gist ID, then we don't need to
// go any further
if (empty($arguments['id'])) {
return;
}
if (!empty($caption)) {
$arguments['Caption'] = $caption;
$customise = array();
$customise['GistID'] = $arguments['id'];
//overide the defaults with the arguments supplied
$customise = array_merge($customise, $arguments);
//get our GIST template
$template = new SSViewer('GithubGist');
//return the customised template
return $template->process(new ArrayData($customise));
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.