@@ -65,9 +65,9 @@ |
||
65 | 65 | protected function create(array $data) |
66 | 66 | { |
67 | 67 | return User::create([ |
68 | - 'name' => $data['name'], |
|
69 | - 'email' => $data['email'], |
|
70 | - 'password' => bcrypt($data['password']), |
|
68 | + 'name' => $data[ 'name' ], |
|
69 | + 'email' => $data[ 'email' ], |
|
70 | + 'password' => bcrypt($data[ 'password' ]), |
|
71 | 71 | ]); |
72 | 72 | } |
73 | 73 | } |
@@ -6,7 +6,7 @@ |
||
6 | 6 | * @author Taylor Otwell <[email protected]> |
7 | 7 | */ |
8 | 8 | $uri = urldecode( |
9 | - parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH) |
|
9 | + parse_url($_SERVER[ 'REQUEST_URI' ], PHP_URL_PATH) |
|
10 | 10 | ); |
11 | 11 | |
12 | 12 | // This file allows us to emulate Apache's "mod_rewrite" functionality from the |
@@ -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 | } |