src/Phinx/Console/Command/AbstractCommand.php
protected function verifyMigrationDirectory($path)
    {
        if (!is_dir($path)) {
            throw new \InvalidArgumentException(sprintf(
                'Migration directory "%s" does not exist',
                $path
            ));
        }

        if (!is_writable($path)) {
            throw new \InvalidArgumentException(sprintf(
                'Migration directory "%s" is not writable',
                $path
            ));
        }
    }
protected function verifyMigrationDirectory($path)
    {
        if (!is_dir($path)) {
            throw new \InvalidArgumentException(sprintf(
                'Migration directory "%s" does not exist',
                $path
            ));
        }

        if (!is_writable($path)) {
            throw new \InvalidArgumentException(sprintf(
                'Migration directory "%s" is not writable',
                $path
            ));
        }
    }
protected function verifyMigrationDirectory ( $ path ) { if ( ! is_dir ( $ path ) ) { throw new \ InvalidArgumentException ( sprintf ( 'Migration directory "%s" does not exist' , $ path ) ) ; } if ( ! is_writable ( $ path ) ) { throw new \ InvalidArgumentException ( sprintf ( 'Migration directory "%s" is not writable' , $ path ) ) ; } }
Verify that the migration directory exists and is writable.

@param string $path
@throws \InvalidArgumentException
@return void
Verify that the migration directory exists and is writable .