@@ -10,14 +10,9 @@ |
||
10 | 10 | use Symfony\Component\HttpFoundation\Request; |
11 | 11 | use Symfony\Component\HttpFoundation\Response; |
12 | 12 | use Symfony\Component\Routing\Annotation\Route; |
13 | -use Oc\Repository\Exception\RecordAlreadyExistsException; |
|
14 | -use Oc\Repository\Exception\RecordNotFoundException; |
|
15 | -use Oc\Repository\Exception\RecordNotPersistedException; |
|
16 | -use Oc\Repository\Exception\RecordsNotFoundException; |
|
17 | 13 | use Oc\Repository\CachesRepository; |
18 | 14 | use Oc\Repository\UserRepository; |
19 | 15 | use Oc\Repository\SecurityRolesRepository; |
20 | -use Oc\Entity\CachesEntity; |
|
21 | 16 | |
22 | 17 | class CachesController extends AbstractController |
23 | 18 | { |
@@ -219,7 +219,7 @@ |
||
219 | 219 | $fetchedCaches = $qb->execute()->fetchAll(); |
220 | 220 | |
221 | 221 | $array_size = count($fetchedCaches); |
222 | - for ($i = 0; $i < $array_size; $i ++) { |
|
222 | + for ($i = 0; $i < $array_size; $i++) { |
|
223 | 223 | // replace existing log passwords with something different |
224 | 224 | // nur der Teil mit den Bilderzuweisungen müsste nochmal überdacht werden.. |
225 | 225 | if ($fetchedCaches[$i]["logpw"] != "") { |
@@ -27,6 +27,6 @@ |
||
27 | 27 | 'trim' => true |
28 | 28 | ] |
29 | 29 | ) |
30 | - ->add('Suchen', SubmitType::class, ['attr' => ['class' => 'btn btn-primary']]);; |
|
30 | + ->add('Suchen', SubmitType::class, ['attr' => ['class' => 'btn btn-primary']]); ; |
|
31 | 31 | } |
32 | 32 | } |
@@ -134,11 +134,11 @@ |
||
134 | 134 | { |
135 | 135 | $entity = new CachesEntity(); |
136 | 136 | |
137 | - $entity->setCacheId((int) $data['cache_id']); |
|
138 | - $entity->setOCid((string) $data['wp_oc']); |
|
139 | - $entity->setGCid((string) $data['wp_gc']); |
|
140 | - $entity->setName((string) $data['name']); |
|
141 | - $entity->setUserId((int) $data['user_id']); |
|
137 | + $entity->setCacheId((int)$data['cache_id']); |
|
138 | + $entity->setOCid((string)$data['wp_oc']); |
|
139 | + $entity->setGCid((string)$data['wp_gc']); |
|
140 | + $entity->setName((string)$data['name']); |
|
141 | + $entity->setUserId((int)$data['user_id']); |
|
142 | 142 | |
143 | 143 | // .. |
144 | 144 |