@@ -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. |
@@ -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 | |