@@ -46,7 +46,7 @@ discard block |
||
| 46 | 46 | // when combined with an "_id" should conventionally match the columns. |
| 47 | 47 | if (is_null($foreignKey)) { |
| 48 | 48 | $foreignKey = is_array($instance->getKeyName()) ? array_map( |
| 49 | - function ($key) use ($relation) { |
|
| 49 | + function($key) use ($relation) { |
|
| 50 | 50 | return Str::snake($relation).'_'.$key; |
| 51 | 51 | }, |
| 52 | 52 | $instance->getKeyName() |
@@ -69,7 +69,7 @@ discard block |
||
| 69 | 69 | return $relationQuery; |
| 70 | 70 | } |
| 71 | 71 | |
| 72 | - protected function executeWithinOptionalBinaryTransformation(Closure $relation, ...$models){ |
|
| 72 | + protected function executeWithinOptionalBinaryTransformation(Closure $relation, ...$models) { |
|
| 73 | 73 | foreach ($models as $model) { |
| 74 | 74 | if (method_exists($model, 'disableBinaryMutators')) { |
| 75 | 75 | $model->disableBinaryMutators(); |
@@ -16,15 +16,15 @@ |
||
| 16 | 16 | return $this->hexBinaryColumns; |
| 17 | 17 | } |
| 18 | 18 | |
| 19 | - public function disableBinaryMutators(){ |
|
| 19 | + public function disableBinaryMutators() { |
|
| 20 | 20 | $this->shouldMutate = false; |
| 21 | 21 | } |
| 22 | 22 | |
| 23 | - public function enableBinaryMutators(){ |
|
| 23 | + public function enableBinaryMutators() { |
|
| 24 | 24 | $this->shouldMutate = true; |
| 25 | 25 | } |
| 26 | 26 | |
| 27 | - protected function isAllowedToMutatateBinaryAttributes(){ |
|
| 27 | + protected function isAllowedToMutatateBinaryAttributes() { |
|
| 28 | 28 | return $this->shouldMutate; |
| 29 | 29 | } |
| 30 | 30 | |