Dhii/exception

View on GitHub
src/OutOfBoundsException.php

Summary

Maintainability
A
3 hrs
Test Coverage

Showing 1 of 3 total issues

Similar blocks of code found in 3 locations. Consider refactoring.
Open

<?php
 
namespace Dhii\Exception;
 
use Exception as RootException;
Severity: Major
Found in src/OutOfBoundsException.php and 2 other locations - About 3 hrs to fix
src/InvalidArgumentException.php on lines 1..80
src/OutOfRangeException.php on lines 1..80

The method _construct is not named in camelCase.
Invalid

protected function _construct()
{
}
Severity: Minor
Found in src/OutOfBoundsException.php by phpmd

The method _initParent is not named in camelCase.
Invalid

protected function _initParent($message = '', $code = 0, RootException $previous = null)
{
parent::__construct($message, $code, $previous);
}
Severity: Minor
Found in src/OutOfBoundsException.php by phpmd

There are no issues that match your filters.

Category
Status