@@ -24,7 +24,7 @@ |
||
24 | 24 | */ |
25 | 25 | public function register() |
26 | 26 | { |
27 | - $this->app->singleton('odataquery', function ($app) { |
|
27 | + $this->app->singleton('odataquery', function($app) { |
|
28 | 28 | return new LaravelQuery(); |
29 | 29 | }); |
30 | 30 | } |
@@ -66,7 +66,7 @@ |
||
66 | 66 | */ |
67 | 67 | public function setResourceType(ResourceType $resourceType) |
68 | 68 | { |
69 | - $this->iteratorName = "$" . $resourceType->getName(); |
|
69 | + $this->iteratorName = "$".$resourceType->getName(); |
|
70 | 70 | $this->resourceType = $resourceType; |
71 | 71 | } |
72 | 72 | /** |
@@ -290,7 +290,7 @@ |
||
290 | 290 | } |
291 | 291 | /** |
292 | 292 | * Delete resource from a resource set. |
293 | - * @param ResourceSet|null $resourceSet |
|
293 | + * @param ResourceSet|null $sourceResourceSet |
|
294 | 294 | * @param object $sourceEntityInstance |
295 | 295 | * |
296 | 296 | * return bool true if resources sucessfully deteled, otherwise false. |
@@ -285,7 +285,7 @@ discard block |
||
285 | 285 | * |
286 | 286 | * @return object|null The new resource value if it is assignable or throw exception for null. |
287 | 287 | */ |
288 | - public function updateResource(ResourceSet $sourceResourceSet,$sourceEntityInstance, KeyDescriptor $keyDescriptor,$data, $shouldUpdate = false){ |
|
288 | + public function updateResource(ResourceSet $sourceResourceSet, $sourceEntityInstance, KeyDescriptor $keyDescriptor, $data, $shouldUpdate = false) { |
|
289 | 289 | throw new \POData\Common\NotImplementedException(); |
290 | 290 | } |
291 | 291 | /** |
@@ -298,7 +298,7 @@ discard block |
||
298 | 298 | public function deleteResource( |
299 | 299 | ResourceSet $sourceResourceSet, |
300 | 300 | $sourceEntityInstance |
301 | - ){ |
|
301 | + ) { |
|
302 | 302 | throw new \POData\Common\NotImplementedException(); |
303 | 303 | } |
304 | 304 | /** |
@@ -312,7 +312,7 @@ discard block |
||
312 | 312 | ResourceSet $resourceSet, |
313 | 313 | $sourceEntityInstance, |
314 | 314 | $data |
315 | - ){ |
|
315 | + ) { |
|
316 | 316 | throw new \POData\Common\NotImplementedException(); |
317 | 317 | } |
318 | 318 | } |
@@ -2,7 +2,6 @@ |
||
2 | 2 | namespace AlgoWeb\PODataLaravel\Models; |
3 | 3 | |
4 | 4 | use Illuminate\Support\Facades\Schema; |
5 | -use Illuminate\Support\Facades\DB; |
|
6 | 5 | use Illuminate\Support\Facades\App; |
7 | 6 | use Illuminate\Database\Eloquent\Relations\Relation; |
8 | 7 | use POData\Providers\Metadata\ResourceStreamInfo; |
@@ -21,11 +21,11 @@ |
||
21 | 21 | { |
22 | 22 | self::$METANAMESPACE = env('ODataMetaNamespace', 'Data'); |
23 | 23 | // If we aren't migrated, there's no DB tables to pull metadata _from_, so bail out early |
24 | - try{ |
|
24 | + try { |
|
25 | 25 | if (!Schema::hasTable('migrations')) { |
26 | 26 | return; |
27 | 27 | } |
28 | - }catch(\Exception $e){ |
|
28 | + } catch (\Exception $e) { |
|
29 | 29 | return; |
30 | 30 | } |
31 | 31 |
@@ -25,7 +25,7 @@ |
||
25 | 25 | if (!Schema::hasTable('migrations')) { |
26 | 26 | return; |
27 | 27 | } |
28 | - }catch(\Exception $e){ |
|
28 | + } catch(\Exception $e){ |
|
29 | 29 | return; |
30 | 30 | } |
31 | 31 |