| Conditions | 2 |
| Paths | 2 |
| Total Lines | 17 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 29 | protected function invokeTest() |
||
| 30 | { |
||
| 31 | $connection = $this->connection; |
||
| 32 | $subject = $this->getSubject(); |
||
| 33 | |||
| 34 | try { |
||
| 35 | $connection->bind($this->username, $this->password); |
||
| 36 | } catch (Exception $e) { |
||
| 37 | $msg = str_replace('Library - LDAP bind(): ', '', $e->getMessage()); |
||
| 38 | $this->setState(State::ERROR); |
||
| 39 | $this->addMessage(State::ERROR, 'LDAP Bind', $subject, $msg); |
||
| 40 | return; |
||
| 41 | } |
||
| 42 | |||
| 43 | $this->setState(State::OK); |
||
| 44 | $this->addMessage(State::OK, 'LDAP Bind', $subject, 'Bind succesful'); |
||
| 45 | } |
||
| 46 | } |
||
| 47 |
This check examines a number of code elements and verifies that they conform to the given naming conventions.
You can set conventions for local variables, abstract classes, utility classes, constant, properties, methods, parameters, interfaces, classes, exceptions and special methods.