Passed
Branch master (f1f461)
by Dennis
14:18
created
src/Models/CompanyProfile.php 1 patch
Braces   +9 added lines, -6 removed lines patch added patch discarded remove patch
@@ -87,8 +87,9 @@  discard block
 block discarded – undo
87 87
 
88 88
     public function getFilesAttribute()
89 89
     {
90
-        if (!$medias = $this->getMedia(self::MEDIA_FILE))
91
-            return [];
90
+        if (!$medias = $this->getMedia(self::MEDIA_FILE)) {
91
+                    return [];
92
+        }
92 93
         return $medias->map(function ($item) {
93 94
             return [
94 95
                 'name' => $item->file_name,
@@ -100,8 +101,9 @@  discard block
 block discarded – undo
100 101
 
101 102
     public function getBackAttribute()
102 103
     {
103
-        if (!$media = $this->getFirstMedia(self::MEDIA_BACK))
104
-            return [];
104
+        if (!$media = $this->getFirstMedia(self::MEDIA_BACK)) {
105
+                    return [];
106
+        }
105 107
         return [
106 108
             'name' => $media->file_name,
107 109
             'url' => $media->original_url,
@@ -111,8 +113,9 @@  discard block
 block discarded – undo
111 113
 
112 114
     public function getFrontAttribute()
113 115
     {
114
-        if (!$media = $this->getFirstMedia(self::MEDIA_FRONT))
115
-            return [];
116
+        if (!$media = $this->getFirstMedia(self::MEDIA_FRONT)) {
117
+                    return [];
118
+        }
116 119
         return [
117 120
             'name' => $media->file_name,
118 121
             'url' => $media->original_url,
Please login to merge, or discard this patch.
src/Models/CompanyApply.php 1 patch
Braces   +12 added lines, -8 removed lines patch added patch discarded remove patch
@@ -114,8 +114,9 @@  discard block
 block discarded – undo
114 114
 
115 115
     public function getFilesAttribute()
116 116
     {
117
-        if (!$medias = $this->getMedia(self::MEDIA_FILE))
118
-            return [];
117
+        if (!$medias = $this->getMedia(self::MEDIA_FILE)) {
118
+                    return [];
119
+        }
119 120
         return $medias->map(function ($item) {
120 121
             return [
121 122
                 'name' => $item->file_name,
@@ -127,8 +128,9 @@  discard block
 block discarded – undo
127 128
 
128 129
     public function getLogoAttribute()
129 130
     {
130
-        if (!$media = $this->getFirstMedia(self::MEDIA_LOGO))
131
-            return [];
131
+        if (!$media = $this->getFirstMedia(self::MEDIA_LOGO)) {
132
+                    return [];
133
+        }
132 134
         return [
133 135
             'name' => $media->file_name,
134 136
             'url' => $media->original_url,
@@ -138,8 +140,9 @@  discard block
 block discarded – undo
138 140
 
139 141
     public function getBackAttribute()
140 142
     {
141
-        if (!$media = $this->getFirstMedia(self::MEDIA_BACK))
142
-            return [];
143
+        if (!$media = $this->getFirstMedia(self::MEDIA_BACK)) {
144
+                    return [];
145
+        }
143 146
         return [
144 147
             'name' => $media->file_name,
145 148
             'url' => $media->original_url,
@@ -149,8 +152,9 @@  discard block
 block discarded – undo
149 152
 
150 153
     public function getFrontAttribute()
151 154
     {
152
-        if (!$media = $this->getFirstMedia(self::MEDIA_FRONT))
153
-            return [];
155
+        if (!$media = $this->getFirstMedia(self::MEDIA_FRONT)) {
156
+                    return [];
157
+        }
154 158
         return [
155 159
             'name' => $media->file_name,
156 160
             'url' => $media->original_url,
Please login to merge, or discard this patch.
src/Models/CompanyAccount.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -92,8 +92,9 @@
 block discarded – undo
92 92
 
93 93
     public function getAvatarAttribute()
94 94
     {
95
-        if (!$media = $this->getFirstMedia(self::MEDIA_AVATAR))
96
-            return [];
95
+        if (!$media = $this->getFirstMedia(self::MEDIA_AVATAR)) {
96
+                    return [];
97
+        }
97 98
         return [
98 99
             'name' => $media->file_name,
99 100
             'url' => $media->original_url,
Please login to merge, or discard this patch.
src/Models/Company.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -93,8 +93,9 @@
 block discarded – undo
93 93
 
94 94
     public function getLogoAttribute()
95 95
     {
96
-        if (!$media = $this->getFirstMedia(self::MEDIA_LOGO))
97
-            return [];
96
+        if (!$media = $this->getFirstMedia(self::MEDIA_LOGO)) {
97
+                    return [];
98
+        }
98 99
         return [
99 100
             'name' => $media->file_name,
100 101
             'url' => $media->original_url,
Please login to merge, or discard this patch.