Passed
Pull Request — master (#10)
by Maksim
02:53
created
src/Http/Traits/CompositeRelationships.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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();
Please login to merge, or discard this patch.
src/Http/Traits/OptionalBinaryTransformation.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -16,15 +16,15 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.