src/Phinx/Db/Table/ForeignKey.php
protected function normalizeAction($action)
    {
        $constantName = 'static::' . str_replace(' ', '_', strtoupper(trim($action)));
        if (!defined($constantName)) {
            throw new \InvalidArgumentException('Unknown action passed: ' . $action);
        }

        return constant($constantName);
    }
protected function normalizeAction($action)
    {
        $constantName = 'static::' . str_replace(' ', '_', strtoupper(trim($action)));
        if (!defined($constantName)) {
            throw new \InvalidArgumentException('Unknown action passed: ' . $action);
        }

        return constant($constantName);
    }
protected function normalizeAction ( $ action ) { $ constantName = 'static::' . str_replace ( ' ' , '_' , strtoupper ( trim ( $ action ) ) ) ; if ( ! defined ( $ constantName ) ) { throw new \ InvalidArgumentException ( 'Unknown action passed: ' . $ action ) ; } return constant ( $ constantName ) ; }
From passed value checks if it's correct and fixes if needed

@param string $action
@throws \InvalidArgumentException
@return string
From passed value checks if it s correct and fixes if needed