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 (#6)
by Cristian
02:27
created
src/CrudTrait.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -13,14 +13,14 @@  discard block
 block discarded – undo
13 13
     |--------------------------------------------------------------------------
14 14
     */
15 15
 
16
-    public static function getPossibleEnumValues($field_name){
16
+    public static function getPossibleEnumValues($field_name) {
17 17
         $instance = new static; // create an instance of the model to be able to get the table name
18
-        $type = DB::select( DB::raw('SHOW COLUMNS FROM '.$instance->getTable().' WHERE Field = "'.$field_name.'"') )[0]->Type;
18
+        $type = DB::select(DB::raw('SHOW COLUMNS FROM '.$instance->getTable().' WHERE Field = "'.$field_name.'"'))[0]->Type;
19 19
         preg_match('/^enum\((.*)\)$/', $type, $matches);
20 20
         $enum = array();
21 21
         $exploded = explode(',', $matches[1]);
22
-        foreach($exploded as $value){
23
-            $v = trim( $value, "'" );
22
+        foreach ($exploded as $value) {
23
+            $v = trim($value, "'");
24 24
             $enum[] = $v;
25 25
         }
26 26
         return $enum;
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
 
123 123
             // get all translations from the original
124 124
             $translationsOfOriginal = $model::where('translation_of', $original->id)->get();
125
-            foreach($translationsOfOriginal as $translation) {
125
+            foreach ($translationsOfOriginal as $translation) {
126 126
                 $all_translations->push($translation);
127 127
             }
128 128
         } else {
Please login to merge, or discard this patch.