alexgo93/breacketsLib

View on GitHub
bin/run

Summary

Maintainability
Test Coverage
#!/usr/bin/env php
<?php


if (is_file(__DIR__.'/../autoload.php')) {
    require_once __DIR__.'/../autoload.php';
} else {
    require_once __DIR__ . '/../../../autoload.php';
}

use function \cli\out;
use function \cli\input;

function run()
{
    out("Enter a string of brackets\n");
    $brackets = input();
    isBalanced($brackets) ? out("Balanced \n") : out("Non balanced \n");
}
run();