Completed
Push — master ( fcab66...68f1fa )
by Philip
05:57
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/YamlReader.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@
 block discarded – undo
72 72
             'whitespace' => false,
73 73
             'recursion.detect' => false
74 74
         ]);
75
-        $cache      = '<?php $crudlexCacheContent = '.$contentPHP.';';
75
+        $cache = '<?php $crudlexCacheContent = '.$contentPHP.';';
76 76
         file_put_contents($this->getCacheFile($fileName), $cache);
77 77
     }
78 78
 
Please login to merge, or discard this patch.
src/CRUDlex/ServiceProvider.php 2 patches
Doc Comments   -4 removed lines patch added patch discarded remove patch
@@ -203,10 +203,6 @@
 block discarded – undo
203 203
     /**
204 204
      * Initializes the instance.
205 205
      *
206
-     * @param DataFactoryInterface $dataFactory
207
-     * the factory to create the concrete AbstractData instances
208
-     * @param string $crudFile
209
-     * the CRUD YAML file to parse
210 206
      * @param string|null $crudFileCachingDirectory
211 207
      * the writable directory to store the CRUD YAML file cache
212 208
      * @param Container $app
Please login to merge, or discard this patch.
Unused Use Statements   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -11,7 +11,8 @@  discard block
 block discarded – undo
11 11
 
12 12
 namespace CRUDlex;
13 13
 
14
-use League\Flysystem\FilesystemInterface;
14
+use League\Flysystem\Adapter\Local;
15
+use League\Flysystem\Filesystem;
15 16
 use Pimple\Container;
16 17
 use Pimple\ServiceProviderInterface;
17 18
 use Silex\Api\BootableProviderInterface;
@@ -21,8 +22,6 @@  discard block
 block discarded – undo
21 22
 use Silex\Provider\TranslationServiceProvider;
22 23
 use Silex\Provider\TwigServiceProvider;
23 24
 use Symfony\Component\Translation\Loader\YamlFileLoader;
24
-use League\Flysystem\Filesystem;
25
-use League\Flysystem\Adapter\Local;
26 25
 
27 26
 /**
28 27
  * The ServiceProvider setups and initializes the whole CRUD system.
Please login to merge, or discard this patch.