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
Pull Request — master (#136)
by Owen
03:29
created
src/resources/views/columns/array_count.blade.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@
 block discarded – undo
1 1
 {{-- enumerate the values in an array  --}}
2 2
 <td>
3 3
     <?php
4
-    	$array = $entry->{$column['name']};
5
-    	// the value should be an array wether or not attribute casting is used
6
-    	if (!is_array($array)) {
7
-    		$array = json_decode($array, true);
8
-    	}
4
+        $array = $entry->{$column['name']};
5
+        // the value should be an array wether or not attribute casting is used
6
+        if (!is_array($array)) {
7
+            $array = json_decode($array, true);
8
+        }
9 9
         if ($array && count($array)) {
10 10
             echo count($array).' items';
11 11
         } else {
Please login to merge, or discard this patch.
src/resources/views/fields/table.blade.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -3,13 +3,13 @@
 block discarded – undo
3 3
 <?php
4 4
     $max = isset($field['max']) ? $field['max'] : -1;
5 5
     $min = isset($field['min']) ? $field['min'] : -1;
6
-    $item_name = strtolower( isset($field['entity_singular']) && !empty($field['entity_singular']) ? $field['entity_singular'] : $field['label']);
6
+    $item_name = strtolower(isset($field['entity_singular']) && !empty($field['entity_singular']) ? $field['entity_singular'] : $field['label']);
7 7
 
8
-    $items = old($field['name']) ? (old($field['name'])) : (isset($field['value']) ? ($field['value']) : (isset($field['default']) ? ($field['default']) : '' ));
8
+    $items = old($field['name']) ? (old($field['name'])) : (isset($field['value']) ? ($field['value']) : (isset($field['default']) ? ($field['default']) : ''));
9 9
 
10 10
     // make sure not matter the attribute casting
11 11
     // the $items variable contains a properly defined JSON
12
-    if(is_array($items)) {
12
+    if (is_array($items)) {
13 13
         if (count($items)) {
14 14
             $items = json_encode($items);
15 15
         }
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -12,8 +12,7 @@
 block discarded – undo
12 12
     if(is_array($items)) {
13 13
         if (count($items)) {
14 14
             $items = json_encode($items);
15
-        }
16
-        else
15
+        } else
17 16
         {
18 17
             $items = '[]';
19 18
         }
Please login to merge, or discard this patch.
src/app/Http/Controllers/CrudController.php 7 patches
Doc Comments   +1 added lines, -5 removed lines patch added patch discarded remove patch
@@ -353,8 +353,4 @@
 block discarded – undo
353 353
              }
354 354
          }
355 355
 
356
-         return $response;
357
-     }
358
-=======
359
->>>>>>> master
360
-}
356
+         return $response
361 357
\ No newline at end of file
Please login to merge, or discard this patch.
Unused Use Statements   +1 added lines, -5 removed lines patch added patch discarded remove patch
@@ -353,8 +353,4 @@
 block discarded – undo
353 353
              }
354 354
          }
355 355
 
356
-         return $response;
357
-     }
358
-=======
359
->>>>>>> master
360
-}
356
+         return $response
361 357
\ No newline at end of file
Please login to merge, or discard this patch.
Indentation   +1 added lines, -5 removed lines patch added patch discarded remove patch
@@ -353,8 +353,4 @@
 block discarded – undo
353 353
              }
354 354
          }
355 355
 
356
-         return $response;
357
-     }
358
-=======
359
->>>>>>> master
360
-}
356
+         return $response
361 357
\ No newline at end of file
Please login to merge, or discard this patch.
Switch Indentation   +1 added lines, -5 removed lines patch added patch discarded remove patch
@@ -353,8 +353,4 @@
 block discarded – undo
353 353
              }
354 354
          }
355 355
 
356
-         return $response;
357
-     }
358
-=======
359
->>>>>>> master
360
-}
356
+         return $response
361 357
\ No newline at end of file
Please login to merge, or discard this patch.
Spacing   +4 added lines, -8 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
 
30 30
         // call the setup function inside this closure to also have the request there
31 31
         // this way, developers can use things stored in session (auth variables, etc)
32
-        $this->middleware(function ($request, $next) {
32
+        $this->middleware(function($request, $next) {
33 33
             $this->setup();
34 34
 
35 35
             return $next($request);
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
         $this->data['title'] = ucfirst($this->crud->entity_name_plural);
57 57
 
58 58
         // get all entries if AJAX is not enabled
59
-        if (! $this->data['crud']->ajaxTable()) {
59
+        if (!$this->data['crud']->ajaxTable()) {
60 60
             $this->data['entries'] = $this->data['crud']->getEntries();
61 61
         }
62 62
 
@@ -211,7 +211,7 @@  discard block
 block discarded – undo
211 211
 
212 212
         return $this->crud->delete($id);
213 213
     }
214
-<<<<<<< HEAD
214
+<< << <<< HEAD
215 215
 
216 216
     /**
217 217
      *  Reorder the items in the database using the Nested Set pattern.
@@ -353,8 +353,4 @@  discard block
 block discarded – undo
353 353
              }
354 354
          }
355 355
 
356
-         return $response;
357
-     }
358
-=======
359
->>>>>>> master
360
-}
356
+         return $response
361 357
\ No newline at end of file
Please login to merge, or discard this patch.
Braces   +1 added lines, -5 removed lines patch added patch discarded remove patch
@@ -353,8 +353,4 @@
 block discarded – undo
353 353
              }
354 354
          }
355 355
 
356
-         return $response;
357
-     }
358
-=======
359
->>>>>>> master
360
-}
356
+         return $response
361 357
\ No newline at end of file
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -5 removed lines patch added patch discarded remove patch
@@ -353,8 +353,4 @@
 block discarded – undo
353 353
              }
354 354
          }
355 355
 
356
-         return $response;
357
-     }
358
-=======
359
->>>>>>> master
360
-}
356
+         return $response
361 357
\ No newline at end of file
Please login to merge, or discard this patch.
src/resources/lang/en/crud.php 7 patches
Doc Comments   -12 removed lines patch added patch discarded remove patch
@@ -110,15 +110,3 @@
 block discarded – undo
110 110
     'choose_file' => 'Choose file',
111 111
 
112 112
 <<<<<<< HEAD
113
-    //Unique Fields
114
-    'unique_error' => 'Sorry something went wrong, please check your configuration and try again',
115
-    'unique_field_name_missing' => 'field_name is missing from unicity check',
116
-    'unique_check_value_missing' => 'check_value is missing from unicity check',
117
-    'unique_exists' => 'already exists',
118
-=======
119
-    //Table field
120
-    'table_cant_add' => 'Cannot add new :entity',
121
-    'table_max_reached' => 'Maximum number of :max reached',
122
-
123
->>>>>>> master
124
-];
Please login to merge, or discard this patch.
Unused Use Statements   -12 removed lines patch added patch discarded remove patch
@@ -110,15 +110,3 @@
 block discarded – undo
110 110
     'choose_file' => 'Choose file',
111 111
 
112 112
 <<<<<<< HEAD
113
-    //Unique Fields
114
-    'unique_error' => 'Sorry something went wrong, please check your configuration and try again',
115
-    'unique_field_name_missing' => 'field_name is missing from unicity check',
116
-    'unique_check_value_missing' => 'check_value is missing from unicity check',
117
-    'unique_exists' => 'already exists',
118
-=======
119
-    //Table field
120
-    'table_cant_add' => 'Cannot add new :entity',
121
-    'table_max_reached' => 'Maximum number of :max reached',
122
-
123
->>>>>>> master
124
-];
Please login to merge, or discard this patch.
Indentation   -12 removed lines patch added patch discarded remove patch
@@ -110,15 +110,3 @@
 block discarded – undo
110 110
     'choose_file' => 'Choose file',
111 111
 
112 112
 <<<<<<< HEAD
113
-    //Unique Fields
114
-    'unique_error' => 'Sorry something went wrong, please check your configuration and try again',
115
-    'unique_field_name_missing' => 'field_name is missing from unicity check',
116
-    'unique_check_value_missing' => 'check_value is missing from unicity check',
117
-    'unique_exists' => 'already exists',
118
-=======
119
-    //Table field
120
-    'table_cant_add' => 'Cannot add new :entity',
121
-    'table_max_reached' => 'Maximum number of :max reached',
122
-
123
->>>>>>> master
124
-];
Please login to merge, or discard this patch.
Switch Indentation   -12 removed lines patch added patch discarded remove patch
@@ -110,15 +110,3 @@
 block discarded – undo
110 110
     'choose_file' => 'Choose file',
111 111
 
112 112
 <<<<<<< HEAD
113
-    //Unique Fields
114
-    'unique_error' => 'Sorry something went wrong, please check your configuration and try again',
115
-    'unique_field_name_missing' => 'field_name is missing from unicity check',
116
-    'unique_check_value_missing' => 'check_value is missing from unicity check',
117
-    'unique_exists' => 'already exists',
118
-=======
119
-    //Table field
120
-    'table_cant_add' => 'Cannot add new :entity',
121
-    'table_max_reached' => 'Maximum number of :max reached',
122
-
123
->>>>>>> master
124
-];
Please login to merge, or discard this patch.
Spacing   +1 added lines, -13 removed lines patch added patch discarded remove patch
@@ -109,16 +109,4 @@
 block discarded – undo
109 109
     'external_link' => 'External link',
110 110
     'choose_file' => 'Choose file',
111 111
 
112
-<<<<<<< HEAD
113
-    //Unique Fields
114
-    'unique_error' => 'Sorry something went wrong, please check your configuration and try again',
115
-    'unique_field_name_missing' => 'field_name is missing from unicity check',
116
-    'unique_check_value_missing' => 'check_value is missing from unicity check',
117
-    'unique_exists' => 'already exists',
118
-=======
119
-    //Table field
120
-    'table_cant_add' => 'Cannot add new :entity',
121
-    'table_max_reached' => 'Maximum number of :max reached',
122
-
123
->>>>>>> master
124
-];
112
+<< << <<< HEAD
Please login to merge, or discard this patch.
Braces   -12 removed lines patch added patch discarded remove patch
@@ -110,15 +110,3 @@
 block discarded – undo
110 110
     'choose_file' => 'Choose file',
111 111
 
112 112
 <<<<<<< HEAD
113
-    //Unique Fields
114
-    'unique_error' => 'Sorry something went wrong, please check your configuration and try again',
115
-    'unique_field_name_missing' => 'field_name is missing from unicity check',
116
-    'unique_check_value_missing' => 'check_value is missing from unicity check',
117
-    'unique_exists' => 'already exists',
118
-=======
119
-    //Table field
120
-    'table_cant_add' => 'Cannot add new :entity',
121
-    'table_max_reached' => 'Maximum number of :max reached',
122
-
123
->>>>>>> master
124
-];
Please login to merge, or discard this patch.
Upper-Lower-Casing   -12 removed lines patch added patch discarded remove patch
@@ -110,15 +110,3 @@
 block discarded – undo
110 110
     'choose_file' => 'Choose file',
111 111
 
112 112
 <<<<<<< HEAD
113
-    //Unique Fields
114
-    'unique_error' => 'Sorry something went wrong, please check your configuration and try again',
115
-    'unique_field_name_missing' => 'field_name is missing from unicity check',
116
-    'unique_check_value_missing' => 'check_value is missing from unicity check',
117
-    'unique_exists' => 'already exists',
118
-=======
119
-    //Table field
120
-    'table_cant_add' => 'Cannot add new :entity',
121
-    'table_max_reached' => 'Maximum number of :max reached',
122
-
123
->>>>>>> master
124
-];
Please login to merge, or discard this patch.