Completed
Pull Request — development (#730)
by Kai
09:59 queued 02:50
created
htdocs/src/Oc/Libse/Validator/RealValidator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,6 +37,6 @@
 block discarded – undo
37 37
     {
38 38
         $value = str_replace(',', '.', $value);
39 39
 
40
-        return (float) $value;
40
+        return (float)$value;
41 41
     }
42 42
 }
Please login to merge, or discard this patch.
htdocs/src/Oc/Command/CreateWebCacheCommand.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -126,7 +126,7 @@
 block discarded – undo
126 126
         $scss = new Compiler();
127 127
         $scss->setIgnoreErrors(true);
128 128
         $scss->addImportPath($applicationScssPath);
129
-        $scss->addImportPath(function ($path) use ($projectDir) {
129
+        $scss->addImportPath(function($path) use ($projectDir) {
130 130
             //Check for tilde as this refers to the node_modules dir
131 131
             if (strpos($path, '~') === 0) {
132 132
                 $path = str_replace(
Please login to merge, or discard this patch.
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -7,15 +7,12 @@
 block discarded – undo
7 7
 
8 8
 use Exception;
9 9
 use Leafo\ScssPhp\Compiler;
10
-use RecursiveDirectoryIterator;
11
-use RecursiveIteratorIterator;
12 10
 use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand;
13 11
 use Symfony\Component\Console\Exception\InvalidArgumentException;
14 12
 use Symfony\Component\Console\Input\InputInterface;
15 13
 use Symfony\Component\Console\Output\OutputInterface;
16 14
 use Symfony\Component\Filesystem\Filesystem;
17 15
 use Symfony\Component\Finder\Finder;
18
-use Symfony\Component\Finder\SplFileInfo;
19 16
 
20 17
 /**
21 18
  * Class CreateWebCacheCommand
Please login to merge, or discard this patch.
htdocs/src/Oc/Command/CodeCoverageCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -56,8 +56,8 @@
 block discarded – undo
56 56
         $checkedElements = 0;
57 57
 
58 58
         foreach ($metrics as $metric) {
59
-            $totalElements += (int) $metric['elements'];
60
-            $checkedElements += (int) $metric['coveredelements'];
59
+            $totalElements += (int)$metric['elements'];
60
+            $checkedElements += (int)$metric['coveredelements'];
61 61
         }
62 62
 
63 63
         $coverage = ($checkedElements / $totalElements) * 100;
Please login to merge, or discard this patch.
htdocs/src/Oc/FieldNotes/Import/ImportService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -118,7 +118,7 @@
 block discarded – undo
118 118
          */
119 119
         $expressionAst = (new ExpressionLanguage())->parse($violation->getPropertyPath(), [])->getNodes();
120 120
 
121
-        $line = ((int) $expressionAst->nodes['node']->nodes[1]->attributes['value']) + 1;
121
+        $line = ((int)$expressionAst->nodes['node']->nodes[1]->attributes['value']) + 1;
122 122
 
123 123
         $linePrefix = $this->translator->trans('field_notes.error.line_prefix', [
124 124
             '%line%' => $line,
Please login to merge, or discard this patch.
htdocs/src/Oc/FieldNotes/Persistence/FieldNoteRepository.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -188,7 +188,7 @@  discard block
 block discarded – undo
188 188
             $databaseArray
189 189
         );
190 190
 
191
-        $entity->id = (int) $this->connection->lastInsertId();
191
+        $entity->id = (int)$this->connection->lastInsertId();
192 192
 
193 193
         return $entity;
194 194
     }
@@ -215,7 +215,7 @@  discard block
 block discarded – undo
215 215
             ['id' => $entity->id]
216 216
         );
217 217
 
218
-        $entity->id = (int) $this->connection->lastInsertId();
218
+        $entity->id = (int)$this->connection->lastInsertId();
219 219
 
220 220
         return $entity;
221 221
     }
Please login to merge, or discard this patch.
htdocs/src/Oc/Util/CBench.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
     {
29 29
         list($uSec, $sec) = explode(' ', microtime());
30 30
 
31
-        return ((float) $uSec + (float) $sec);
31
+        return ((float)$uSec + (float)$sec);
32 32
     }
33 33
 
34 34
     /**
Please login to merge, or discard this patch.
htdocs/lib2/imagebmp.inc.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -576,7 +576,7 @@
 block discarded – undo
576 576
 }
577 577
 
578 578
 /**
579
- * @param $d
579
+ * @param integer $d
580 580
  * @param int $n
581 581
  *
582 582
  * @return string
Please login to merge, or discard this patch.
htdocs/lib2/logic/geodb.class.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -113,6 +113,9 @@  discard block
 block discarded – undo
113 113
         return 0;
114 114
     }
115 115
 
116
+    /**
117
+     * @return string
118
+     */
116 119
     public static function landFromLocid($locid)
117 120
     {
118 121
         if (!is_numeric($locid)) {
@@ -140,6 +143,9 @@  discard block
 block discarded – undo
140 143
         return '';
141 144
     }
142 145
 
146
+    /**
147
+     * @return string
148
+     */
143 149
     public static function regierungsbezirkFromLocid($locid)
144 150
     {
145 151
         if (!is_numeric($locid)) {
@@ -166,6 +172,9 @@  discard block
 block discarded – undo
166 172
         return '';
167 173
     }
168 174
 
175
+    /**
176
+     * @return string
177
+     */
169 178
     public static function landkreisFromLocid($locid)
170 179
     {
171 180
         if (!is_numeric($locid)) {
Please login to merge, or discard this patch.
htdocs/util2/cron/modules/geokrety.class.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -291,7 +291,7 @@  discard block
 block discarded – undo
291 291
 
292 292
     /**
293 293
      * @param int $id
294
-     * @param $name
294
+     * @param string $name
295 295
      */
296 296
     public function checkGeoKretType($id, $name)
297 297
     {
@@ -304,7 +304,7 @@  discard block
 block discarded – undo
304 304
 
305 305
     /**
306 306
      * @param int $id
307
-     * @param $name
307
+     * @param string $name
308 308
      */
309 309
     public function checkUser($id, $name)
310 310
     {
@@ -317,7 +317,7 @@  discard block
 block discarded – undo
317 317
 
318 318
     /**
319 319
      * @param int $id
320
-     * @param $name
320
+     * @param string $name
321 321
      */
322 322
     public function checkMoveType($id, $name)
323 323
     {
Please login to merge, or discard this patch.