@@ -152,11 +152,11 @@ public function createFunctions(): array
152152 }
153153 public function getConstruct (string $ setterSqlStub , string $ constructStub )
154154 {
155- return str_replace ("{{ Setters }} " , $ this ->writeSqlAttribute ($ setterSqlStub , $ this ->sqlRepositoryVariable , $ this ->sqlRepositoryName ,$ this ->redisRepositoryVariable ,$ this ->redisRepositoryName ), $ constructStub );
155+ return str_replace ("{{ Setters }} " , trim ( $ this ->writeSqlAttribute ($ setterSqlStub , $ this ->sqlRepositoryVariable , $ this ->sqlRepositoryName ,$ this ->redisRepositoryVariable ,$ this ->redisRepositoryName ) ), $ constructStub );
156156 }
157157 public function getConstructRedis (string $ setterSqlStub , string $ constructStub )
158158 {
159- return str_replace ("{{ Setters }} " , $ this ->writeRedisAttribute ($ setterSqlStub ,$ this ->redisRepositoryVariable ,$ this ->redisRepositoryName ), $ constructStub );
159+ return str_replace ("{{ Setters }} " , trim ( $ this ->writeRedisAttribute ($ setterSqlStub ,$ this ->redisRepositoryVariable ,$ this ->redisRepositoryName ) ), $ constructStub );
160160 }
161161 private function getRedisCashFunctionGetOneBy ($ strategyName )
162162 {
@@ -165,7 +165,7 @@ private function getRedisCashFunctionGetOneBy($strategyName)
165165 'QueryCacheStrategy ' => file_get_contents ($ repositoryRedisStubsPath . 'query_cache_strategy.stub ' ),
166166 'SingleKeyCacheStrategy ' => file_get_contents ($ repositoryRedisStubsPath . 'single_key_cache_strategy.stub ' ),
167167 'ClearableTemporaryCacheStrategy ' => file_get_contents ($ repositoryRedisStubsPath . 'clearable_temporary_cache_strategy.stub ' ),
168- 'TemporaryCacheStrategy ' => file_get_contents ($ repositoryRedisStubsPath . 'base. temporary_cache_strategy.stub ' ),
168+ 'TemporaryCacheStrategy ' => file_get_contents ($ repositoryRedisStubsPath . 'temporary_cache_strategy.stub ' ),
169169 };
170170 }
171171 private function getRedisCashFunctionGetAllBy ($ strategyName )
@@ -175,7 +175,7 @@ private function getRedisCashFunctionGetAllBy($strategyName)
175175 'QueryCacheStrategy ' => file_get_contents ($ repositoryRedisStubsPath . 'query_cache_strategy.stub ' ),
176176 'SingleKeyCacheStrategy ' => file_get_contents ($ repositoryRedisStubsPath . 'single_key_cache_strategy.stub ' ),
177177 'ClearableTemporaryCacheStrategy ' => file_get_contents ($ repositoryRedisStubsPath . 'clearable_temporary_cache_strategy.stub ' ),
178- 'TemporaryCacheStrategy ' => file_get_contents ($ repositoryRedisStubsPath . 'base. temporary_cache_strategy.stub ' ),
178+ 'TemporaryCacheStrategy ' => file_get_contents ($ repositoryRedisStubsPath . 'temporary_cache_strategy.stub ' ),
179179 };
180180 }
181181 private function getRedisCashFunctionCreate ($ strategyName )
@@ -185,7 +185,7 @@ private function getRedisCashFunctionCreate($strategyName)
185185 'QueryCacheStrategy ' => file_get_contents ($ repositoryRedisStubsPath . 'query_cache_strategy.stub ' ),
186186 'SingleKeyCacheStrategy ' => file_get_contents ($ repositoryRedisStubsPath . 'single_key_cache_strategy.stub ' ),
187187 'ClearableTemporaryCacheStrategy ' => file_get_contents ($ repositoryRedisStubsPath . 'clearable_temporary_cache_strategy.stub ' ),
188- 'TemporaryCacheStrategy ' => file_get_contents ($ repositoryRedisStubsPath . 'base. temporary_cache_strategy.stub ' ),
188+ 'TemporaryCacheStrategy ' => file_get_contents ($ repositoryRedisStubsPath . 'temporary_cache_strategy.stub ' ),
189189 };
190190 }
191191 private function getRedisCashFunctionUpdate ($ strategyName )
@@ -195,7 +195,7 @@ private function getRedisCashFunctionUpdate($strategyName)
195195 'QueryCacheStrategy ' => file_get_contents ($ repositoryRedisStubsPath . 'query_cache_strategy.stub ' ),
196196 'SingleKeyCacheStrategy ' => file_get_contents ($ repositoryRedisStubsPath . 'single_key_cache_strategy.stub ' ),
197197 'ClearableTemporaryCacheStrategy ' => file_get_contents ($ repositoryRedisStubsPath . 'clearable_temporary_cache_strategy.stub ' ),
198- 'TemporaryCacheStrategy ' => file_get_contents ($ repositoryRedisStubsPath . 'base. temporary_cache_strategy.stub ' ),
198+ 'TemporaryCacheStrategy ' => file_get_contents ($ repositoryRedisStubsPath . 'temporary_cache_strategy.stub ' ),
199199 };
200200 }
201201}
0 commit comments