Commit 9da3ee36 authored by Laurent Lécluse's avatar Laurent Lécluse
Browse files

Test PSR

parent 75d6112b
Pipeline #11580 passed with stage
in 20 seconds
......@@ -3,7 +3,6 @@
namespace UnicaenTbl;
use Laminas\ModuleManager\Feature\ConfigProviderInterface;
use Laminas\Mvc\MvcEvent;
/**
*
......@@ -12,13 +11,6 @@ use Laminas\Mvc\MvcEvent;
*/
class Module implements ConfigProviderInterface
{
public function onBootstrap(MvcEvent $e)
{
}
public function getConfig()
{
return include __DIR__ . '/config/module.config.php';
......
......@@ -2,4 +2,5 @@
// Generated by ZF2's ./bin/classmap_generator.php
return array(
'UnicaenTbl\Module' => __DIR__ . '/Module.php',
);
'UnicaenTbl\Provider\Privilege\Privileges' => __DIR__ . '/src/Provider/Privilege/Privileges.php',
);
\ No newline at end of file
......@@ -10,16 +10,12 @@
"require" : {
"unicaen/app": "dev-laminas_migration"
},
"require-dev" : {
"phpunit/PHPUnit": "^5.6"
},
"autoload" : {
"psr-0" : {
"UnicaenTbl" : "src/",
"UnicaenTblTest": "tests/"
"psr-4" : {
"UnicaenTbl\\": "src/"
},
"classmap": [
"./Module.php"
]
}
}
}
\ No newline at end of file
......@@ -3,7 +3,6 @@
namespace UnicaenTbl\Service;
use Doctrine\ORM\EntityManager;
use UnicaenApp\Service\EntityManagerAwareInterface;
use UnicaenApp\Service\EntityManagerAwareTrait;
/**
......@@ -11,7 +10,7 @@ use UnicaenApp\Service\EntityManagerAwareTrait;
*
* @author Laurent Lécluse <laurent.lecluse at unicaen.fr>
*/
class AbstractService implements EntityManagerAwareInterface
class AbstractService
{
use EntityManagerAwareTrait;
......@@ -51,7 +50,7 @@ class AbstractService implements EntityManagerAwareInterface
case 'double':
return (string)$value;
case 'array':
return '(' . implode(',', array_map(__class__.'::escape', $value)) . ')';
return '(' . implode(',', array_map(__class__ . '::escape', $value)) . ')';
}
throw new \Exception('La valeur transmise ne peut pas être convertie en SQL');
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment