Skip to content

Commit 4b7075c

Browse files
committed
Apply cs
1 parent 5c91c6f commit 4b7075c

File tree

26 files changed

+65
-65
lines changed

26 files changed

+65
-65
lines changed

example/em.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -89,11 +89,11 @@
8989
$eventManager->addEventSubscriber($treeListener);
9090

9191
// Loggable extension, not used in example
92-
//$loggableListener = new Gedmo\Loggable\LoggableListener;
93-
//$loggableListener->setAnnotationReader($annotationReader);
94-
//$loggableListener->setCacheItemPool($cache);
95-
//$loggableListener->setUsername('admin');
96-
//$eventManager->addEventSubscriber($loggableListener);
92+
// $loggableListener = new Gedmo\Loggable\LoggableListener;
93+
// $loggableListener->setAnnotationReader($annotationReader);
94+
// $loggableListener->setCacheItemPool($cache);
95+
// $loggableListener->setUsername('admin');
96+
// $eventManager->addEventSubscriber($loggableListener);
9797

9898
// Timestampable extension
9999
$timestampableListener = new Gedmo\Timestampable\TimestampableListener();
@@ -120,10 +120,10 @@
120120
$eventManager->addEventSubscriber($translatableListener);
121121

122122
// Sortable extension, not used in example
123-
//$sortableListener = new Gedmo\Sortable\SortableListener;
124-
//$sortableListener->setAnnotationReader($annotationReader);
125-
//$sortableListener->setCacheItemPool($cache);
126-
//$eventManager->addEventSubscriber($sortableListener);
123+
// $sortableListener = new Gedmo\Sortable\SortableListener;
124+
// $sortableListener->setAnnotationReader($annotationReader);
125+
// $sortableListener->setCacheItemPool($cache);
126+
// $eventManager->addEventSubscriber($sortableListener);
127127

128128
// Now we will build our ORM configuration.
129129
$config = new Doctrine\ORM\Configuration();

src/Mapping/Driver/Chain.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,14 +92,14 @@ public function readExtendedMetadata($meta, array &$config)
9292
}
9393

9494
// commenting it for customized mapping support, debugging of such cases might get harder
95-
//throw new \Gedmo\Exception\UnexpectedValueException('Class ' . $meta->getName() . ' is not a valid entity or mapped super class.');
95+
// throw new \Gedmo\Exception\UnexpectedValueException('Class ' . $meta->getName() . ' is not a valid entity or mapped super class.');
9696
}
9797

9898
/**
9999
* Passes in the mapping read by original driver
100100
*/
101101
public function setOriginalDriver($driver)
102102
{
103-
//not needed here
103+
// not needed here
104104
}
105105
}

src/Mapping/Driver/File.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,15 +116,15 @@ abstract protected function _loadMappingFile($file);
116116
*/
117117
protected function _getMapping($className)
118118
{
119-
//try loading mapping from original driver first
119+
// try loading mapping from original driver first
120120
$mapping = null;
121121
if (null !== $this->_originalDriver) {
122122
if ($this->_originalDriver instanceof FileDriver) {
123123
$mapping = $this->_originalDriver->getElement($className);
124124
}
125125
}
126126

127-
//if no mapping found try to load mapping file again
127+
// if no mapping found try to load mapping file again
128128
if (null === $mapping) {
129129
$yaml = $this->_loadMappingFile($this->locator->findMappingFile($className));
130130
$mapping = $yaml[$className];

src/Sluggable/Handler/TreeSlugHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ public function postSlugBuild(SluggableAdapter $ea, array &$config, $object, &$s
106106
if (isset($options['suffix'])) {
107107
$suffix = $options['suffix'];
108108

109-
if (substr($this->parentSlug, -strlen($suffix)) === $suffix) { //endsWith
109+
if (substr($this->parentSlug, -strlen($suffix)) === $suffix) { // endsWith
110110
$this->parentSlug = substr_replace($this->parentSlug, '', -1 * strlen($suffix));
111111
}
112112
}

src/SoftDeleteable/SoftDeleteableListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public function onFlush(EventArgs $args)
6161
$uow = $om->getUnitOfWork();
6262
$evm = $om->getEventManager();
6363

64-
//getScheduledDocumentDeletions
64+
// getScheduledDocumentDeletions
6565
foreach ($ea->getScheduledObjectDeletions($uow) as $object) {
6666
$meta = $om->getClassMetadata(get_class($object));
6767
$config = $this->getConfiguration($om, $meta->getName());

src/Tree/Strategy/ORM/Closure.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,7 @@ protected function setLevelFieldOnPendingNodes(ObjectManager $em)
481481

482482
$levelsAssoc = $em->getConnection()->executeQuery($sql, [array_keys($this->pendingNodesLevelProcess)], [$type])->fetchAllNumeric();
483483

484-
//create key pair array with resultset
484+
// create key pair array with resultset
485485
$levels = [];
486486
foreach ($levelsAssoc as $level) {
487487
$levels[$level[0]] = $level[1];

tests/Gedmo/Blameable/ChangeTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public function testChange(): void
5757
$this->em->persist($test);
5858
$this->em->flush();
5959
$this->em->clear();
60-
//Changed
60+
// Changed
6161
static::assertSame('testuser', $test->getChtitle());
6262

6363
$this->listener->setUserValue('otheruser');
@@ -67,7 +67,7 @@ public function testChange(): void
6767
$this->em->persist($test);
6868
$this->em->flush();
6969
$this->em->clear();
70-
//Not Changed
70+
// Not Changed
7171
static::assertSame('testuser', $test->getChtitle());
7272
}
7373

tests/Gedmo/IpTraceable/ChangeTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public function testChange(): void
5959
$this->em->persist($test);
6060
$this->em->flush();
6161
$this->em->clear();
62-
//Changed
62+
// Changed
6363
static::assertSame(self::TEST_IP, $test->getChtitle());
6464

6565
$this->listener->setIpValue('127.0.0.1');
@@ -69,7 +69,7 @@ public function testChange(): void
6969
$this->em->persist($test);
7070
$this->em->flush();
7171
$this->em->clear();
72-
//Not Changed
72+
// Not Changed
7373
static::assertSame(self::TEST_IP, $test->getChtitle());
7474
}
7575

tests/Gedmo/Mapping/MappingTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ protected function setUp(): void
3232
$config = new \Doctrine\ORM\Configuration();
3333
$config->setProxyDir(TESTS_TEMP_DIR);
3434
$config->setProxyNamespace('Gedmo\Mapping\Proxy');
35-
//$this->markTestSkipped('Skipping according to a bug in annotation reader creation.');
35+
// $this->markTestSkipped('Skipping according to a bug in annotation reader creation.');
3636
$config->setMetadataDriverImpl(new \Doctrine\ORM\Mapping\Driver\AnnotationDriver($_ENV['annotation_reader']));
3737

3838
$conn = [

tests/Gedmo/Mapping/Mock/Extension/Encoder/Mapping/Driver/Annotation.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public function readExtendedMetadata($meta, array &$config)
2626
{
2727
$reader = new AnnotationReader();
2828
// set annotation namespace and alias
29-
//$reader->setAnnotationNamespaceAlias('Gedmo\Tests\Mapping\Mock\Extension\Encoder\Mapping\\', 'ext');
29+
// $reader->setAnnotationNamespaceAlias('Gedmo\Tests\Mapping\Mock\Extension\Encoder\Mapping\\', 'ext');
3030

3131
$class = $meta->getReflectionClass();
3232
// check only property annotations

0 commit comments

Comments
 (0)