@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | |
37 | 37 | $handle = opendir($dir); |
38 | 38 | while ($path = readdir($handle)) { |
39 | - $toRegisterPath = implode(DIRECTORY_SEPARATOR, [$dir, $path]); |
|
39 | + $toRegisterPath = implode(DIRECTORY_SEPARATOR, [ $dir, $path ]); |
|
40 | 40 | register_annotation_file($toRegisterPath); |
41 | 41 | } |
42 | 42 | |
@@ -50,10 +50,10 @@ discard block |
||
50 | 50 | if (!function_exists('bind_repository_interface')) { |
51 | 51 | function bind_repository_interface(string $repositoryInterface, string $repository, string $entity) |
52 | 52 | { |
53 | - app()->bind($repositoryInterface, function ($app) use ($repository, $entity) { |
|
53 | + app()->bind($repositoryInterface, function($app) use ($repository, $entity) { |
|
54 | 54 | return new $repository( |
55 | - $app['em'], |
|
56 | - $app['em']->getClassMetaData($entity) |
|
55 | + $app[ 'em' ], |
|
56 | + $app[ 'em' ]->getClassMetaData($entity) |
|
57 | 57 | ); |
58 | 58 | }); |
59 | 59 | } |