Completed
Branch dev_2x (79898e)
by Adrian
09:26
created
src/DynamicMapper.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
      */
52 52
     public function newSaveAction(EntityInterface $entity, $options)
53 53
     {
54
-        if ( ! $this->getHydrator()->getPk($entity) || $entity->getState() == StateEnum::NEW) {
54
+        if (!$this->getHydrator()->getPk($entity) || $entity->getState() == StateEnum::NEW) {
55 55
             $action = new Insert($this, $entity, $options);
56 56
         } else {
57 57
             $action = new Update($this, $entity, $options);
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
     protected function assertCanPersistEntity($entity)
103 103
     {
104 104
         $entityClass = $this->mapperConfig->getEntityClass();
105
-        if ( ! $entity || ! $entity instanceof $entityClass) {
105
+        if (!$entity || !$entity instanceof $entityClass) {
106 106
             throw new \InvalidArgumentException(sprintf(
107 107
                 'Mapper %s can only persist entity of class %s. %s class provided',
108 108
                 __CLASS__,
Please login to merge, or discard this patch.