mirror of
https://github.com/ad-aures/castopod.git
synced 2026-04-13 11:37:46 +02:00
refactor: add rector to enforce type declarations, code quality + style and remove dead code
- update CI process to include quality stage (tests + code review) - add captainhook to install git pre-commit & pre-push hooks - remove .devcontainer Dockerfile to use project's docker-compose services: all services can now be started automatically using vscode - update docs/setup-development.md
This commit is contained in:
parent
a54a5964c3
commit
5c5c6da4be
302 changed files with 9802 additions and 4674 deletions
|
|
@ -8,6 +8,11 @@
|
|||
|
||||
namespace Analytics\Controllers;
|
||||
|
||||
use Analytics\Config\Analytics;
|
||||
use CodeIgniter\HTTP\RequestInterface;
|
||||
use CodeIgniter\HTTP\ResponseInterface;
|
||||
use Psr\Log\LoggerInterface;
|
||||
use Config\Services;
|
||||
use CodeIgniter\Controller;
|
||||
|
||||
class EpisodeAnalyticsController extends Controller
|
||||
|
|
@ -22,17 +27,17 @@ class EpisodeAnalyticsController extends Controller
|
|||
protected $helpers = ['analytics'];
|
||||
|
||||
/**
|
||||
* @var \Analytics\Config\Analytics
|
||||
* @var Analytics
|
||||
*/
|
||||
protected $config;
|
||||
/**
|
||||
* Constructor.
|
||||
*/
|
||||
public function initController(
|
||||
\CodeIgniter\HTTP\RequestInterface $request,
|
||||
\CodeIgniter\HTTP\ResponseInterface $response,
|
||||
\Psr\Log\LoggerInterface $logger
|
||||
) {
|
||||
RequestInterface $request,
|
||||
ResponseInterface $response,
|
||||
LoggerInterface $logger
|
||||
): void {
|
||||
// Do Not Edit This Line
|
||||
parent::initController($request, $response, $logger);
|
||||
|
||||
|
|
@ -52,8 +57,9 @@ class EpisodeAnalyticsController extends Controller
|
|||
// Add one hit to this episode:
|
||||
public function hit($base64EpisodeData, ...$audioFilePath)
|
||||
{
|
||||
$session = \Config\Services::session();
|
||||
$session = Services::session();
|
||||
$session->start();
|
||||
|
||||
$serviceName = '';
|
||||
if (isset($_GET['_from'])) {
|
||||
$serviceName = $_GET['_from'];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue