for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace PSFS\controller;
use PSFS\controller\base\Admin;
/**
* Class LogController
* @package PSFS\controller
*/
class LogController extends Admin
{
* Servicio que muestra los logs del sistema
* @GET
* @route /admin/logs
* @visible false
* @return string|null
public function logs()
$log = _("Selecciona un fichero de log");
$logs = $this->srv->getLogFiles();
asort($logs);
return $this->render("logs.html.twig", array(
"logs" => $logs,
"log" => $log,
));
}
* @POST
* @return string
string|null
This check compares the return type specified in the @return annotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.
@return
public function showLogs()
$selected = $this->getRequest()->get("log");
list($log, $monthOpen) = $this->srv->formatLogFile($selected);
"selected" => $selected,
"month_open" => $monthOpen,
This check compares the return type specified in the
@return
annotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.