Skip to content

Instantly share code, notes, and snippets.

View lapistano's full-sized avatar

lapistano lapistano

View GitHub Profile
@lapistano
lapistano / clean-use.php
Created December 9, 2011 11:11 — forked from ezzatron/clean-use.php
Script to clean unnecessary PHP use statements
#!/usr/bin/env php
<?php
$paths = array();
if (isset($_SERVER['argv']))
{
$paths = $_SERVER['argv'];
array_shift($paths);
if (!$paths)