*/
public function setPrefix($prefix)
{
- $this->prefix = is_array($prefix) ? $prefix : array($prefix);
+ $this->prefix = \is_array($prefix) ? $prefix : array($prefix);
return $this;
}
/**
* Sets the working directory.
*
- * @param null|string $cwd The working directory
+ * @param string|null $cwd The working directory
*
* @return $this
*/
* defined environment variable.
*
* @param string $name The variable name
- * @param null|string $value The variable value
+ * @param string|null $value The variable value
*
* @return $this
*/
*/
public function getProcess()
{
- if (0 === count($this->prefix) && 0 === count($this->arguments)) {
+ if (0 === \count($this->prefix) && 0 === \count($this->arguments)) {
throw new LogicException('You must add() command arguments before calling getProcess().');
}