Dhii/exception

View on GitHub
src/InvalidArgumentException.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 InvalidArgumentException as RootInvalidArgumentException;
Severity: Major
Found in src/InvalidArgumentException.php and 2 other locations - About 3 hrs to fix
src/OutOfBoundsException.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/InvalidArgumentException.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/InvalidArgumentException.php by phpmd
Category
Status