Completed
Pull Request — development (#812)
by
unknown
12:05
created
htdocs_symfony/src/Controller/Backend/CachesController.php 3 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.
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -48,9 +48,9 @@
 block discarded – undo
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
     }
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/Entity/CachesEntity.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -74,6 +74,9 @@  discard block
 block discarded – undo
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
 block discarded – undo
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;
Please login to merge, or discard this patch.
htdocs_symfony/src/Repository/CachesRepository.php 2 patches
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -4,9 +4,6 @@
 block discarded – undo
4 4
 
5 5
 use Doctrine\DBAL\Connection;
6 6
 use Oc\Entity\CachesEntity;
7
-use Oc\Repository\Exception\RecordAlreadyExistsException;
8
-use Oc\Repository\Exception\RecordNotFoundException;
9
-use Oc\Repository\Exception\RecordNotPersistedException;
10 7
 use Oc\Repository\Exception\RecordsNotFoundException;
11 8
 
12 9
 class CachesRepository
Please login to merge, or discard this 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
         return $entity;
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.