forked from tighten/collect
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request tighten#56 from tightenco/kd-tightenco-namespace
Change namespace to TightenCo and alias to Illuminate namespace
- Loading branch information
Showing
15 changed files
with
199 additions
and
36 deletions.
There are no files selected for viewing
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
...lluminate/Contracts/Support/Arrayable.php → ...Tightenco/Contracts/Support/Arrayable.php
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<?php | ||
|
||
namespace Illuminate\Contracts\Support; | ||
namespace Tightenco\Contracts\Support; | ||
|
||
interface Arrayable | ||
{ | ||
|
2 changes: 1 addition & 1 deletion
2
...Illuminate/Contracts/Support/Htmlable.php → src/Tightenco/Contracts/Support/Htmlable.php
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<?php | ||
|
||
namespace Illuminate\Contracts\Support; | ||
namespace Tightenco\Contracts\Support; | ||
|
||
interface Htmlable | ||
{ | ||
|
2 changes: 1 addition & 1 deletion
2
...Illuminate/Contracts/Support/Jsonable.php → src/Tightenco/Contracts/Support/Jsonable.php
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<?php | ||
|
||
namespace Illuminate\Contracts\Support; | ||
namespace Tightenco\Contracts\Support; | ||
|
||
interface Jsonable | ||
{ | ||
|
4 changes: 2 additions & 2 deletions
4
src/Illuminate/Support/Arr.php → src/Tightenco/Support/Arr.php
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
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
2 changes: 1 addition & 1 deletion
2
src/Illuminate/Support/Debug/Dumper.php → src/Tightenco/Support/Debug/Dumper.php
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
2 changes: 1 addition & 1 deletion
2
src/Illuminate/Support/Debug/HtmlDumper.php → src/Tightenco/Support/Debug/HtmlDumper.php
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
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
4 changes: 2 additions & 2 deletions
4
src/Illuminate/Support/HtmlString.php → src/Tightenco/Support/HtmlString.php
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
2 changes: 1 addition & 1 deletion
2
src/Illuminate/Support/Traits/Macroable.php → src/Tightenco/Support/Traits/Macroable.php
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<?php | ||
|
||
$aliases = [ | ||
/** | ||
* Contracts | ||
*/ | ||
Tightenco\Contracts\Support\Arrayable::class => Illuminate\Contracts\Support\Arrayable::class, | ||
Tightenco\Contracts\Support\Htmlable::class => Illuminate\Contracts\Support\Htmlable::class, | ||
Tightenco\Contracts\Support\Jsonable::class => Illuminate\Contracts\Support\Jsonable::class, | ||
|
||
/** | ||
* Support | ||
*/ | ||
Tightenco\Support\Arr::class => Illuminate\Support\Arr::class, | ||
Tightenco\Support\Collection::class => Illuminate\Support\Collection::class, | ||
Tightenco\Support\HigherOrderCollectionProxy::class => Illuminate\Support\HigherOrderCollectionProxy::class, | ||
Tightenco\Support\HtmlString::class => Illuminate\Support\HtmlString::class, | ||
|
||
/** | ||
* Support\Debug | ||
*/ | ||
Tightenco\Support\Debug\Dumper::class => Illuminate\Support\Debug\Dumper::class, | ||
Tightenco\Support\Debug\HtmlDumper::class => Illuminate\Support\Debug\HtmlDumper::class, | ||
|
||
/** | ||
* Support\Traits | ||
*/ | ||
Tightenco\Support\Traits\Macroable::class => Illuminate\Support\Traits\Macroable::class, | ||
]; | ||
|
||
foreach ($aliases as $tighten => $illuminate) { | ||
if (! class_exists($illuminate) && ! interface_exists($illuminate) && ! trait_exists($illuminate)) { | ||
class_alias($tighten, $illuminate); | ||
} | ||
} |
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
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