alientronics/fleetany-api

View on GitHub
app/Http/Controllers/Controller.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace App\Http\Controllers;

use Laravel\Lumen\Routing\Controller as BaseController;

class Controller extends BaseController
{
    protected function getZipContent($base64)
    {
        $deflate = base64_decode($base64);
        preg_match('/postData.json(.*)PK/', $deflate, $matches);
        if (!empty($matches[1])) {
            return gzinflate($matches[1]);
        } else {
            return null;
        }
    }
}