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 4.1 (e96457)
by Cristian
15:00
created
src/resources/views/crud/fields/date_range.blade.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -3,11 +3,11 @@
 block discarded – undo
3 3
 <?php
4 4
     // if the column has been cast to Carbon or Date (using attribute casting)
5 5
     // get the value as a date string
6
-    if (! function_exists('formatDate')) {
6
+    if (!function_exists('formatDate')) {
7 7
         function formatDate($entry, $dateFieldName)
8 8
         {
9 9
             $formattedDate = null;
10
-            if (isset($entry) && ! empty($entry->{$dateFieldName})) {
10
+            if (isset($entry) && !empty($entry->{$dateFieldName})) {
11 11
                 $dateField = $entry->{$dateFieldName};
12 12
                 if ($dateField instanceof \Carbon\CarbonInterface) {
13 13
                     $formattedDate = $dateField->format('Y-m-d H:i:s');
Please login to merge, or discard this patch.
src/resources/views/crud/fields/page_or_link.blade.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
         </div>
38 38
         <div class="col-sm-9">
39 39
             <!-- external link input -->
40
-              <div class="page_or_link_value page_or_link_external_link <?php if (! isset($entry) || $entry->type != 'external_link') {
40
+              <div class="page_or_link_value page_or_link_external_link <?php if (!isset($entry) || $entry->type != 'external_link') {
41 41
     echo 'd-none';
42 42
 } ?>">
43 43
                 <input
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
                     >
57 57
               </div>
58 58
               <!-- internal link input -->
59
-              <div class="page_or_link_value page_or_link_internal_link <?php if (! isset($entry) || $entry->type != 'internal_link') {
59
+              <div class="page_or_link_value page_or_link_internal_link <?php if (!isset($entry) || $entry->type != 'internal_link') {
60 60
     echo 'd-none';
61 61
 } ?>">
62 62
                 <input
Please login to merge, or discard this patch.
src/app/Library/CrudPanel/Traits/FakeFields.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
                     $fakeFieldKey = isset($field['store_in']) ? $field['store_in'] : 'extras';
33 33
                     $this->addCompactedField($requestInput, $fieldName, $fakeFieldKey);
34 34
 
35
-                    if (! in_array($fakeFieldKey, $compactedFakeFields)) {
35
+                    if (!in_array($fakeFieldKey, $compactedFakeFields)) {
36 36
                         $compactedFakeFields[] = $fakeFieldKey;
37 37
                     }
38 38
                 }
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
 
42 42
         // json_encode all fake_value columns if applicable in the database, so they can be properly stored and interpreted
43 43
         foreach ($compactedFakeFields as $value) {
44
-            if (! (property_exists($this->model, 'translatable') && in_array($value, $this->model->getTranslatableAttributes(), true)) && $this->model->shouldEncodeFake($value)) {
44
+            if (!(property_exists($this->model, 'translatable') && in_array($value, $this->model->getTranslatableAttributes(), true)) && $this->model->shouldEncodeFake($value)) {
45 45
                 $requestInput[$value] = json_encode($requestInput[$value]);
46 46
             }
47 47
         }
Please login to merge, or discard this patch.
src/app/Library/CrudPanel/Traits/Read.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
     {
39 39
         $id = $this->getCurrentEntryId();
40 40
 
41
-        if (! $id) {
41
+        if (!$id) {
42 42
             return false;
43 43
         }
44 44
 
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
      */
55 55
     public function getEntry($id)
56 56
     {
57
-        if (! $this->entry) {
57
+        if (!$this->entry) {
58 58
             $this->entry = $this->model->findOrFail($id);
59 59
             $this->entry = $this->entry->withFakes();
60 60
         }
@@ -203,7 +203,7 @@  discard block
 block discarded – undo
203 203
     {
204 204
         // If the default Page Length isn't in the menu's values, Add it the beginnin and resort all to show a croissant list.
205 205
         // assume both arrays are the same length.
206
-        if (! in_array($this->getDefaultPageLength(), $this->getOperationSetting('pageLengthMenu')[0])) {
206
+        if (!in_array($this->getDefaultPageLength(), $this->getOperationSetting('pageLengthMenu')[0])) {
207 207
             // Loop through 2 arrays of prop. pageLengthMenu
208 208
             foreach ($this->getOperationSetting('pageLengthMenu') as $key => &$page_length_choices) {
209 209
                 // This is a condition that should be always true.
Please login to merge, or discard this patch.
src/app/Http/Controllers/Operations/DeleteOperation.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,11 +29,11 @@
 block discarded – undo
29 29
     {
30 30
         $this->crud->allowAccess('delete');
31 31
 
32
-        $this->crud->operation('delete', function () {
32
+        $this->crud->operation('delete', function() {
33 33
             $this->crud->loadDefaultOperationSettingsFromConfig();
34 34
         });
35 35
 
36
-        $this->crud->operation(['list', 'show'], function () {
36
+        $this->crud->operation(['list', 'show'], function() {
37 37
             $this->crud->addButton('line', 'delete', 'view', 'crud::buttons.delete', 'end');
38 38
         });
39 39
     }
Please login to merge, or discard this patch.
src/app/Http/Controllers/Operations/CloneOperation.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,11 +29,11 @@
 block discarded – undo
29 29
     {
30 30
         $this->crud->allowAccess('clone');
31 31
 
32
-        $this->crud->operation('clone', function () {
32
+        $this->crud->operation('clone', function() {
33 33
             $this->crud->loadDefaultOperationSettingsFromConfig();
34 34
         });
35 35
 
36
-        $this->crud->operation(['list', 'show'], function () {
36
+        $this->crud->operation(['list', 'show'], function() {
37 37
             $this->crud->addButton('line', 'clone', 'view', 'crud::buttons.clone', 'end');
38 38
         });
39 39
     }
Please login to merge, or discard this patch.
src/app/Http/Controllers/Operations/ShowOperation.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -30,11 +30,11 @@
 block discarded – undo
30 30
         $this->crud->allowAccess('show');
31 31
         $this->crud->setOperationSetting('setFromDb', true);
32 32
 
33
-        $this->crud->operation('show', function () {
33
+        $this->crud->operation('show', function() {
34 34
             $this->crud->loadDefaultOperationSettingsFromConfig();
35 35
         });
36 36
 
37
-        $this->crud->operation('list', function () {
37
+        $this->crud->operation('list', function() {
38 38
             $this->crud->addButton('line', 'show', 'view', 'crud::buttons.show', 'beginning');
39 39
         });
40 40
     }
Please login to merge, or discard this patch.
src/app/Http/Controllers/Operations/RevisionsOperation.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -36,11 +36,11 @@  discard block
 block discarded – undo
36 36
         // allow access to the operation
37 37
         $this->crud->allowAccess('revisions');
38 38
 
39
-        $this->crud->operation('revisions', function () {
39
+        $this->crud->operation('revisions', function() {
40 40
             $this->crud->loadDefaultOperationSettingsFromConfig();
41 41
         });
42 42
 
43
-        $this->crud->operation(['list', 'show'], function () {
43
+        $this->crud->operation(['list', 'show'], function() {
44 44
             // add a button in the line stack
45 45
             $this->crud->addButton('line', 'revisions', 'view', 'crud::buttons.revisions', 'end');
46 46
         });
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
         $this->crud->hasAccessOrFail('revisions');
89 89
 
90 90
         $revisionId = \Request::input('revision_id', false);
91
-        if (! $revisionId) {
91
+        if (!$revisionId) {
92 92
             abort(500, 'Can\'t restore revision without revision_id');
93 93
         } else {
94 94
             $this->crud->restoreRevision($id, $revisionId); // do the update
Please login to merge, or discard this patch.
src/app/Http/Controllers/Operations/BulkDeleteOperation.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,11 +29,11 @@
 block discarded – undo
29 29
     {
30 30
         $this->crud->allowAccess('bulkDelete');
31 31
 
32
-        $this->crud->operation('bulkDelete', function () {
32
+        $this->crud->operation('bulkDelete', function() {
33 33
             $this->crud->loadDefaultOperationSettingsFromConfig();
34 34
         });
35 35
 
36
-        $this->crud->operation('list', function () {
36
+        $this->crud->operation('list', function() {
37 37
             $this->crud->enableBulkActions();
38 38
             $this->crud->addButton('bottom', 'bulk_delete', 'view', 'crud::buttons.bulk_delete');
39 39
         });
Please login to merge, or discard this patch.