Skip to content

Commit f7c991b

Browse files
authored
Not adding prefixes to names after use statements (#457)
1 parent 023b231 commit f7c991b

File tree

77 files changed

+251
-207
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

77 files changed

+251
-207
lines changed

specs/class-const/global-scope-single-level-with-single-level-use-statement-and-alias.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class Foo
4343
{
4444
}
4545
use Humbug\Foo as X;
46-
\Humbug\Foo::MAIN_CONST;
46+
X::MAIN_CONST;
4747

4848
PHP
4949
],
@@ -88,7 +88,7 @@ class X
8888
namespace Humbug;
8989
9090
use Reflector as X;
91-
\Reflector::MAIN_CONST;
91+
X::MAIN_CONST;
9292

9393
PHP
9494
],

specs/class-const/global-scope-single-level-with-single-level-use-statement.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class Command
4343
{
4444
}
4545
use Humbug\Command;
46-
\Humbug\Command::MAIN_CONST;
46+
Command::MAIN_CONST;
4747

4848
PHP
4949
],
@@ -84,7 +84,7 @@ class Command
8484
namespace Humbug;
8585
8686
use Reflector;
87-
\Reflector::MAIN_CONST;
87+
Reflector::MAIN_CONST;
8888

8989
PHP
9090
],

specs/class-const/global-scope-two-level-with-single-level-use-and-alias.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ class Bar
5858
namespace Humbug;
5959
6060
use Humbug\Foo as X;
61-
\Humbug\Foo\Bar::MAIN_CONST;
61+
X\Bar::MAIN_CONST;
6262

6363
PHP
6464
],
@@ -87,7 +87,7 @@ class Bar
8787
namespace Humbug;
8888
8989
use Humbug\Foo\Bar as X;
90-
\Humbug\Foo\Bar::MAIN_CONST;
90+
X::MAIN_CONST;
9191

9292
PHP
9393
],
@@ -168,7 +168,7 @@ class Bar
168168
namespace Humbug;
169169
170170
use Humbug\Foo as X;
171-
\Humbug\Foo\Bar::MAIN_CONST;
171+
X\Bar::MAIN_CONST;
172172

173173
PHP
174174
],

specs/class-const/global-scope-two-level-with-single-level-use.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ class Bar
5858
namespace Humbug;
5959
6060
use Humbug\Foo;
61-
\Humbug\Foo\Bar::MAIN_CONST;
61+
Foo\Bar::MAIN_CONST;
6262

6363
PHP
6464
],
@@ -96,7 +96,7 @@ class X
9696
namespace Humbug;
9797
9898
use Humbug\Foo\Bar;
99-
\Humbug\Foo\Bar\X::MAIN_CONST;
99+
Bar\X::MAIN_CONST;
100100

101101
PHP
102102
],
@@ -177,7 +177,7 @@ class Bar
177177
namespace Humbug;
178178
179179
use Humbug\Foo;
180-
\Humbug\Foo\Bar::MAIN_CONST;
180+
Foo\Bar::MAIN_CONST;
181181

182182
PHP
183183
],

specs/class-const/namespace-scope-single-level-with-single-level-use-statement-and-alias.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class Foo
4949
namespace Humbug\A;
5050
5151
use Humbug\Foo as X;
52-
\Humbug\Foo::MAIN_CONST;
52+
X::MAIN_CONST;
5353

5454
PHP
5555
],
@@ -102,7 +102,7 @@ class X
102102
namespace Humbug\A;
103103
104104
use Reflector as X;
105-
\Reflector::MAIN_CONST;
105+
X::MAIN_CONST;
106106

107107
PHP
108108
],

specs/class-const/namespace-scope-single-level.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ class Command
8888
namespace Humbug\X;
8989
9090
use Reflector;
91-
\Reflector::MAIN_CONST;
91+
Reflector::MAIN_CONST;
9292

9393
PHP
9494
],

specs/class-const/namespace-scope-two-level-with-single-level-use-and-alias.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ class Bar
5858
namespace Humbug\A;
5959
6060
use Humbug\Foo as X;
61-
\Humbug\Foo\Bar::MAIN_CONST;
61+
X\Bar::MAIN_CONST;
6262

6363
PHP
6464
],
@@ -87,7 +87,7 @@ class Bar
8787
namespace Humbug\A;
8888
8989
use Humbug\Foo\Bar as X;
90-
\Humbug\Foo\Bar::MAIN_CONST;
90+
X::MAIN_CONST;
9191

9292
PHP
9393
],
@@ -168,7 +168,7 @@ class Bar
168168
namespace Humbug\A;
169169
170170
use Humbug\Foo as X;
171-
\Humbug\Foo\Bar::MAIN_CONST;
171+
X\Bar::MAIN_CONST;
172172

173173
PHP
174174
],

specs/class-const/namespace-scope-two-level-with-single-level-use.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ class Bar
5858
namespace Humbug\X;
5959
6060
use Humbug\Foo;
61-
\Humbug\Foo\Bar::MAIN_CONST;
61+
Foo\Bar::MAIN_CONST;
6262

6363
PHP
6464
],
@@ -96,7 +96,7 @@ class X
9696
namespace Humbug\X;
9797
9898
use Humbug\Foo\Bar;
99-
\Humbug\Foo\Bar\X::MAIN_CONST;
99+
Bar\X::MAIN_CONST;
100100

101101
PHP
102102
],
@@ -177,7 +177,7 @@ class Bar
177177
namespace Humbug\X;
178178
179179
use Humbug\Foo;
180-
\Humbug\Foo\Bar::MAIN_CONST;
180+
Foo\Bar::MAIN_CONST;
181181

182182
PHP
183183
],

specs/class-const/namespace-single-part-with-single-level-use-statement.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class Foo
4949
namespace Humbug\X;
5050
5151
use Humbug\Foo;
52-
\Humbug\Foo::MAIN_CONST;
52+
Foo::MAIN_CONST;
5353

5454
PHP
5555
],
@@ -98,7 +98,7 @@ class Command
9898
namespace Humbug\X;
9999
100100
use Reflector;
101-
\Reflector::MAIN_CONST;
101+
Reflector::MAIN_CONST;
102102

103103
PHP
104104
],

specs/class-static-prop/global-scope-single-level-with-single-level-use-statement-and-alias.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class Foo
4242
{
4343
}
4444
use Humbug\Foo as X;
45-
\Humbug\Foo::$mainStaticProp;
45+
X::$mainStaticProp;
4646

4747
PHP
4848
,
@@ -85,7 +85,7 @@ class X
8585
namespace Humbug;
8686
8787
use Reflector as X;
88-
\Reflector::$mainStaticProp;
88+
X::$mainStaticProp;
8989

9090
PHP
9191
,

0 commit comments

Comments
 (0)