@@ -39,10 +39,10 @@ discard block |
||
| 39 | 39 | public function boot() |
| 40 | 40 | { |
| 41 | 41 | $this->publishes([ |
| 42 | - __DIR__ . '/../../config/config.php' => base_path('config/' . $this->package . '.php'), |
|
| 42 | + __DIR__.'/../../config/config.php' => base_path('config/'.$this->package.'.php'), |
|
| 43 | 43 | ], 'config'); |
| 44 | 44 | |
| 45 | - $this->loadMigrationsFrom(__DIR__ . '/../../database/migrations/'); |
|
| 45 | + $this->loadMigrationsFrom(__DIR__.'/../../database/migrations/'); |
|
| 46 | 46 | } |
| 47 | 47 | |
| 48 | 48 | /** |
@@ -52,7 +52,7 @@ discard block |
||
| 52 | 52 | */ |
| 53 | 53 | public function register() |
| 54 | 54 | { |
| 55 | - $this->mergeConfigFrom(__DIR__ . '/../../config/config.php', $this->package); |
|
| 55 | + $this->mergeConfigFrom(__DIR__.'/../../config/config.php', $this->package); |
|
| 56 | 56 | |
| 57 | 57 | $this->app->bind(Api\DeliveryApi::class, Api\Delivery\Cached::class); |
| 58 | 58 | $this->app->bind(Api\ManagementApi::class, Api\Management\Api::class); |
@@ -73,31 +73,31 @@ discard block |
||
| 73 | 73 | */ |
| 74 | 74 | private function registerCommands() |
| 75 | 75 | { |
| 76 | - $this->app->singleton('command.contentful.model', function () { |
|
| 76 | + $this->app->singleton('command.contentful.model', function() { |
|
| 77 | 77 | return new Commands\Generators\Models(app(Api\ManagementApi::class)); |
| 78 | 78 | }); |
| 79 | - $this->app->singleton('command.contentful.migration', function () { |
|
| 79 | + $this->app->singleton('command.contentful.migration', function() { |
|
| 80 | 80 | return new Commands\Generators\Migrations(app(Api\ManagementApi::class)); |
| 81 | 81 | }); |
| 82 | - $this->app->singleton('command.contentful.sync', function () { |
|
| 82 | + $this->app->singleton('command.contentful.sync', function() { |
|
| 83 | 83 | return new Commands\Sync\Sync; |
| 84 | 84 | }); |
| 85 | - $this->app->singleton('command.contentful.sync-switch', function () { |
|
| 85 | + $this->app->singleton('command.contentful.sync-switch', function() { |
|
| 86 | 86 | return new Commands\Sync\SyncSwitch; |
| 87 | 87 | }); |
| 88 | - $this->app->singleton('command.contentful.sync-data', function () { |
|
| 88 | + $this->app->singleton('command.contentful.sync-data', function() { |
|
| 89 | 89 | return new Commands\Sync\SyncData(app(Api\SyncApi::class)); |
| 90 | 90 | }); |
| 91 | - $this->app->singleton('command.contentful.sync-flatten', function () { |
|
| 91 | + $this->app->singleton('command.contentful.sync-flatten', function() { |
|
| 92 | 92 | return new Commands\Sync\SyncFlatten; |
| 93 | 93 | }); |
| 94 | - $this->app->singleton('command.contentful.sync-locales', function () { |
|
| 94 | + $this->app->singleton('command.contentful.sync-locales', function() { |
|
| 95 | 95 | return new Commands\Sync\SyncLocales(app(Api\ManagementApi::class)); |
| 96 | 96 | }); |
| 97 | - $this->app->singleton('command.contentful.import-clean', function () { |
|
| 97 | + $this->app->singleton('command.contentful.import-clean', function() { |
|
| 98 | 98 | return new Commands\Import\ImportClean(app(Api\ManagementApi::class)); |
| 99 | 99 | }); |
| 100 | - $this->app->singleton('command.contentful.import-publish', function () { |
|
| 100 | + $this->app->singleton('command.contentful.import-publish', function() { |
|
| 101 | 101 | return new Commands\Import\ImportPublish(app(Api\ManagementApi::class)); |
| 102 | 102 | }); |
| 103 | 103 | |
@@ -119,7 +119,7 @@ discard block |
||
| 119 | 119 | */ |
| 120 | 120 | private function registerContentfulRelated() |
| 121 | 121 | { |
| 122 | - $this->app->singleton('contentful.rich-text.parser', function () { |
|
| 122 | + $this->app->singleton('contentful.rich-text.parser', function() { |
|
| 123 | 123 | $spaceId = config('contentful.space_id'); |
| 124 | 124 | $environment = config('contentful.environment'); |
| 125 | 125 | |
@@ -52,7 +52,7 @@ discard block |
||
| 52 | 52 | */ |
| 53 | 53 | public static function toJson($data, $default = null): string |
| 54 | 54 | { |
| 55 | - return ! empty($data) ? json_encode($data): $default; |
|
| 55 | + return !empty($data) ? json_encode($data) : $default; |
|
| 56 | 56 | } |
| 57 | 57 | |
| 58 | 58 | /** |
@@ -89,7 +89,7 @@ discard block |
||
| 89 | 89 | { |
| 90 | 90 | $html = ''; |
| 91 | 91 | |
| 92 | - if (! empty($object)) { |
|
| 92 | + if (!empty($object)) { |
|
| 93 | 93 | try { |
| 94 | 94 | $node = app('contentful.rich-text.parser')->parse($object); |
| 95 | 95 | $html = (new Renderer)->render($node); |
@@ -198,6 +198,6 @@ discard block |
||
| 198 | 198 | */ |
| 199 | 199 | public static function location(array $entry, ?Location $default = null): ?Location |
| 200 | 200 | { |
| 201 | - return ! empty($entry)? new Location($entry) : $default; |
|
| 201 | + return !empty($entry) ? new Location($entry) : $default; |
|
| 202 | 202 | } |
| 203 | 203 | } |