projects
/
pharext
/
pharext
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
|
github
raw
|
patch
| inline |
side by side
(parent:
2c74052
)
no need for an array_column fallback, because our extensive yield <expr> usage alread...
author
Michael Wallner
<mike@php.net>
Thu, 3 Sep 2015 10:49:32 +0000
(12:49 +0200)
committer
Michael Wallner
<mike@php.net>
Thu, 3 Sep 2015 10:49:32 +0000
(12:49 +0200)
src/pharext/Cli/Command.php
patch
|
blob
|
history
diff --git
a/src/pharext/Cli/Command.php
b/src/pharext/Cli/Command.php
index bc0afbbf374ac4bfca064ff1215f5fd8ffcdcbab..e8d0ee02608f15710a213e9176fed58a0748a81f 100644
(file)
--- a/
src/pharext/Cli/Command.php
+++ b/
src/pharext/Cli/Command.php
@@
-7,20
+7,6
@@
use pharext\Cli\Args as CliArgs;
use Phar;
-if (!function_exists("array_column")) {
- function array_column(array $array, $col, $idx = null) {
- $result = [];
- foreach ($array as $el) {
- if (isset($idx)) {
- $result[$el[$idx]] = $el[$col];
- } else {
- $result[] = $el[$col];
- }
- }
- return $result;
- }
-}
-
trait Command
{
/**