private function getMaxDepth()
    {
        $maxDepth = 3;

        $extra = $this->composer->getPackage()->getExtra();

        if (array_key_exists(self::KEY_MAX_DEPTH, $extra)) {
            $maxDepth = $extra[self::KEY_MAX_DEPTH];
            $minDepth = $this->getMinDepth();

            if (is_int($maxDepth) === false     /* Must be an integer */
                || $maxDepth <= $minDepth       /* Larger than the minimum */
                || is_float($maxDepth) === true /* Within the boundaries of integer */
            ) {
                $message = vsprintf(
                    self::MESSAGE_ERROR_WRONG_MAX_DEPTH,
                    array(
                        'key' => self::KEY_MAX_DEPTH,
                        'min' => $minDepth,
                        'given' => var_export($maxDepth, true),
                    )
                );

                throw new \InvalidArgumentException($message);
            }
        }

        return $maxDepth;
    }
private function getMaxDepth()
    {
        $maxDepth = 3;

        $extra = $this->composer->getPackage()->getExtra();

        if (array_key_exists(self::KEY_MAX_DEPTH, $extra)) {
            $maxDepth = $extra[self::KEY_MAX_DEPTH];
            $minDepth = $this->getMinDepth();

            if (is_int($maxDepth) === false     /* Must be an integer */
                || $maxDepth <= $minDepth       /* Larger than the minimum */
                || is_float($maxDepth) === true /* Within the boundaries of integer */
            ) {
                $message = vsprintf(
                    self::MESSAGE_ERROR_WRONG_MAX_DEPTH,
                    array(
                        'key' => self::KEY_MAX_DEPTH,
                        'min' => $minDepth,
                        'given' => var_export($maxDepth, true),
                    )
                );

                throw new \InvalidArgumentException($message);
            }
        }

        return $maxDepth;
    }
private function getMaxDepth ( ) { $ maxDepth = 3 ; $ extra = $ this -> composer -> getPackage ( ) -> getExtra ( ) ; if ( array_key_exists ( self :: KEY_MAX_DEPTH , $ extra ) ) { $ maxDepth = $ extra [ self :: KEY_MAX_DEPTH ] ; $ minDepth = $ this -> getMinDepth ( ) ; if ( is_int ( $ maxDepth ) === false /* Must be an integer */ || $ maxDepth <= $ minDepth /* Larger than the minimum */ || is_float ( $ maxDepth ) === true /* Within the boundaries of integer */ ) { $ message = vsprintf ( self :: MESSAGE_ERROR_WRONG_MAX_DEPTH , array ( 'key' => self :: KEY_MAX_DEPTH , 'min' => $ minDepth , 'given' => var_export ( $ maxDepth , true ) , ) ) ; throw new \ InvalidArgumentException ( $ message ) ; } } return $ maxDepth ; }
Determines the maximum search depth when searching for Coding Standards.

@return int

@throws \InvalidArgumentException
Determines the maximum search depth when searching for Coding Standards .