Passed
Push — master ( 859573...a81ea2 )
by Gabriel
03:21
created
src/Models/MediaProperties/MediaProperties.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,12 +21,12 @@
 block discarded – undo
21 21
      * @param Collection|string $collection
22 22
      * @return MediaProperty|Record
23 23
      */
24
-    public function for(Record $model, $collection)
24
+    public function for (Record $model, $collection)
25 25
     {
26 26
         $collection = is_object($collection) ? $collection->getName() : $collection;
27 27
         if ($model->hasRelation('MediaProperties')) {
28 28
             return $model->getRelation('MediaProperties')->getResults()->filter(
29
-                function ($item) use ($collection) {
29
+                function($item) use ($collection) {
30 30
                     return $item->collection_name == $collection;
31 31
                 }
32 32
             )->current();
Please login to merge, or discard this patch.
src/Models/MediaRecords/MediaRecords.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,13 +23,13 @@
 block discarded – undo
23 23
      * @param $collection
24 24
      * @return MediaProperty[]|Collection
25 25
      */
26
-    public function for(Record $model, $collection)
26
+    public function for (Record $model, $collection)
27 27
     {
28 28
         $collection = is_object($collection) ? $collection->getName() : $collection;
29 29
 
30 30
         if ($model->hasRelation('Media')) {
31 31
             return $model->getRelation('Media')->getResults()->filter(
32
-                function ($item) use ($collection) {
32
+                function($item) use ($collection) {
33 33
                     return $item->collection_name == $collection;
34 34
                 }
35 35
             );
Please login to merge, or discard this patch.