@@ -83,7 +83,7 @@ |
||
| 83 | 83 | $content = file_get_contents($stubPath); |
| 84 | 84 | |
| 85 | 85 | foreach ($replacements as $key => $value) { |
| 86 | - $content = str_replace('{{' . Str::upper($key) . '}}', $value, $content); |
|
| 86 | + $content = str_replace('{{'.Str::upper($key).'}}', $value, $content); |
|
| 87 | 87 | } |
| 88 | 88 | |
| 89 | 89 | return $content; |
@@ -9,7 +9,7 @@ discard block |
||
| 9 | 9 | */ |
| 10 | 10 | public function modelGetter() |
| 11 | 11 | { |
| 12 | - $stubPath = __DIR__ . '/stubs/float.stub'; |
|
| 12 | + $stubPath = __DIR__.'/stubs/float.stub'; |
|
| 13 | 13 | |
| 14 | 14 | return self::getStub($stubPath, [ |
| 15 | 15 | 'field' => $this->id(), |
@@ -22,6 +22,6 @@ discard block |
||
| 22 | 22 | */ |
| 23 | 23 | public function modelProperty() |
| 24 | 24 | { |
| 25 | - return ' * @property float $' . $this->snakeId(); |
|
| 25 | + return ' * @property float $'.$this->snakeId(); |
|
| 26 | 26 | } |
| 27 | 27 | } |
@@ -9,7 +9,7 @@ discard block |
||
| 9 | 9 | */ |
| 10 | 10 | public function modelGetter() |
| 11 | 11 | { |
| 12 | - $stubPath = __DIR__ . '/stubs/string.stub'; |
|
| 12 | + $stubPath = __DIR__.'/stubs/string.stub'; |
|
| 13 | 13 | |
| 14 | 14 | return self::getStub($stubPath, [ |
| 15 | 15 | 'field' => $this->id(), |
@@ -22,6 +22,6 @@ discard block |
||
| 22 | 22 | */ |
| 23 | 23 | public function modelProperty() |
| 24 | 24 | { |
| 25 | - return ' * @property string $' . $this->snakeId(); |
|
| 25 | + return ' * @property string $'.$this->snakeId(); |
|
| 26 | 26 | } |
| 27 | 27 | } |
@@ -9,7 +9,7 @@ discard block |
||
| 9 | 9 | */ |
| 10 | 10 | public function modelGetter() |
| 11 | 11 | { |
| 12 | - $stubPath = __DIR__ . '/stubs/location.stub'; |
|
| 12 | + $stubPath = __DIR__.'/stubs/location.stub'; |
|
| 13 | 13 | |
| 14 | 14 | return self::getStub($stubPath, [ |
| 15 | 15 | 'field' => $this->id(), |
@@ -22,6 +22,6 @@ discard block |
||
| 22 | 22 | */ |
| 23 | 23 | public function modelProperty() |
| 24 | 24 | { |
| 25 | - return ' * @property \Distilleries\Contentful\Models\Location $' . $this->snakeId(); |
|
| 25 | + return ' * @property \Distilleries\Contentful\Models\Location $'.$this->snakeId(); |
|
| 26 | 26 | } |
| 27 | 27 | } |
@@ -9,7 +9,7 @@ discard block |
||
| 9 | 9 | */ |
| 10 | 10 | public function modelGetter() |
| 11 | 11 | { |
| 12 | - $stubPath = __DIR__ . '/stubs/datetime.stub'; |
|
| 12 | + $stubPath = __DIR__.'/stubs/datetime.stub'; |
|
| 13 | 13 | |
| 14 | 14 | return self::getStub($stubPath, [ |
| 15 | 15 | 'field' => $this->id(), |
@@ -22,6 +22,6 @@ discard block |
||
| 22 | 22 | */ |
| 23 | 23 | public function modelProperty() |
| 24 | 24 | { |
| 25 | - return ' * @property \Illuminate\Support\Carbon $' . $this->snakeId(); |
|
| 25 | + return ' * @property \Illuminate\Support\Carbon $'.$this->snakeId(); |
|
| 26 | 26 | } |
| 27 | 27 | } |
@@ -9,7 +9,7 @@ discard block |
||
| 9 | 9 | */ |
| 10 | 10 | public function modelGetter() |
| 11 | 11 | { |
| 12 | - $stubPath = __DIR__ . '/stubs/string.stub'; |
|
| 12 | + $stubPath = __DIR__.'/stubs/string.stub'; |
|
| 13 | 13 | |
| 14 | 14 | return self::getStub($stubPath, [ |
| 15 | 15 | 'field' => $this->id(), |
@@ -22,6 +22,6 @@ discard block |
||
| 22 | 22 | */ |
| 23 | 23 | public function modelProperty() |
| 24 | 24 | { |
| 25 | - return ' * @property string $' . $this->snakeId(); |
|
| 25 | + return ' * @property string $'.$this->snakeId(); |
|
| 26 | 26 | } |
| 27 | 27 | } |
@@ -13,13 +13,13 @@ discard block |
||
| 13 | 13 | { |
| 14 | 14 | switch ($this->field['items']['type']) { |
| 15 | 15 | case 'Link': |
| 16 | - $stubPath = __DIR__ . '/stubs/entries.stub'; |
|
| 16 | + $stubPath = __DIR__.'/stubs/entries.stub'; |
|
| 17 | 17 | break; |
| 18 | 18 | case 'Symbol': |
| 19 | - $stubPath = __DIR__ . '/stubs/string.stub'; |
|
| 19 | + $stubPath = __DIR__.'/stubs/string.stub'; |
|
| 20 | 20 | break; |
| 21 | 21 | default: |
| 22 | - throw new Exception('Unknown Array items type "' . $this->field['items']['type'] . '"'); |
|
| 22 | + throw new Exception('Unknown Array items type "'.$this->field['items']['type'].'"'); |
|
| 23 | 23 | } |
| 24 | 24 | |
| 25 | 25 | return self::getStub($stubPath, [ |
@@ -43,9 +43,9 @@ discard block |
||
| 43 | 43 | $property .= 'string'; |
| 44 | 44 | break; |
| 45 | 45 | default: |
| 46 | - throw new Exception('Unknown Array items type "' . $this->field['items']['type'] . '"'); |
|
| 46 | + throw new Exception('Unknown Array items type "'.$this->field['items']['type'].'"'); |
|
| 47 | 47 | } |
| 48 | 48 | |
| 49 | - return $property . ' $' . $this->snakeId(); |
|
| 49 | + return $property.' $'.$this->snakeId(); |
|
| 50 | 50 | } |
| 51 | 51 | } |
@@ -9,7 +9,7 @@ discard block |
||
| 9 | 9 | */ |
| 10 | 10 | public function modelGetter() |
| 11 | 11 | { |
| 12 | - $stubPath = __DIR__ . '/stubs/integer.stub'; |
|
| 12 | + $stubPath = __DIR__.'/stubs/integer.stub'; |
|
| 13 | 13 | |
| 14 | 14 | return self::getStub($stubPath, [ |
| 15 | 15 | 'field' => $this->id(), |
@@ -22,6 +22,6 @@ discard block |
||
| 22 | 22 | */ |
| 23 | 23 | public function modelProperty() |
| 24 | 24 | { |
| 25 | - return ' * @property int $' . $this->snakeId(); |
|
| 25 | + return ' * @property int $'.$this->snakeId(); |
|
| 26 | 26 | } |
| 27 | 27 | } |
@@ -13,13 +13,13 @@ discard block |
||
| 13 | 13 | { |
| 14 | 14 | switch ($this->field['linkType']) { |
| 15 | 15 | case 'Entry': |
| 16 | - $stubPath = __DIR__ . '/stubs/entry.stub'; |
|
| 16 | + $stubPath = __DIR__.'/stubs/entry.stub'; |
|
| 17 | 17 | break; |
| 18 | 18 | case 'Asset': |
| 19 | - $stubPath = __DIR__ . '/stubs/asset.stub'; |
|
| 19 | + $stubPath = __DIR__.'/stubs/asset.stub'; |
|
| 20 | 20 | break; |
| 21 | 21 | default: |
| 22 | - throw new Exception('Unknown Link items type "' . $this->field['linkType'] . '"'); |
|
| 22 | + throw new Exception('Unknown Link items type "'.$this->field['linkType'].'"'); |
|
| 23 | 23 | } |
| 24 | 24 | |
| 25 | 25 | return self::getStub($stubPath, [ |
@@ -43,9 +43,9 @@ discard block |
||
| 43 | 43 | $property .= '\Distilleries\Contentful\Models\Asset'; |
| 44 | 44 | break; |
| 45 | 45 | default: |
| 46 | - throw new Exception('Unknown Link items type "' . $this->field['items']['type'] . '"'); |
|
| 46 | + throw new Exception('Unknown Link items type "'.$this->field['items']['type'].'"'); |
|
| 47 | 47 | } |
| 48 | 48 | |
| 49 | - return $property . ' $' . $this->snakeId(); |
|
| 49 | + return $property.' $'.$this->snakeId(); |
|
| 50 | 50 | } |
| 51 | 51 | } |