@@ -51,7 +51,7 @@ |
||
51 | 51 | */ |
52 | 52 | protected function registerBindings(Container $container, ConfigRepository $config) |
53 | 53 | { |
54 | - $container->singleton('Doctrine\ORM\EntityManager', function () use ($config) { |
|
54 | + $container->singleton('Doctrine\ORM\EntityManager', function() use ($config) { |
|
55 | 55 | return $this->createEntityManager($config); |
56 | 56 | }); |
57 | 57 |
@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | | |
23 | 23 | */ |
24 | 24 | |
25 | - 'paths' => [ ], |
|
25 | + 'paths' => [], |
|
26 | 26 | |
27 | 27 | /* |
28 | 28 | |-------------------------------------------------------------------------- |
@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | | |
34 | 34 | */ |
35 | 35 | |
36 | - 'types' => [ ], |
|
36 | + 'types' => [], |
|
37 | 37 | |
38 | 38 | /* |
39 | 39 | |-------------------------------------------------------------------------- |
@@ -22,7 +22,7 @@ |
||
22 | 22 | $unitOfWork = $entityManager->getUnitOfWork(); |
23 | 23 | |
24 | 24 | foreach ($unitOfWork->getScheduledEntityDeletions() as $entity) { |
25 | - if ( ! $this->isSoftDeletable($entity)) { |
|
25 | + if (!$this->isSoftDeletable($entity)) { |
|
26 | 26 | continue; |
27 | 27 | } |
28 | 28 |
@@ -21,14 +21,14 @@ |
||
21 | 21 | { |
22 | 22 | $metadata = $this->getEntityManager()->getMetadataFactory()->getAllMetadata(); |
23 | 23 | |
24 | - if (empty( $metadata )) { |
|
24 | + if (empty($metadata)) { |
|
25 | 25 | $this->error('No metadata found.'); |
26 | 26 | exit; |
27 | 27 | } |
28 | 28 | |
29 | 29 | $directory = array_get($this->laravel['config'], 'doctrine.proxy.directory'); |
30 | 30 | |
31 | - if ( ! $directory) { |
|
31 | + if (!$directory) { |
|
32 | 32 | $this->error('Proxy directory must be set.'); |
33 | 33 | exit; |
34 | 34 | } |
@@ -64,7 +64,7 @@ |
||
64 | 64 | */ |
65 | 65 | function joinKeyColumnName($entityName, $referencedColumnName = null) |
66 | 66 | { |
67 | - return $this->normalizeClassName($entityName) . '_' . ( $referencedColumnName ?: $this->referenceColumnName() ); |
|
67 | + return $this->normalizeClassName($entityName) . '_' . ($referencedColumnName ?: $this->referenceColumnName()); |
|
68 | 68 | } |
69 | 69 | |
70 | 70 |
@@ -12,7 +12,7 @@ |
||
12 | 12 | */ |
13 | 13 | public function addFilterConstraint(ClassMetadata $targetEntity, $targetTableAlias) |
14 | 14 | { |
15 | - if ( ! $this->isSoftDeletable($targetEntity->rootEntityName)) { |
|
15 | + if (!$this->isSoftDeletable($targetEntity->rootEntityName)) { |
|
16 | 16 | return ''; |
17 | 17 | } |
18 | 18 |
@@ -13,7 +13,7 @@ |
||
13 | 13 | $array = [ |
14 | 14 | 'driver' => 'pdo_sqlite', |
15 | 15 | 'user' => array_get($config, 'username'), |
16 | - 'password' => array_get($config ,'password'), |
|
16 | + 'password' => array_get($config, 'password'), |
|
17 | 17 | 'prefix' => array_get($config, 'prefix'), |
18 | 18 | ]; |
19 | 19 |