@@ -42,7 +42,7 @@ |
||
42 | 42 | */ |
43 | 43 | private static function removeEmptyFilters(array $filters) |
44 | 44 | { |
45 | - $filters = array_filter($filters, function ($v) { |
|
45 | + $filters = array_filter($filters, function($v) { |
|
46 | 46 | return count($v) > 0; |
47 | 47 | }); |
48 | 48 |
@@ -26,7 +26,7 @@ |
||
26 | 26 | if (!file_exists(__DIR__.'/database.db')) { |
27 | 27 | file_put_contents(__DIR__.'/database.db', ''); |
28 | 28 | Capsule::schema()->dropIfExists('users'); |
29 | - Capsule::schema()->create('users', function (Blueprint $table) { |
|
29 | + Capsule::schema()->create('users', function(Blueprint $table) { |
|
30 | 30 | $table->string('name', 255); |
31 | 31 | $table->integer('id'); |
32 | 32 | $table->primary('id'); |
@@ -49,9 +49,9 @@ discard block |
||
49 | 49 | /** |
50 | 50 | * Adds a new entity to the storage. |
51 | 51 | * |
52 | - * @param Identity|Model $value |
|
52 | + * @param Identity $value |
|
53 | 53 | * |
54 | - * @return mixed |
|
54 | + * @return Identity |
|
55 | 55 | */ |
56 | 56 | public function add(Identity $value) |
57 | 57 | { |
@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | /** |
65 | 65 | * Adds a collections of entities to the storage. |
66 | 66 | * |
67 | - * @param array $values |
|
67 | + * @param Model[] $values |
|
68 | 68 | * |
69 | 69 | * @return mixed |
70 | 70 | */ |
@@ -96,7 +96,7 @@ discard block |
||
96 | 96 | * |
97 | 97 | * @param Filter $filter |
98 | 98 | * |
99 | - * @return bool |
|
99 | + * @return boolean|null |
|
100 | 100 | */ |
101 | 101 | public function removeAll(Filter $filter = null) |
102 | 102 | { |