for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* @copyright Copyright (c) 2011 - 2015 Oleksandr Torosh (http://yonastudio.com)
* @author Oleksandr Torosh <[email protected]>
*/
namespace Tree\Form;
use Phalcon\Forms\Element\Text;
use Phalcon\Validation\Validator\PresenceOf;
class CategoryForm extends \Application\Form\Form
{
public function initialize()
$this->add(
(new Text('slug', ['required' => 'required']))
setLabel
(new \Phalcon\Forms\Elem...> 'Slug is required')))
null
Methods can only be called on objects. This check looks for methods being called on variables that have been inferred to never be objects.
->addValidator(new PresenceOf([
'message' => 'Slug is required'
]))
->setLabel('Slug')
);
(new Text('title', ['required' => 'required']))
(new \Phalcon\Forms\Elem... 'Title is required')))
'message' => 'Title is required'
->setLabel('Title')
}
Methods can only be called on objects. This check looks for methods being called on variables that have been inferred to never be objects.