src/Immutable/Debug.php
private function debugToken(Request $request)
    {
        $tokens = [
            $request->request->get(self::DEBUG_TOKEN),   // $_POST
            $request->query->get(self::DEBUG_TOKEN),     // $_GET
            $request->headers->get(self::DEBUG_TOKEN),   // Header
        ];

        /* Remove empty values from array */
        $tokens = array_filter($tokens);

        return array_shift($tokens);
    }
private function debugToken(Request $request)
    {
        $tokens = [
            $request->request->get(self::DEBUG_TOKEN),   // $_POST
            $request->query->get(self::DEBUG_TOKEN),     // $_GET
            $request->headers->get(self::DEBUG_TOKEN),   // Header
        ];

        /* Remove empty values from array */
        $tokens = array_filter($tokens);

        return array_shift($tokens);
    }
@param Request $request

@return string|null