for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Drupal\mongodb_watchdog\Controller;
use Drupal\Core\DependencyInjection\ContainerInjectionInterface;
use Symfony\Component\DependencyInjection\ContainerInterface;
/**
* Implements the controller for the request events page.
*/
class RequestController implements ContainerInjectionInterface {
* {@inheritdoc}
public static function create(ContainerInterface $container) {
return new static();
}
* Controller.
*
* @param string $unique_id
* The unique request id from mod_unique_id.
* @return array
array<string,string>
This check looks for the generic type array as a return type and suggests a more specific type. This type is inferred from the actual code.
array
* A render array.
public function track($unique_id) {
return [
'#markup' => $unique_id,
];
This check marks files that end in a newline character, i.e. an empy line.
This check looks for the generic type
array
as a return type and suggests a more specific type. This type is inferred from the actual code.