Exemplo n.º 1
0
 case '--location-by-blocks':
     $zipcode = new Zipcode();
     $zipcode->readzipFile();
     $zipcode->byBlocks();
     break;
 case '--location-by-block':
     $zipcode = new Zipcode();
     $zipcode->createBlock($argv[3], $argv[2]);
     break;
 case '--restaurant-num-by-block':
     $zipcode = new Zipcode();
     $zipcode->mintcraftBlocks($argv[3], $argv[2]);
     break;
 case '--restaurant-unique-value':
     $zipcode = new Zipcode();
     $zipcode->mintcraftUniqueValues($argv[2]);
     break;
 case '--diff':
     $zipcode = new Zipcode();
     $zipcode->zipcodesUniqueValues();
     $zipcode->locationUnique($argv[2]);
     //$zipcode->diffZipcodes($argv[2]);
     $zipcode->diffFileLocation('/usr/share/nginx/cli/SDInvoicesFileCheck/app/cli/test/diff.txt');
     break;
 case '--more-information':
     $zipcode = new Zipcode();
     $zipcode->needMoreInformation('/usr/share/nginx/cli/SDInvoicesFileCheck/app/cli/test/zipcode_unique.txt');
     break;
 case '--count-restaurants':
     $zipcode = new Zipcode();
     $zipcode->readfileLocation($argv[2]);