for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
use Nip\Form\Renderer\AbstractRenderer;
class Nip_Form_Renderer_Paragraph extends AbstractRenderer
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 function renderElements()
$return = '';
$renderRows = $this->renderRows();
if ($renderRows) {
$return .= $renderRows;
}
return $return;
public function renderRows()
$elements = $this->getElements();
foreach ($elements as $element) {
$return .= $this->renderRow($element);
public function renderRow($element)
if (!$element->isRendered()) {
$return .= '<p class="row row-'.$element->getUniqueId().($element->isError() ? ' error' : '').'">';
$return .= $this->renderLabel($element);
$class = "value ".($element->getType() == 'input' ? 'input' : '');
$return .= '<span class="'.$class.'">';
$return .= $element->renderElement();
$return .= '</span>';
$return .= $element->renderErrors();
$return .= '</p>';
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.