@@ -13,8 +13,6 @@ |
||
13 | 13 | use Silex\Provider\MonologServiceProvider; |
14 | 14 | use Ivoba\Silex\RedBeanServiceProvider; |
15 | 15 | use Silex\Provider\SessionServiceProvider; |
16 | -use Carbon\Carbon; |
|
17 | -use Monolog\Logger; |
|
18 | 16 | |
19 | 17 | // FIXME va messo nel php.ini |
20 | 18 | date_default_timezone_set('Europe/Rome'); |
@@ -37,10 +37,10 @@ |
||
37 | 37 | // @see: https://github.com/ivoba/redbean-service-provider |
38 | 38 | //'mysql:host=localhost;dbname=mydatabase', 'user', 'password' |
39 | 39 | |
40 | -if($config['database']['type']==='sqlite'){ |
|
40 | +if ($config['database']['type'] === 'sqlite') { |
|
41 | 41 | $app->register(new RedBeanServiceProvider(), array('db.options' => array('dsn' => 'sqlite:'.$config['database']['host']))); |
42 | 42 | } |
43 | -if($config['database']['type']==='mysql'){ |
|
43 | +if ($config['database']['type'] === 'mysql') { |
|
44 | 44 | $app->register(new RedBeanServiceProvider(), ['db.options' => |
45 | 45 | [ |
46 | 46 | 'dsn' => 'mysql:'.$config['database']['host'].';dbname='.$config['database']['dbname'], |
@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace Tests; |
4 | 4 | |
5 | 5 | use Silex\WebTestCase; |
6 | -use JsonSchema\Validator; |
|
7 | 6 | |
8 | 7 | class WorkspaceTest extends WebTestCase |
9 | 8 | { |
@@ -9,14 +9,14 @@ |
||
9 | 9 | { |
10 | 10 | use AbstractAppTest; |
11 | 11 | |
12 | - public function testGetBadgeSpecialita(){ |
|
12 | + public function testGetBadgeSpecialita() { |
|
13 | 13 | $schema = __DIR__.'/../../../../api/schemas/badgeList.json'; |
14 | 14 | $client = $this->createClient(); |
15 | 15 | $client = $this->logIn($client); |
16 | 16 | |
17 | - $kind_of_badge = ['specialita','brevetti','eventi']; |
|
17 | + $kind_of_badge = ['specialita', 'brevetti', 'eventi']; |
|
18 | 18 | |
19 | - foreach($kind_of_badge as $option){ |
|
19 | + foreach ($kind_of_badge as $option) { |
|
20 | 20 | |
21 | 21 | $crawler = $client->request('GET', '/api/v1/badge/?filterBy='.$option); |
22 | 22 | $response = $client->getResponse(); |
@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace Tests; |
4 | 4 | |
5 | 5 | use Silex\WebTestCase; |
6 | -use Carbon\Carbon; |
|
7 | 6 | |
8 | 7 | class WorkspaceTest extends WebTestCase |
9 | 8 | { |