Completed
Pull Request — development (#812)
by
unknown
04:52
created
htdocs_symfony/src/Controller/Backend/CachesController.php 2 patches
Unused Use Statements   -5 removed lines patch added patch discarded remove patch
@@ -10,14 +10,9 @@
 block discarded – undo
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
 {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -219,7 +219,7 @@
 block discarded – undo
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"] != "") {
Please login to merge, or discard this patch.
htdocs_symfony/src/Form/CachesFormType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,6 +27,6 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
htdocs_symfony/src/Repository/CachesRepository.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -134,11 +134,11 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.