Passed
Push — master ( 6a3267...5596bf )
by Curtis
12:56 queued 05:56
created
app/Http/Controllers/Trees/Show.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
 
39 39
         ExportGedCom::dispatch(2, $request);
40 40
         $file = 'file.GED';
41
-        $destinationPath=public_path()."/upload/";
41
+        $destinationPath = public_path()."/upload/";
42 42
         $ret['link'] = $destinationPath.$file;
43 43
         return $ret;
44 44
     }
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
                 return;
134 134
             }
135 135
             // do self
136
-            if (! array_key_exists($start_id, $this->persons)) {
136
+            if (!array_key_exists($start_id, $this->persons)) {
137 137
                 // this is not added
138 138
                 $_families = Family::where('husband_id', $start_id)->orwhere('wife_id', $start_id)->select('id')->get();
139 139
                 $_union_ids = [];
@@ -150,10 +150,10 @@  discard block
 block discarded – undo
150 150
 
151 151
                 // get self's parents data
152 152
                 $p_family_id = $person->child_in_family_id;
153
-                if (! empty($p_family_id)) {
153
+                if (!empty($p_family_id)) {
154 154
                     // add parent family link
155 155
                     // $this->links[] = ['u'.$p_family_id,  $start_id] ;
156
-                    array_unshift($this->links, ['u'.$p_family_id,  $start_id]);
156
+                    array_unshift($this->links, ['u'.$p_family_id, $start_id]);
157 157
                     $p_family = Family::find($p_family_id);
158 158
                     if (isset($p_family->husband_id)) {
159 159
                         $p_fatherid = $p_family->husband_id;
@@ -172,7 +172,7 @@  discard block
 block discarded – undo
172 172
                 $father = Person::find($family->husband_id);
173 173
                 $mother = Person::find($family->wife_id);
174 174
                 if (isset($father->id)) {
175
-                    if (! array_key_exists($father->id, $this->persons)) {
175
+                    if (!array_key_exists($father->id, $this->persons)) {
176 176
                         // this is not added
177 177
                         $_families = Family::where('husband_id', $father->id)->orwhere('wife_id', $father->id)->select('id')->get();
178 178
                         $_union_ids = [];
@@ -189,10 +189,10 @@  discard block
 block discarded – undo
189 189
                         array_unshift($this->links, [$father->id, 'u'.$family_id]);
190 190
                         // get husband's parents data
191 191
                         $p_family_id = $father->child_in_family_id;
192
-                        if (! empty($p_family_id)) {
192
+                        if (!empty($p_family_id)) {
193 193
                             // add parent family link
194 194
                             // $this->links[] = ['u'.$p_family_id,  $father->id] ;
195
-                            array_unshift($this->links, ['u'.$p_family_id,  $father->id]);
195
+                            array_unshift($this->links, ['u'.$p_family_id, $father->id]);
196 196
                             $p_family = Family::find($p_family_id);
197 197
                             if (isset($p_family->husband_id)) {
198 198
                                 $p_fatherid = $p_family->husband_id;
@@ -206,7 +206,7 @@  discard block
 block discarded – undo
206 206
                     }
207 207
                 }
208 208
                 if (isset($mother->id)) {
209
-                    if (! array_key_exists($mother->id, $this->persons)) {
209
+                    if (!array_key_exists($mother->id, $this->persons)) {
210 210
                         // this is not added
211 211
                         $_families = Family::where('husband_id', $mother->id)->orwhere('wife_id', $mother->id)->select('id')->get();
212 212
                         $_union_ids = [];
@@ -222,10 +222,10 @@  discard block
 block discarded – undo
222 222
                         array_unshift($this->links, [$mother->id, 'u'.$family_id]);
223 223
                         // get wifee's parents data
224 224
                         $p_family_id = $mother->child_in_family_id;
225
-                        if (! empty($p_family_id)) {
225
+                        if (!empty($p_family_id)) {
226 226
                             // add parent family link
227 227
                             // $this->links[] = ['u'.$p_family_id,  $father->id] ;
228
-                            array_unshift($this->links, ['u'.$p_family_id,  $mother->id]);
228
+                            array_unshift($this->links, ['u'.$p_family_id, $mother->id]);
229 229
 
230 230
                             $p_family = Family::find($p_family_id);
231 231
                             if (isset($p_family->husband_id)) {
Please login to merge, or discard this patch.
app/Jobs/ExportGedCom.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -47,9 +47,9 @@
 block discarded – undo
47 47
         // $user_id = Auth::user()->id;
48 48
         $ts = microtime(true);
49 49
         $file = env('APP_NAME').date('_Ymd_').$ts.'.GED';
50
-        $destinationPath=public_path()."/upload/";
51
-        if (!is_dir($destinationPath)) {  mkdir($destinationPath,0777,true);  }
52
-        File::put($destinationPath.$file,$content);
50
+        $destinationPath = public_path()."/upload/";
51
+        if (!is_dir($destinationPath)) {  mkdir($destinationPath, 0777, true); }
52
+        File::put($destinationPath.$file, $content);
53 53
         return 0;
54 54
     }
55 55
 }
Please login to merge, or discard this patch.