@@ -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 | { |
@@ -48,9 +48,9 @@ |
||
48 | 48 | } else { |
49 | 49 | return $this->render( |
50 | 50 | 'backend/caches/basicsearch.html.twig', [ |
51 | - 'cachesForm' => $form->createView(), |
|
52 | - 'caches_by_searchfield' => $fetchedCaches |
|
53 | - ] |
|
51 | + 'cachesForm' => $form->createView(), |
|
52 | + 'caches_by_searchfield' => $fetchedCaches |
|
53 | + ] |
|
54 | 54 | ); |
55 | 55 | } |
56 | 56 | } |
@@ -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"] != "") { |
@@ -74,6 +74,9 @@ discard block |
||
74 | 74 | return $this->cache_id; |
75 | 75 | } |
76 | 76 | |
77 | + /** |
|
78 | + * @param integer $arg |
|
79 | + */ |
|
77 | 80 | public function setCacheId($arg) |
78 | 81 | { |
79 | 82 | $this->cache_id = $arg; |
@@ -85,6 +88,9 @@ discard block |
||
85 | 88 | return $this->name; |
86 | 89 | } |
87 | 90 | |
91 | + /** |
|
92 | + * @param string $arg |
|
93 | + */ |
|
88 | 94 | public function setName($arg) |
89 | 95 | { |
90 | 96 | $this->name = $arg; |
@@ -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 |