|
@@ -120,11 +120,11 @@ discard block |
|
|
block discarded – undo |
|
120
|
120
|
*/ |
|
121
|
121
|
public function decodeContents() |
|
122
|
122
|
{ |
|
123
|
|
- $attributes = json_decode($this->getContents(), 1); |
|
|
123
|
+ $attributes = json_decode($this->getContents(), 1); |
|
124
|
124
|
|
|
125
|
125
|
// any JSON parsing errors should throw an exception |
|
126
|
126
|
if (json_last_error() > 0) { |
|
127
|
|
- throw new InvalidJsonException('Error processing file: ' . $this->getPath() . '. Error: ' . json_last_error_msg()); |
|
|
127
|
+ throw new InvalidJsonException('Error processing file: '.$this->getPath().'. Error: '.json_last_error_msg()); |
|
128
|
128
|
} |
|
129
|
129
|
|
|
130
|
130
|
return $attributes; |
|
@@ -142,7 +142,7 @@ discard block |
|
|
block discarded – undo |
|
142
|
142
|
return $this->decodeContents(); |
|
143
|
143
|
} |
|
144
|
144
|
|
|
145
|
|
- return app('cache')->store(config('modules.cache.driver'))->remember($this->getPath(), config('modules.cache.lifetime'), function () { |
|
|
145
|
+ return app('cache')->store(config('modules.cache.driver'))->remember($this->getPath(), config('modules.cache.lifetime'), function() { |
|
146
|
146
|
return $this->decodeContents(); |
|
147
|
147
|
}); |
|
148
|
148
|
} |
Please login to merge, or discard this patch.