@@ -29,7 +29,7 @@ discard block |
||
| 29 | 29 | |
| 30 | 30 | if ($this->app->runningInConsole()) { |
| 31 | 31 | $this->publishes([ |
| 32 | - __DIR__.'/../config/config.php' => config_path('backdrop-headless-client.php'), |
|
| 32 | + __DIR__ . '/../config/config.php' => config_path('backdrop-headless-client.php'), |
|
| 33 | 33 | ], 'backdrop-config'); |
| 34 | 34 | |
| 35 | 35 | // Publishing the views. |
@@ -60,11 +60,11 @@ discard block |
||
| 60 | 60 | |
| 61 | 61 | |
| 62 | 62 | // Register the main class to use with the facade |
| 63 | - $this->app->singleton('backdrop', function () { |
|
| 63 | + $this->app->singleton('backdrop', function() { |
|
| 64 | 64 | return new BackdropHeadlessClient(); |
| 65 | 65 | }); |
| 66 | 66 | |
| 67 | 67 | // Automatically apply the package configuration |
| 68 | - $this->mergeConfigFrom(__DIR__.'/../config/config.php', 'backdrop-headless-client'); |
|
| 68 | + $this->mergeConfigFrom(__DIR__ . '/../config/config.php', 'backdrop-headless-client'); |
|
| 69 | 69 | } |
| 70 | 70 | } |
@@ -113,7 +113,7 @@ |
||
| 113 | 113 | $a = data_get($node, implode('.', $value['properties'])); |
| 114 | 114 | if (is_array($a)) { |
| 115 | 115 | foreach ($a as $k => $v) { |
| 116 | - $a2 = array_merge($value['properties'],array($k),$value['value']); |
|
| 116 | + $a2 = array_merge($value['properties'], array($k), $value['value']); |
|
| 117 | 117 | $mapped_node->$field[] = data_get($node, $a2); |
| 118 | 118 | } |
| 119 | 119 | } |
@@ -61,8 +61,7 @@ |
||
| 61 | 61 | $node = json_decode($response->getBody()->getContents()); |
| 62 | 62 | if (null != config('backdrop-headless-client.node_types.' . $type)) { |
| 63 | 63 | $mapped_node = $this->mapToNode($type, $node); |
| 64 | - } |
|
| 65 | - else { |
|
| 64 | + } else { |
|
| 66 | 65 | $mapped_node = $node; |
| 67 | 66 | } |
| 68 | 67 | |