This repository has been archived by the owner on May 17, 2022. It is now read-only.
-
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.
improvements in build component + refactorings
- Loading branch information
1 parent
715f5d6
commit bfc03dd
Showing
4 changed files
with
11 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
|
||
namespace Dvi\Support; | ||
|
||
use Dvi\Corda\Support\Corda; | ||
use Dvi\Corda\Support\Corda as str; | ||
use Tightenco\Collect\Support\Collection as SupportCollection; | ||
|
||
|
@@ -14,13 +15,14 @@ | |
* @copyright Copyright (c) 2018. ([email protected]) | ||
* @see https://github.com/DaviMenezes | ||
* @see https://t.me/davimenezes | ||
* @method Corda first(callable $callback = null, $default = null) | ||
*/ | ||
class Collection extends SupportCollection | ||
{ | ||
/** | ||
* @param $value | ||
* @param null $glue | ||
* @return Corda | ||
* @return str | ||
*/ | ||
public function implode($value, $glue = null) | ||
{ | ||
|
@@ -30,7 +32,7 @@ public function implode($value, $glue = null) | |
/** | ||
* @param $key | ||
* @param null $default | ||
* @return Corda|mixed | ||
* @return str|mixed | ||
*/ | ||
public function get($key, $default = null) | ||
{ | ||
|
@@ -41,7 +43,7 @@ public function get($key, $default = null) | |
return $result; | ||
} | ||
|
||
/**@return Corda*/ | ||
/**@return str*/ | ||
public function route() | ||
{ | ||
$this->map(function ($item, $key) use (&$url) { | ||
|
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 |
---|---|---|
|
@@ -14,6 +14,7 @@ | |
* @copyright Copyright (c) 2018. ([email protected]) | ||
* @see https://github.com/DaviMenezes | ||
* @see https://t.me/davimenezes | ||
* @method Corda first($n) | ||
*/ | ||
class Corda extends Stringy | ||
{ | ||
|
@@ -34,7 +35,7 @@ public function lines() | |
/**@return Collection*/ | ||
public function split($pattern, $limit = null) | ||
{ | ||
return collect(parent::split($pattern, $limit)); | ||
return \collection(parent::split($pattern, $limit)); | ||
} | ||
|
||
public function lastStr(string $separator) | ||
|
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