@@ -25,13 +25,13 @@ |
||
| 25 | 25 | $classLoader = new \Doctrine\Common\ClassLoader('Symfony'); |
| 26 | 26 | $classLoader->register(); |
| 27 | 27 | |
| 28 | -$configFile = getcwd() . DIRECTORY_SEPARATOR . 'cli-config.php'; |
|
| 28 | +$configFile = getcwd().DIRECTORY_SEPARATOR.'cli-config.php'; |
|
| 29 | 29 | |
| 30 | 30 | $helperSet = null; |
| 31 | 31 | if (file_exists($configFile)) { |
| 32 | 32 | if ( ! is_readable($configFile)) { |
| 33 | 33 | trigger_error( |
| 34 | - 'Configuration file [' . $configFile . '] does not have read permission.', E_USER_ERROR |
|
| 34 | + 'Configuration file ['.$configFile.'] does not have read permission.', E_USER_ERROR |
|
| 35 | 35 | ); |
| 36 | 36 | } |
| 37 | 37 | |
@@ -21,8 +21,8 @@ discard block |
||
| 21 | 21 | use Doctrine\ORM\Tools\Console\ConsoleRunner; |
| 22 | 22 | |
| 23 | 23 | $autoloadFiles = [ |
| 24 | - __DIR__ . '/../vendor/autoload.php', |
|
| 25 | - __DIR__ . '/../../../autoload.php' |
|
| 24 | + __DIR__.'/../vendor/autoload.php', |
|
| 25 | + __DIR__.'/../../../autoload.php' |
|
| 26 | 26 | ]; |
| 27 | 27 | |
| 28 | 28 | foreach ($autoloadFiles as $autoloadFile) { |
@@ -32,11 +32,11 @@ discard block |
||
| 32 | 32 | } |
| 33 | 33 | } |
| 34 | 34 | |
| 35 | -$directories = [getcwd(), getcwd() . DIRECTORY_SEPARATOR . 'config']; |
|
| 35 | +$directories = [getcwd(), getcwd().DIRECTORY_SEPARATOR.'config']; |
|
| 36 | 36 | |
| 37 | 37 | $configFile = null; |
| 38 | 38 | foreach ($directories as $directory) { |
| 39 | - $configFile = $directory . DIRECTORY_SEPARATOR . 'cli-config.php'; |
|
| 39 | + $configFile = $directory.DIRECTORY_SEPARATOR.'cli-config.php'; |
|
| 40 | 40 | |
| 41 | 41 | if (file_exists($configFile)) { |
| 42 | 42 | break; |
@@ -49,7 +49,7 @@ discard block |
||
| 49 | 49 | } |
| 50 | 50 | |
| 51 | 51 | if ( ! is_readable($configFile)) { |
| 52 | - echo 'Configuration file [' . $configFile . '] does not have read permission.' . "\n"; |
|
| 52 | + echo 'Configuration file ['.$configFile.'] does not have read permission.'."\n"; |
|
| 53 | 53 | exit(1); |
| 54 | 54 | } |
| 55 | 55 | |
@@ -95,7 +95,7 @@ |
||
| 95 | 95 | public function quote($input, $type = null) |
| 96 | 96 | { |
| 97 | 97 | if (is_string($input)) { |
| 98 | - return "'" . $input . "'"; |
|
| 98 | + return "'".$input."'"; |
|
| 99 | 99 | } |
| 100 | 100 | return $input; |
| 101 | 101 | } |
@@ -27,7 +27,7 @@ |
||
| 27 | 27 | |
| 28 | 28 | $updateSql = $this->schemaTool->getUpdateSchemaSql([$class]); |
| 29 | 29 | |
| 30 | - $updateSql = array_filter($updateSql, function ($sql) { |
|
| 30 | + $updateSql = array_filter($updateSql, function($sql) { |
|
| 31 | 31 | return strpos($sql, 'DBAL483') !== false; |
| 32 | 32 | }); |
| 33 | 33 | |
@@ -162,7 +162,7 @@ discard block |
||
| 162 | 162 | |
| 163 | 163 | $this->addresses = $addresses; |
| 164 | 164 | |
| 165 | - $addresses->map(function ($address) use ($self) { |
|
| 165 | + $addresses->map(function($address) use ($self) { |
|
| 166 | 166 | $address->user = $self; |
| 167 | 167 | }); |
| 168 | 168 | } |
@@ -173,7 +173,7 @@ discard block |
||
| 173 | 173 | |
| 174 | 174 | $this->pets = $pets; |
| 175 | 175 | |
| 176 | - $pets->map(function ($pet) use ($self) { |
|
| 176 | + $pets->map(function($pet) use ($self) { |
|
| 177 | 177 | $pet->owner = $self; |
| 178 | 178 | }); |
| 179 | 179 | } |
@@ -32,8 +32,8 @@ |
||
| 32 | 32 | ->getMock(); |
| 33 | 33 | |
| 34 | 34 | $configuration = $this->getMockBuilder(Configuration::class) |
| 35 | - ->setMethods(['getMetadataDriverImpl']) |
|
| 36 | - ->getMock(); |
|
| 35 | + ->setMethods(['getMetadataDriverImpl']) |
|
| 36 | + ->getMock(); |
|
| 37 | 37 | |
| 38 | 38 | $connection = $this->createMock(Connection::class); |
| 39 | 39 | |
@@ -29,8 +29,8 @@ |
||
| 29 | 29 | $uow->scheduleExtraUpdate($user, ['name' => 'changed name']); |
| 30 | 30 | |
| 31 | 31 | $listener = $this->getMockBuilder(\stdClass::class) |
| 32 | - ->setMethods([Events::postFlush]) |
|
| 33 | - ->getMock(); |
|
| 32 | + ->setMethods([Events::postFlush]) |
|
| 33 | + ->getMock(); |
|
| 34 | 34 | |
| 35 | 35 | $listener |
| 36 | 36 | ->expects($this->once()) |
@@ -35,7 +35,7 @@ |
||
| 35 | 35 | $listener |
| 36 | 36 | ->expects($this->once()) |
| 37 | 37 | ->method(Events::postFlush) |
| 38 | - ->will($this->returnCallback(function () use ($uow, $test) { |
|
| 38 | + ->will($this->returnCallback(function() use ($uow, $test) { |
|
| 39 | 39 | $test->assertAttributeEmpty('extraUpdates', $uow, 'ExtraUpdates are reset before postFlush'); |
| 40 | 40 | })); |
| 41 | 41 | |
@@ -89,7 +89,7 @@ discard block |
||
| 89 | 89 | $metadata, |
| 90 | 90 | Events::postLoad, |
| 91 | 91 | $entity, |
| 92 | - $this->callback(function (LifecycleEventArgs $args) use ($entityManager, $entity) { |
|
| 92 | + $this->callback(function(LifecycleEventArgs $args) use ($entityManager, $entity) { |
|
| 93 | 93 | return $entity === $args->getEntity() && $entityManager === $args->getObjectManager(); |
| 94 | 94 | }), |
| 95 | 95 | $listenersFlag |
@@ -157,7 +157,7 @@ discard block |
||
| 157 | 157 | $this->logicalOr($metadata1, $metadata2), |
| 158 | 158 | Events::postLoad, |
| 159 | 159 | $this->logicalOr($entity1, $entity2), |
| 160 | - $this->callback(function (LifecycleEventArgs $args) use ($entityManager, $entity1, $entity2) { |
|
| 160 | + $this->callback(function(LifecycleEventArgs $args) use ($entityManager, $entity1, $entity2) { |
|
| 161 | 161 | return in_array($args->getEntity(), [$entity1, $entity2], true) |
| 162 | 162 | && $entityManager === $args->getObjectManager(); |
| 163 | 163 | }), |
@@ -86,6 +86,6 @@ |
||
| 86 | 86 | public function addFilterConstraint(ClassMetadata $targetEntity, $targetTableAlias) |
| 87 | 87 | { |
| 88 | 88 | // getParameter applies quoting automatically |
| 89 | - return $targetTableAlias . '.id = ' . $this->getParameter('id'); |
|
| 89 | + return $targetTableAlias.'.id = '.$this->getParameter('id'); |
|
| 90 | 90 | } |
| 91 | 91 | } |