@@ -72,7 +72,7 @@ |
||
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 |
@@ -87,7 +87,7 @@ |
||
87 | 87 | * Enriches an entity with metadata: |
88 | 88 | * id, version, created_at, updated_at |
89 | 89 | * |
90 | - * @param mixed $id |
|
90 | + * @param string|null $id |
|
91 | 91 | * the id of the entity to enrich |
92 | 92 | * @param Entity $entity |
93 | 93 | * the entity to enrich |
@@ -721,7 +721,7 @@ |
||
721 | 721 | * the name of the field |
722 | 722 | * @param string $key |
723 | 723 | * the value of the key |
724 | - * @param mixed $value |
|
724 | + * @param string $value |
|
725 | 725 | * the new value |
726 | 726 | */ |
727 | 727 | public function setField($name, $key, $value) |
@@ -67,7 +67,7 @@ |
||
67 | 67 | { |
68 | 68 | $controller = $app->offsetExists('crud.controller') ? $app['crud.controller'] : new Controller($app['crud'], $app['crud.filesystem'], $app['twig'], $app['session'], $app['translator']); |
69 | 69 | if (!$controller instanceof ControllerInterface) { |
70 | - throw new \InvalidArgumentException('crud.controller doesn\'t implement CRUDlex\ControllerInterface.' ); |
|
70 | + throw new \InvalidArgumentException('crud.controller doesn\'t implement CRUDlex\ControllerInterface.'); |
|
71 | 71 | } |
72 | 72 | $localeAndCheckEntity = [$controller, 'setLocaleAndCheckEntity']; |
73 | 73 | $factory = $app['controllers_factory']; |