@@ -82,7 +82,7 @@ discard block |
||
| 82 | 82 | |
| 83 | 83 | $that = $this; |
| 84 | 84 | |
| 85 | - return $this->resource_factory->getAllFrom($this->db->{$this->scheduler->getJobQueue()}, $filter, $offset, $limit, $sort, function (array $resource) use ($namespace, $that) { |
|
| 85 | + return $this->resource_factory->getAllFrom($this->db->{$this->scheduler->getJobQueue()}, $filter, $offset, $limit, $sort, function(array $resource) use ($namespace, $that) { |
|
| 86 | 86 | return $that->build($resource, $namespace); |
| 87 | 87 | }); |
| 88 | 88 | } |
@@ -140,7 +140,7 @@ discard block |
||
| 140 | 140 | { |
| 141 | 141 | $that = $this; |
| 142 | 142 | |
| 143 | - return $this->resource_factory->watchFrom($this->db->{$this->scheduler->getJobQueue()}, $after, $existing, $query, function (array $resource) use ($namespace, $that) { |
|
| 143 | + return $this->resource_factory->watchFrom($this->db->{$this->scheduler->getJobQueue()}, $after, $existing, $query, function(array $resource) use ($namespace, $that) { |
|
| 144 | 144 | return $that->build($resource, $namespace); |
| 145 | 145 | }, $offset, $limit, $sort); |
| 146 | 146 | } |
@@ -101,7 +101,7 @@ discard block |
||
| 101 | 101 | { |
| 102 | 102 | $that = $this; |
| 103 | 103 | |
| 104 | - return $this->resource_factory->getAllFrom($this->db->{self::COLLECTION_NAME}, $query, $offset, $limit, $sort, function (array $resource) use ($that) { |
|
| 104 | + return $this->resource_factory->getAllFrom($this->db->{self::COLLECTION_NAME}, $query, $offset, $limit, $sort, function(array $resource) use ($that) { |
|
| 105 | 105 | return $that->build($resource); |
| 106 | 106 | }); |
| 107 | 107 | } |
@@ -173,7 +173,7 @@ discard block |
||
| 173 | 173 | { |
| 174 | 174 | $that = $this; |
| 175 | 175 | |
| 176 | - return $this->resource_factory->watchFrom($this->db->{self::COLLECTION_NAME}, $after, $existing, $query, function (array $resource) use ($that) { |
|
| 176 | + return $this->resource_factory->watchFrom($this->db->{self::COLLECTION_NAME}, $after, $existing, $query, function(array $resource) use ($that) { |
|
| 177 | 177 | return $that->build($resource); |
| 178 | 178 | }, $offset, $limit, $sort); |
| 179 | 179 | } |
@@ -71,7 +71,7 @@ discard block |
||
| 71 | 71 | { |
| 72 | 72 | $that = $this; |
| 73 | 73 | |
| 74 | - return $this->resource_factory->getAllFrom($this->db->{self::COLLECTION_NAME}, $query, $offset, $limit, $sort, function (array $resource) use ($that) { |
|
| 74 | + return $this->resource_factory->getAllFrom($this->db->{self::COLLECTION_NAME}, $query, $offset, $limit, $sort, function(array $resource) use ($that) { |
|
| 75 | 75 | return $that->build($resource); |
| 76 | 76 | }); |
| 77 | 77 | } |
@@ -138,7 +138,7 @@ discard block |
||
| 138 | 138 | { |
| 139 | 139 | $that = $this; |
| 140 | 140 | |
| 141 | - return $this->resource_factory->watchFrom($this->db->{self::COLLECTION_NAME}, $after, $existing, $query, function (array $resource) use ($that) { |
|
| 141 | + return $this->resource_factory->watchFrom($this->db->{self::COLLECTION_NAME}, $after, $existing, $query, function(array $resource) use ($that) { |
|
| 142 | 142 | return $that->build($resource); |
| 143 | 143 | }, $offset, $limit, $sort); |
| 144 | 144 | } |
@@ -106,7 +106,7 @@ discard block |
||
| 106 | 106 | |
| 107 | 107 | $that = $this; |
| 108 | 108 | |
| 109 | - return $this->resource_factory->getAllFrom($this->db->{self::COLLECTION_NAME}, $filter, $offset, $limit, $sort, function (array $resource) use ($collection, $that) { |
|
| 109 | + return $this->resource_factory->getAllFrom($this->db->{self::COLLECTION_NAME}, $filter, $offset, $limit, $sort, function(array $resource) use ($collection, $that) { |
|
| 110 | 110 | return $that->build($resource, $collection); |
| 111 | 111 | }); |
| 112 | 112 | } |
@@ -203,7 +203,7 @@ discard block |
||
| 203 | 203 | { |
| 204 | 204 | $that = $this; |
| 205 | 205 | |
| 206 | - return $this->resource_factory->watchFrom($this->db->{self::COLLECTION_NAME}, $after, $existing, $query, function (array $resource) use ($collection, $that) { |
|
| 206 | + return $this->resource_factory->watchFrom($this->db->{self::COLLECTION_NAME}, $after, $existing, $query, function(array $resource) use ($collection, $that) { |
|
| 207 | 207 | return $that->build($resource, $collection); |
| 208 | 208 | }, $offset, $limit, $sort); |
| 209 | 209 | } |
@@ -62,7 +62,7 @@ discard block |
||
| 62 | 62 | { |
| 63 | 63 | $that = $this; |
| 64 | 64 | |
| 65 | - return $this->resource_factory->getAllFrom($this->db->{self::COLLECTION_NAME}, $query, $offset, $limit, $sort, function ($resource) use ($that) { |
|
| 65 | + return $this->resource_factory->getAllFrom($this->db->{self::COLLECTION_NAME}, $query, $offset, $limit, $sort, function($resource) use ($that) { |
|
| 66 | 66 | return $that->build($resource); |
| 67 | 67 | }); |
| 68 | 68 | } |
@@ -130,7 +130,7 @@ discard block |
||
| 130 | 130 | { |
| 131 | 131 | $that = $this; |
| 132 | 132 | |
| 133 | - return $this->resource_factory->watchFrom($this->db->{self::COLLECTION_NAME}, $after, $existing, $query, function ($resource) use ($that) { |
|
| 133 | + return $this->resource_factory->watchFrom($this->db->{self::COLLECTION_NAME}, $after, $existing, $query, function($resource) use ($that) { |
|
| 134 | 134 | return $that->build($resource); |
| 135 | 135 | }, $offset, $limit, $sort); |
| 136 | 136 | } |
@@ -104,7 +104,7 @@ discard block |
||
| 104 | 104 | |
| 105 | 105 | $that = $this; |
| 106 | 106 | |
| 107 | - return $this->resource_factory->getAllFrom($this->db->{self::COLLECTION_NAME}, $filter, $offset, $limit, $sort, function (array $resource) use ($namespace, $that) { |
|
| 107 | + return $this->resource_factory->getAllFrom($this->db->{self::COLLECTION_NAME}, $filter, $offset, $limit, $sort, function(array $resource) use ($namespace, $that) { |
|
| 108 | 108 | return $that->build($resource, $namespace); |
| 109 | 109 | }); |
| 110 | 110 | } |
@@ -209,7 +209,7 @@ discard block |
||
| 209 | 209 | { |
| 210 | 210 | $that = $this; |
| 211 | 211 | |
| 212 | - return $this->resource_factory->watchFrom($this->db->{self::COLLECTION_NAME}, $after, $existing, $query, function (array $resource) use ($namespace, $that) { |
|
| 212 | + return $this->resource_factory->watchFrom($this->db->{self::COLLECTION_NAME}, $after, $existing, $query, function(array $resource) use ($namespace, $that) { |
|
| 213 | 213 | return $that->build($resource, $namespace); |
| 214 | 214 | }, $offset, $limit, $sort); |
| 215 | 215 | } |
@@ -61,7 +61,7 @@ discard block |
||
| 61 | 61 | { |
| 62 | 62 | $that = $this; |
| 63 | 63 | |
| 64 | - return $this->resource_factory->getAllFrom($this->db->{self::COLLECTION_NAME}, $query, $offset, $limit, $sort, function ($resource) use ($that) { |
|
| 64 | + return $this->resource_factory->getAllFrom($this->db->{self::COLLECTION_NAME}, $query, $offset, $limit, $sort, function($resource) use ($that) { |
|
| 65 | 65 | return $that->build($resource); |
| 66 | 66 | }); |
| 67 | 67 | } |
@@ -129,7 +129,7 @@ discard block |
||
| 129 | 129 | { |
| 130 | 130 | $that = $this; |
| 131 | 131 | |
| 132 | - return $this->resource_factory->watchFrom($this->db->{self::COLLECTION_NAME}, $after, $existing, $query, null, (function ($resource) use ($that) { |
|
| 132 | + return $this->resource_factory->watchFrom($this->db->{self::COLLECTION_NAME}, $after, $existing, $query, null, (function($resource) use ($that) { |
|
| 133 | 133 | return $that->build($resource); |
| 134 | 134 | })->bindTo($this), $offset, $limit, $sort); |
| 135 | 135 | } |
@@ -99,7 +99,7 @@ discard block |
||
| 99 | 99 | |
| 100 | 100 | $that = $this; |
| 101 | 101 | |
| 102 | - return $this->resource_factory->getAllFrom($this->db->{self::COLLECTION_NAME}, $filter, $offset, $limit, $sort, function (array $resource) use ($endpoint, $that) { |
|
| 102 | + return $this->resource_factory->getAllFrom($this->db->{self::COLLECTION_NAME}, $filter, $offset, $limit, $sort, function(array $resource) use ($endpoint, $that) { |
|
| 103 | 103 | return $that->build($resource, $endpoint); |
| 104 | 104 | }); |
| 105 | 105 | } |
@@ -176,7 +176,7 @@ discard block |
||
| 176 | 176 | { |
| 177 | 177 | $that = $this; |
| 178 | 178 | |
| 179 | - return $this->resource_factory->watchFrom($this->db->{self::COLLECTION_NAME}, $after, $existing, $query, function (array $resource) use ($endpoint, $that) { |
|
| 179 | + return $this->resource_factory->watchFrom($this->db->{self::COLLECTION_NAME}, $after, $existing, $query, function(array $resource) use ($endpoint, $that) { |
|
| 180 | 180 | return $that->build($resource, $endpoint); |
| 181 | 181 | }, $offset, $limit, $sort); |
| 182 | 182 | } |
@@ -132,7 +132,7 @@ discard block |
||
| 132 | 132 | { |
| 133 | 133 | $that = $this; |
| 134 | 134 | |
| 135 | - return $this->resource_factory->getAllFrom($this->db->{$collection->getCollection()}, $query, $offset, $limit, $sort, function (array $resource) use ($collection, $that) { |
|
| 135 | + return $this->resource_factory->getAllFrom($this->db->{$collection->getCollection()}, $query, $offset, $limit, $sort, function(array $resource) use ($collection, $that) { |
|
| 136 | 136 | return $that->build($resource, $collection); |
| 137 | 137 | }); |
| 138 | 138 | } |
@@ -200,7 +200,7 @@ discard block |
||
| 200 | 200 | { |
| 201 | 201 | $that = $this; |
| 202 | 202 | |
| 203 | - return $this->resource_factory->watchFrom($this->db->{$collection->getCollection()}, $after, $existing, $query, function (array $resource) use ($collection, $that) { |
|
| 203 | + return $this->resource_factory->watchFrom($this->db->{$collection->getCollection()}, $after, $existing, $query, function(array $resource) use ($collection, $that) { |
|
| 204 | 204 | return $that->build($collection, $resource); |
| 205 | 205 | }, $offset, $limit, $sort); |
| 206 | 206 | } |