Scrutinizer GitHub App not installed

We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.

Install GitHub App

Completed
Branch master (f5b2f7)
by Cristian
04:05
created
src/app/Http/Controllers/CrudController.php 2 patches
Doc Comments   +3 added lines, -4 removed lines patch added patch discarded remove patch
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
 	/**
111 111
 	 * Store a newly created resource in the database.
112 112
 	 *
113
-	 * @return Response
113
+	 * @return \Illuminate\Http\RedirectResponse|null
114 114
 	 */
115 115
 	public function storeCrud(StoreRequest $request = null)
116 116
 	{
@@ -187,8 +187,7 @@  discard block
 block discarded – undo
187 187
 	/**
188 188
 	 * Update the specified resource in the database.
189 189
 	 *
190
-	 * @param  int  $id
191
-	 * @return Response
190
+	 * @return \Illuminate\Http\RedirectResponse
192 191
 	 */
193 192
 	public function updateCrud(UpdateRequest $request = null)
194 193
 	{
@@ -242,7 +241,7 @@  discard block
 block discarded – undo
242 241
 	 * Remove the specified resource from storage.
243 242
 	 *
244 243
 	 * @param  int  $id
245
-	 * @return Response
244
+	 * @return string
246 245
 	 */
247 246
 	public function destroy($id)
248 247
 	{
Please login to merge, or discard this patch.
Braces   +10 added lines, -16 removed lines patch added patch discarded remove patch
@@ -58,8 +58,7 @@  discard block
 block discarded – undo
58 58
 		if (property_exists($model, 'translatable'))
59 59
 		{
60 60
 			$this->data['entries'] = $model::where('translation_lang', \Lang::locale())->get();
61
-		}
62
-		else
61
+		} else
63 62
 		{
64 63
 			$this->data['entries'] = $model::all();
65 64
 		}
@@ -286,8 +285,7 @@  discard block
 block discarded – undo
286 285
 			$this->data['entries'] = $model::where('translation_lang', $lang)->get();
287 286
 			$this->data['languages'] = \Backpack\LangFileManager\app\Models\Language::all();
288 287
 			$this->data['active_language'] = $lang;
289
-		}
290
-		else
288
+		} else
291 289
 		{
292 290
 			$this->data['entries'] = $model::all();
293 291
 		}
@@ -330,8 +328,7 @@  discard block
 block discarded – undo
330 328
 					$count++;
331 329
 				}
332 330
 			}
333
-		}
334
-		else
331
+		} else
335 332
 		{
336 333
 			return false;
337 334
 		}
@@ -388,8 +385,7 @@  discard block
 block discarded – undo
388 385
 		if ($existing_translation)
389 386
 		{
390 387
 			$new_entry = $existing_translation;
391
-		}
392
-		else
388
+		} else
393 389
 		{
394 390
 			// get the info for that entry
395 391
 			$new_entry_attributes = $this->data['entry']->getAttributes();
@@ -437,8 +433,7 @@  discard block
 block discarded – undo
437 433
 					if(!in_array($this->crud['fields'][$k]['store_in'], $fake_field_columns_to_encode, true)){
438 434
 				        array_push($fake_field_columns_to_encode, $this->crud['fields'][$k]['store_in']);
439 435
 				    }
440
-				}
441
-				else //otherwise in the one defined in the $crud variable
436
+				} else //otherwise in the one defined in the $crud variable
442 437
 				{
443 438
 					$request['extras'][$this->crud['fields'][$k]['name']] = $request[$this->crud['fields'][$k]['name']];
444 439
 
@@ -482,8 +477,7 @@  discard block
 block discarded – undo
482 477
 					if(!in_array($this->crud['fields'][$k]['store_in'], $fake_field_columns_to_encode, true)){
483 478
 				        array_push($fake_field_columns_to_encode, $this->crud['fields'][$k]['store_in']);
484 479
 				    }
485
-				}
486
-				else //otherwise in the one defined in the $crud variable
480
+				} else //otherwise in the one defined in the $crud variable
487 481
 				{
488 482
 					if(!in_array('extras', $fake_field_columns_to_encode, true)){
489 483
 				        array_push($fake_field_columns_to_encode, 'extras');
@@ -543,8 +537,7 @@  discard block
 block discarded – undo
543 537
 			if (isset($this->crud['create_fields']))
544 538
 			{
545 539
 				$this->crud['fields'] = $this->crud['create_fields'];
546
-			}
547
-			elseif (isset($this->crud['update_fields']))
540
+			} elseif (isset($this->crud['update_fields']))
548 541
 			{
549 542
 				$this->crud['fields'] = $this->crud['update_fields'];
550 543
 			}
@@ -576,8 +569,9 @@  discard block
 block discarded – undo
576 569
 
577 570
 		// if no field type is defined, assume the "text" field type
578 571
 		foreach ($this->crud['fields'] as $k => $field) {
579
-				if (!isset($this->crud['fields'][$k]['type']))
580
-					$this->crud['fields'][$k]['type'] = 'text';
572
+				if (!isset($this->crud['fields'][$k]['type'])) {
573
+									$this->crud['fields'][$k]['type'] = 'text';
574
+				}
581 575
 			}
582 576
 
583 577
 		// if an entry was passed, we're preparing for the update form, not create
Please login to merge, or discard this patch.
src/CrudTrait.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@
 block discarded – undo
68 68
      * Return the entity with fake fields as attributes.
69 69
      *
70 70
      * @param  array  $columns - the database columns that contain the JSONs
71
-     * @return obj
71
+     * @return CrudTrait
72 72
      */
73 73
     public function withFakes($columns = [])
74 74
     {
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -77,8 +77,7 @@
 block discarded – undo
77 77
         if (!count($columns)) {
78 78
             if (property_exists($model, 'fakeColumns')) {
79 79
                 $columns = $this->fakeColumns;
80
-            }
81
-            else
80
+            } else
82 81
             {
83 82
                 $columns = ['extras'];
84 83
             }
Please login to merge, or discard this patch.
src/resources/views/list.blade.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -71,8 +71,7 @@
 block discarded – undo
71 71
                             if ($results && $results->count()) {
72 72
                                 $results_array = $results->lists($column['attribute'], 'id');
73 73
                                 echo implode(', ', $results_array->toArray());
74
-                              }
75
-                              else
74
+                              } else
76 75
                               {
77 76
                                 echo '-';
78 77
                               }
Please login to merge, or discard this patch.
src/resources/views/details_row.blade.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,8 +37,7 @@
 block discarded – undo
37 37
 				                        if ($results && $results->count()) {
38 38
 				                            $results_array = $results->lists($column['attribute'], 'id');
39 39
 				                            echo implode(', ', $results_array->toArray());
40
-				                          }
41
-				                          else
40
+				                          } else
42 41
 				                          {
43 42
 				                            echo '-';
44 43
 				                          }
Please login to merge, or discard this patch.