We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8d74945 commit 65b93aaCopy full SHA for 65b93aa
cli/includes/helpers.php
@@ -108,20 +108,18 @@ function should_be_sudo()
108
}
109
110
111
-if (! function_exists('tap')) {
112
- /**
113
- * Tap the given value.
114
- *
115
- * @param mixed $value
116
- * @param callable $callback
117
- * @return mixed
118
- */
119
- function tap($value, callable $callback)
120
- {
121
- $callback($value);
122
-
123
- return $value;
124
- }
+/**
+ * Tap the given value.
+ *
+ * @param mixed $value
+ * @param callable $callback
+ * @return mixed
+ */
+function tap($value, callable $callback)
+{
+ $callback($value);
+
+ return $value;
125
126
127
/**
0 commit comments