Completed
Pull Request — master (#82)
by
unknown
02:24
created
src/CRUDlex/EntityDefinition.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -612,7 +612,7 @@
 block discarded – undo
612 612
      * the name of the field
613 613
      * @param string $key
614 614
      * the value of the key
615
-     * @param mixed $value
615
+     * @param string $value
616 616
      * the new value
617 617
      */
618 618
     public function setField($name, $key, $value) {
Please login to merge, or discard this patch.
src/CRUDlex/ControllerProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -220,7 +220,7 @@
 block discarded – undo
220 220
                         return ['id' => $value];
221 221
                     }, $filter[$filterField]);
222 222
                     $filterToUse[$filterField] = $filter[$filterField];
223
-                } else if (in_array($type, ['text', 'multiline', 'fixed'])){
223
+                } else if (in_array($type, ['text', 'multiline', 'fixed'])) {
224 224
                     $filterToUse[$filterField]     = '%'.$filter[$filterField].'%';
225 225
                     $filterOperators[$filterField] = 'LIKE';
226 226
                 }
Please login to merge, or discard this patch.
src/CRUDlex/ServiceProvider.php 3 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -313,14 +313,14 @@
 block discarded – undo
313 313
      * a list of all available entity names with theirs group
314 314
      */
315 315
     public function getEntitiesNavBar() {
316
-      foreach ($this->datas as $entity => $data) {
316
+        foreach ($this->datas as $entity => $data) {
317 317
         $navBarGroup = $data->getDefinition()->getNavBarGroup();
318 318
         if ($navBarGroup !== 'main'){
319
-          $result[$navBarGroup][] = $entity;
319
+            $result[$navBarGroup][] = $entity;
320 320
         }else{
321
-          $result[$entity] = 'main';
321
+            $result[$entity] = 'main';
322
+        }
322 323
         }
323
-      }
324 324
         return $result;
325 325
     }
326 326
 
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -315,9 +315,9 @@
 block discarded – undo
315 315
     public function getEntitiesNavBar() {
316 316
       foreach ($this->datas as $entity => $data) {
317 317
         $navBarGroup = $data->getDefinition()->getNavBarGroup();
318
-        if ($navBarGroup !== 'main'){
318
+        if ($navBarGroup !== 'main') {
319 319
           $result[$navBarGroup][] = $entity;
320
-        }else{
320
+        } else {
321 321
           $result[$entity] = 'main';
322 322
         }
323 323
       }
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -317,7 +317,7 @@
 block discarded – undo
317 317
         $navBarGroup = $data->getDefinition()->getNavBarGroup();
318 318
         if ($navBarGroup !== 'main'){
319 319
           $result[$navBarGroup][] = $entity;
320
-        }else{
320
+        } else{
321 321
           $result[$entity] = 'main';
322 322
         }
323 323
       }
Please login to merge, or discard this patch.