#!/usr/bin/php
<?php
/**
 * YML to config
 *
 * Read the .wp-git.hooks.yml file.
 *
 * PHP Version 7
 *
 * @category Configuration
 * @package  ClaudioSanches\WpGitHooks
 * @author   Claudio Sanches <contato@claudiosanches.com>
 * @license  https://git.io/vFkiA GPLv3
 * @link     https://github.com/claudiosanches/wp-git-hooks
 */

include_once __DIR__ . '/../autoload.php';

$config = Spyc::YAMLLoad(__DIR__ . '/../.wp-git-hooks.yml');

if (empty($config['pre_commit']['ignore'])) {
    exit;
}

$ignore = implode(',', $config['pre_commit']['ignore']);

exit($ignore);
