@@ -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(); |
@@ -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'], |