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

Passed
Pull Request — master (#2311)
by Cristian
06:22
created
src/app/Library/CrudPanel/Traits/Fields.php 1 patch
Doc Comments   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -326,8 +326,6 @@  discard block
 block discarded – undo
326 326
      * Check if the create/update form has upload fields.
327 327
      * Upload fields are the ones that have "upload" => true defined on them.
328 328
      *
329
-     * @param string   $form create/update/both - defaults to 'both'
330
-     * @param bool|int $id   id of the entity - defaults to false
331 329
      *
332 330
      * @return bool
333 331
      */
@@ -358,7 +356,7 @@  discard block
 block discarded – undo
358 356
     /**
359 357
      * Set an array of field type names as already loaded for the current operation.
360 358
      *
361
-     * @param array $fieldTypes
359
+     * @param string[] $fieldTypes
362 360
      */
363 361
     public function setLoadedFieldTypes($fieldTypes)
364 362
     {
@@ -369,7 +367,7 @@  discard block
 block discarded – undo
369 367
      * Get a namespaced version of the field type name.
370 368
      * Appends the 'view_namespace' attribute of the field to the `type', using dot notation.
371 369
      *
372
-     * @param  mixed $field
370
+     * @param  string $field
373 371
      * @return string Namespaced version of the field type name. Ex: 'text', 'custom.view.path.text'
374 372
      */
375 373
     public function getFieldTypeWithNamespace($field)
Please login to merge, or discard this patch.
src/app/Library/CrudPanel/Traits/Relationships.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -52,9 +52,9 @@
 block discarded – undo
52 52
     public function checkIfFieldNameBelongsToAnyRelation($fieldName)
53 53
     {
54 54
         $relations = $this->getAvailableRelationsInModel();
55
-        if (! empty($relations)) {
55
+        if (!empty($relations)) {
56 56
             if (in_array($fieldName, array_column($relations, 'name'))) {
57
-                return array_filter($relations, function ($arr) use ($fieldName) {
57
+                return array_filter($relations, function($arr) use ($fieldName) {
58 58
                     if (isset($arr['name'])) {
59 59
                         return $arr['name'] == $fieldName;
60 60
                     }
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -155,7 +155,7 @@
 block discarded – undo
155 155
      * Based on relation type returns if relation allows multiple entities.
156 156
      *
157 157
      * @param string $relationType
158
-     * @return bool
158
+     * @return boolean|null
159 159
      */
160 160
     public function relationAllowsMultiple($relationType)
161 161
     {
Please login to merge, or discard this patch.
src/app/Http/Controllers/Operations/InlineCreateOperation.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -84,10 +84,10 @@
 block discarded – undo
84 84
 
85 85
             $options = [];
86 86
 
87
-            if (! empty($field)) {
87
+            if (!empty($field)) {
88 88
                 $relatedModelInstance = new $field['model']();
89 89
 
90
-                if (! isset($field['options'])) {
90
+                if (!isset($field['options'])) {
91 91
                     $options = $field['model']::all()->pluck($field['attribute'], $relatedModelInstance->getKeyName());
92 92
                 } else {
93 93
                     $options = call_user_func($field['options'], $field['model']::query()->pluck($field['attribute'], $relatedModelInstance->getKeyName()));
Please login to merge, or discard this patch.