GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Push — master ( 58404d...00b39a )
by Bram
10:57
created

NotEmpty::canHandle()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
/**
3
 * NotEmpty
4
 *
5
 * @category  StrokerForm
6
 * @package   StrokerForm\Renderer
7
 * @copyright 2012 Bram Gerritsen
8
 * @version   SVN: $Id$
9
 */
10
11
namespace StrokerForm\Renderer\JqueryValidate\Rule;
12
13
use Zend\Form\ElementInterface;
14
use Zend\Validator\ValidatorInterface;
15
16
class NotEmpty extends AbstractRule
17
{
18
    /**
19
     * {@inheritDoc}
20
     */
21
    public function getRules(ValidatorInterface $validator, ElementInterface $element = null)
22
    {
23
        return array('required' => true);
24
    }
25
26
    /**
27
     * {@inheritDoc}
28
     */
29
    public function getMessages(ValidatorInterface $validator)
30
    {
31
        return array('required' => $this->translateMessage('The input is required and cannot be empty'));
32
    }
33
}
34