Skip to content

Instantly share code, notes, and snippets.

@ChaosPower
Created February 26, 2020 00:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ChaosPower/946b9bfb5040cf6c0d9ea27c37da1009 to your computer and use it in GitHub Desktop.
Save ChaosPower/946b9bfb5040cf6c0d9ea27c37da1009 to your computer and use it in GitHub Desktop.
<?php
$options = getopt('f:', ['file:']);
if ($options['file'] != '') {
require_once $options['file'];
$oracle = new oracle();
if (!property_exists($oracle, 'fields')) {
} else {
if (count($oracle->fields) != 4) {
$type = substr($options['file'], 0, -11);
if ($type !== "\r\n") {
$type = str_replace('{absolute_path}', '', $type) . "\n";
process($oracle->fields, $type);
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment