Completed
Pull Request — development (#695)
by Nick
16:16
created
htdocs/src/Oc/FieldNotes/Persistence/FieldNoteRepository.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
             ->from(self::TABLE);
84 84
 
85 85
         foreach ($where as $column => $value) {
86
-            $queryBuilder->andWhere($column . ' = ' .  $queryBuilder->createNamedParameter($value));
86
+            $queryBuilder->andWhere($column . ' = ' . $queryBuilder->createNamedParameter($value));
87 87
         }
88 88
 
89 89
         foreach ($order as $field => $direction) {
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
 
126 126
         if (count($where) > 0) {
127 127
             foreach ($where as $column => $value) {
128
-                $queryBuilder->andWhere($column . ' = ' .  $queryBuilder->createNamedParameter($value));
128
+                $queryBuilder->andWhere($column . ' = ' . $queryBuilder->createNamedParameter($value));
129 129
             }
130 130
         }
131 131
 
@@ -192,7 +192,7 @@  discard block
 block discarded – undo
192 192
             $databaseArray
193 193
         );
194 194
 
195
-        $entity->id = (int) $this->connection->lastInsertId();
195
+        $entity->id = (int)$this->connection->lastInsertId();
196 196
 
197 197
         return $entity;
198 198
     }
@@ -220,7 +220,7 @@  discard block
 block discarded – undo
220 220
             ['id' => $entity->id]
221 221
         );
222 222
 
223
-        $entity->id = (int) $this->connection->lastInsertId();
223
+        $entity->id = (int)$this->connection->lastInsertId();
224 224
 
225 225
         return $entity;
226 226
     }
Please login to merge, or discard this patch.
htdocs/okapi/meta.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1 1
 <?php return array (
2
-  'version_number' => 1684,
3
-  'git_revision' => '8b1f529bf3f46aaad59ca83f0f95b37c20e71fa0',
2
+    'version_number' => 1684,
3
+    'git_revision' => '8b1f529bf3f46aaad59ca83f0f95b37c20e71fa0',
4 4
 );
5 5
\ No newline at end of file
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php return array (
1
+<?php return array(
2 2
   'version_number' => 1684,
3 3
   'git_revision' => '8b1f529bf3f46aaad59ca83f0f95b37c20e71fa0',
4 4
 );
5 5
\ No newline at end of file
Please login to merge, or discard this patch.
htdocs/src/Oc/Command/CreateWebCacheCommand.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,6 @@
 block discarded – undo
8 8
 use Leafo\ScssPhp\Compiler;
9 9
 use RecursiveDirectoryIterator;
10 10
 use RecursiveIteratorIterator;
11
-use RegexIterator;
12 11
 use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand;
13 12
 use Symfony\Component\Console\Exception\InvalidArgumentException;
14 13
 use Symfony\Component\Console\Input\InputInterface;
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
          */
102 102
         foreach ($rii as $file) {
103 103
 
104
-            if ($file->isDir() || $file->getExtension() !== 'js'){
104
+            if ($file->isDir() || $file->getExtension() !== 'js') {
105 105
                 continue;
106 106
             }
107 107
 
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
         $scss = new Compiler();
130 130
         $scss->setIgnoreErrors(true);
131 131
         $scss->addImportPath($applicationScssPath);
132
-        $scss->addImportPath(function ($path) use ($projectDir) {
132
+        $scss->addImportPath(function($path) use ($projectDir) {
133 133
             //Check for tilde as this refers to the node_modules dir
134 134
             if (strpos($path, '~') === 0) {
135 135
                 $path = str_replace(
Please login to merge, or discard this patch.
htdocs/src/Oc/Menu/Renderer/MainRenderer.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
     {
53 53
         $options = array_merge($this->defaultOptions, $options);
54 54
 
55
-        $childrenClass = (array) $item->getChildrenAttribute('class');
55
+        $childrenClass = (array)$item->getChildrenAttribute('class');
56 56
 
57 57
         if ($options['listClass']) {
58 58
             $childrenClass[] = $options['listClass'];
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
             return '';
87 87
         }
88 88
 
89
-        $html = $this->format('<ul'.$this->renderHtmlAttributes($attributes).'>', 'ul', $item->getLevel(), $options);
89
+        $html = $this->format('<ul' . $this->renderHtmlAttributes($attributes) . '>', 'ul', $item->getLevel(), $options);
90 90
         $html .= $this->renderChildren($item, $options);
91 91
         $html .= $this->format('</ul>', 'ul', $item->getLevel(), $options);
92 92
 
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
         }
145 145
 
146 146
         // create an array than can be imploded as a class list
147
-        $class = (array) $item->getAttribute('class');
147
+        $class = (array)$item->getAttribute('class');
148 148
 
149 149
         if ($options['itemClass']) {
150 150
             $class[] = $options['itemClass'];
@@ -178,14 +178,14 @@  discard block
 block discarded – undo
178 178
         }
179 179
 
180 180
         // opening li tag
181
-        $html = $this->format('<li'.$this->renderHtmlAttributes($attributes).'>', 'li', $item->getLevel(), $options);
181
+        $html = $this->format('<li' . $this->renderHtmlAttributes($attributes) . '>', 'li', $item->getLevel(), $options);
182 182
 
183 183
         // render the text/link inside the li tag
184 184
         //$html .= $this->format($item->getUri() ? $item->renderLink() : $item->renderLabel(), 'link', $item->getLevel());
185 185
         $html .= $this->renderLink($item, $options);
186 186
 
187 187
         // renders the embedded ul
188
-        $childrenClass = (array) $item->getChildrenAttribute('class');
188
+        $childrenClass = (array)$item->getChildrenAttribute('class');
189 189
         if ($options['listClass']) {
190 190
             $childrenClass[] = $options['listClass'];
191 191
         }
@@ -231,7 +231,7 @@  discard block
 block discarded – undo
231 231
 
232 232
     protected function renderLinkElement(ItemInterface $item, array $options)
233 233
     {
234
-        $childrenClass = (array) $item->getChildrenAttribute('class');
234
+        $childrenClass = (array)$item->getChildrenAttribute('class');
235 235
 
236 236
         if ($options['linkClass']) {
237 237
             $childrenClass[] = $options['linkClass'];
@@ -245,7 +245,7 @@  discard block
 block discarded – undo
245 245
 
246 246
     protected function renderSpanElement(ItemInterface $item, array $options)
247 247
     {
248
-        $childrenClass = (array) $item->getChildrenAttribute('class');
248
+        $childrenClass = (array)$item->getChildrenAttribute('class');
249 249
 
250 250
         if ($options['textClass']) {
251 251
             $childrenClass[] = $options['textClass'];
@@ -295,6 +295,6 @@  discard block
 block discarded – undo
295 295
                 break;
296 296
         }
297 297
 
298
-        return str_repeat(' ', $spacing).$html."\n";
298
+        return str_repeat(' ', $spacing) . $html . "\n";
299 299
     }
300 300
 }
Please login to merge, or discard this patch.