src/GameOfLife/Utils/Shell/ShellInputReader.php
/**
     * Adds the input line to the history in order to be able to use ARROW UP and ARROW DOWN keys
     * to navigate to previously used commands.
     *
     * @param String $_line The line that was read
     */
Adds the input line to the history in order to be able to use ARROW UP and ARROW DOWN keys
to navigate to previously used commands.

@param String $_line The line that was read
Adds the input line to the history in order to be able to use ARROW UP and ARROW DOWN keys to navigate to previously used commands . @param String $_line The line that was read
private function addLineToHistory(String $_line)
    {
        if ($_line != "" &&
            $_line != $this->lastHistoryLine ||
            stristr(PHP_OS, "win"))
        {
            readline_add_history($_line);
            $this->lastHistoryLine = $_line;
        }
    }
private function addLineToHistory ( String $ _line ) { if ( $ _line != " " && $ _line != $ this -> lastHistoryLine || stristr ( PHP_OS , " win " ) ) { readline_add_history ( $ _line ) ; $ this -> lastHistoryLine = $ _line ; } }
Adds the input line to the history in order to be able to use ARROW UP and ARROW DOWN keys
 to navigate to previously used commands.
Adds the input line to the history in order to be able to use ARROW UP and ARROW DOWN keys to navigate to previously used commands .
/*
             * For windows the readline_add_history method must be called after every readline call,
             * otherwise the history will be broken
             */