| 1 |  |  | <?php | 
            
                                                                                                            
                            
            
                                    
            
            
                | 2 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 3 |  |  | /** | 
            
                                                                                                            
                            
            
                                    
            
            
                | 4 |  |  |  * MIT License | 
            
                                                                                                            
                            
            
                                    
            
            
                | 5 |  |  |  * For full license information, please view the LICENSE file that was distributed with this source code. | 
            
                                                                                                            
                            
            
                                    
            
            
                | 6 |  |  |  */ | 
            
                                                                                                            
                            
            
                                    
            
            
                | 7 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 8 |  |  | namespace SprykerEco\Zed\CrefoPayApi\Persistence; | 
            
                                                                                                            
                            
            
                                    
            
            
                | 9 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 10 |  |  | use Generated\Shared\Transfer\PaymentCrefoPayApiLogTransfer; | 
                            
                    |  |  |  | 
                                                                                        
                                                                                     | 
            
                                                                                                            
                            
            
                                    
            
            
                | 11 |  |  | use Spryker\Zed\Kernel\Persistence\AbstractEntityManager; | 
            
                                                                                                            
                            
            
                                    
            
            
                | 12 |  |  | use SprykerEco\Zed\CrefoPayApi\Persistence\Mapper\CrefoPayApiPersistenceMapper; | 
            
                                                                                                            
                            
            
                                    
            
            
                | 13 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 14 |  |  | /** | 
            
                                                                                                            
                            
            
                                    
            
            
                | 15 |  |  |  * @method \SprykerEco\Zed\CrefoPayApi\Persistence\CrefoPayApiPersistenceFactory getFactory() | 
            
                                                                                                            
                            
            
                                    
            
            
                | 16 |  |  |  */ | 
            
                                                                                                            
                            
            
                                    
            
            
                | 17 |  |  | class CrefoPayApiEntityManager extends AbstractEntityManager implements CrefoPayApiEntityManagerInterface | 
            
                                                                                                            
                            
            
                                    
            
            
                | 18 |  |  | { | 
            
                                                                                                            
                            
            
                                    
            
            
                | 19 |  |  |     /** | 
            
                                                                                                            
                            
            
                                    
            
            
                | 20 |  |  |      * @param \Generated\Shared\Transfer\PaymentCrefoPayApiLogTransfer $paymentCrefoPayApiLogTransfer | 
            
                                                                                                            
                            
            
                                    
            
            
                | 21 |  |  |      * | 
            
                                                                                                            
                            
            
                                    
            
            
                | 22 |  |  |      * @return \Generated\Shared\Transfer\PaymentCrefoPayApiLogTransfer | 
            
                                                                                                            
                            
            
                                    
            
            
                | 23 |  |  |      */ | 
            
                                                                                                            
                            
            
                                    
            
            
                | 24 |  |  |     public function savePaymentCrefoPayApiLog( | 
            
                                                                                                            
                            
            
                                    
            
            
                | 25 |  |  |         PaymentCrefoPayApiLogTransfer $paymentCrefoPayApiLogTransfer | 
            
                                                                                                            
                            
            
                                    
            
            
                | 26 |  |  |     ): PaymentCrefoPayApiLogTransfer { | 
            
                                                                                                            
                            
            
                                    
            
            
                | 27 |  |  |         $paymentCrefoPayApiLogEntity = $this->getFactory() | 
            
                                                                                                            
                            
            
                                    
            
            
                | 28 |  |  |             ->createPaymentCrefoPayApiLogQuery() | 
            
                                                                                                            
                            
            
                                    
            
            
                | 29 |  |  |             ->filterByRequestType($paymentCrefoPayApiLogTransfer->getRequestType()) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 30 |  |  |             ->filterByCrefoPayOrderId($paymentCrefoPayApiLogTransfer->getCrefoPayOrderId()) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 31 |  |  |             ->filterBySalt($paymentCrefoPayApiLogTransfer->getSalt()) | 
            
                                                                                                            
                            
            
                                    
            
            
                | 32 |  |  |             ->findOneOrCreate(); | 
            
                                                                                                            
                            
            
                                    
            
            
                | 33 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 34 |  |  |         $paymentCrefoPayApiLogEntity->fromArray( | 
            
                                                                                                            
                            
            
                                    
            
            
                | 35 |  |  |             $paymentCrefoPayApiLogTransfer->modifiedToArray() | 
            
                                                                                                            
                            
            
                                    
            
            
                | 36 |  |  |         ); | 
            
                                                                                                            
                            
            
                                    
            
            
                | 37 |  |  |         $paymentCrefoPayApiLogEntity->save(); | 
            
                                                                                                            
                            
            
                                    
            
            
                | 38 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 39 |  |  |         return $this->getMapper() | 
            
                                                                                                            
                            
            
                                    
            
            
                | 40 |  |  |             ->mapEntityToPaymentCrefoPayApiLogTransfer( | 
            
                                                                                                            
                            
            
                                    
            
            
                | 41 |  |  |                 $paymentCrefoPayApiLogEntity, | 
            
                                                                                                            
                            
            
                                    
            
            
                | 42 |  |  |                 $paymentCrefoPayApiLogTransfer | 
            
                                                                                                            
                            
            
                                    
            
            
                | 43 |  |  |             ); | 
            
                                                                                                            
                            
            
                                    
            
            
                | 44 |  |  |     } | 
            
                                                                                                            
                            
            
                                    
            
            
                | 45 |  |  |  | 
            
                                                                                                            
                            
            
                                    
            
            
                | 46 |  |  |     /** | 
            
                                                                                                            
                            
            
                                    
            
            
                | 47 |  |  |      * @return \SprykerEco\Zed\CrefoPayApi\Persistence\Mapper\CrefoPayApiPersistenceMapper | 
            
                                                                                                            
                                                                
            
                                    
            
            
                | 48 |  |  |      */ | 
            
                                                                        
                            
            
                                    
            
            
                | 49 |  |  |     protected function getMapper(): CrefoPayApiPersistenceMapper | 
            
                                                                        
                            
            
                                    
            
            
                | 50 |  |  |     { | 
            
                                                                        
                            
            
                                    
            
            
                | 51 |  |  |         return $this->getFactory()->createCrefoPayApiPersistenceMapper(); | 
            
                                                                                                            
                            
            
                                    
            
            
                | 52 |  |  |     } | 
            
                                                                                                            
                                                                
            
                                    
            
            
                | 53 |  |  | } | 
            
                                                        
            
                                    
            
            
                | 54 |  |  |  | 
            
                        
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths