Created
May 9, 2011 09:51
-
-
Save ezzatron/962302 to your computer and use it in GitHub Desktop.
Scisr clean-use
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Foo; | |
use Bar\Baz\Qux; | |
use Bar\Baz\Splat; | |
class Donk | |
{ | |
public function foo(Qux $qux) {} | |
/** @returns Splat */ | |
public function bar() {} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Foo; | |
use Bar\Baz\Qux; // used in type hint | |
use Bar\Baz\Doom; // not used | |
use Bar\Baz\Splat; // used in DocBlock - utilised by some IDEs (NetBeans) | |
class Donk | |
{ | |
public function foo(Qux $qux) {} | |
/** @returns Splat */ | |
public function bar() {} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
scisr clean-use [path] ... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment