We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -167,18 +167,18 @@ |
||
| 167 | 167 | { |
| 168 | 168 | foreach ($modifications as $key => $newValue) { |
| 169 | 169 | switch (strtolower($form)) { |
| 170 | - case 'create': |
|
| 170 | + case 'create': |
|
| 171 | 171 | $this->create_fields[$field][$key] = $newValue; |
| 172 | - break; |
|
| 172 | + break; |
|
| 173 | 173 | |
| 174 | - case 'update': |
|
| 174 | + case 'update': |
|
| 175 | 175 | $this->update_fields[$field][$key] = $newValue; |
| 176 | - break; |
|
| 176 | + break; |
|
| 177 | 177 | |
| 178 | - default: |
|
| 178 | + default: |
|
| 179 | 179 | $this->create_fields[$field][$key] = $newValue; |
| 180 | - $this->update_fields[$field][$key] = $newValue; |
|
| 181 | - break; |
|
| 180 | + $this->update_fields[$field][$key] = $newValue; |
|
| 181 | + break; |
|
| 182 | 182 | } |
| 183 | 183 | } |
| 184 | 184 | } |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | | |
| 14 | 14 | */ |
| 15 | 15 | |
| 16 | - return [ |
|
| 16 | + return [ |
|
| 17 | 17 | 'infoFiltered' => '(filtered from _MAX_ total entries)', |
| 18 | 18 | 'thousands' => ',', |
| 19 | 19 | 'admin' => 'المشرف', |
@@ -119,10 +119,10 @@ |
||
| 119 | 119 | // add the details_row button to the first column |
| 120 | 120 | if ($this->details_row) { |
| 121 | 121 | $details_row_button = \View::make('crud::columns.details_row_button') |
| 122 | - ->with('crud', $this) |
|
| 123 | - ->with('entry', $entry) |
|
| 124 | - ->with('row_number', $rowNumber) |
|
| 125 | - ->render(); |
|
| 122 | + ->with('crud', $this) |
|
| 123 | + ->with('entry', $entry) |
|
| 124 | + ->with('row_number', $rowNumber) |
|
| 125 | + ->render(); |
|
| 126 | 126 | $row_items[0] = $details_row_button.$row_items[0]; |
| 127 | 127 | } |
| 128 | 128 | |
@@ -22,36 +22,36 @@ |
||
| 22 | 22 | } |
| 23 | 23 | } |
| 24 | 24 | |
| 25 | - //for update form, get initial state of the entity |
|
| 26 | - if (isset($id) && $id) { |
|
| 25 | + //for update form, get initial state of the entity |
|
| 26 | + if (isset($id) && $id) { |
|
| 27 | 27 | |
| 28 | 28 | //get entity with relations for primary dependency |
| 29 | - $entity_dependencies = $entity_model->with($primary_dependency['entity']) |
|
| 30 | - ->with($primary_dependency['entity'].'.'.$primary_dependency['entity_secondary']) |
|
| 31 | - ->find($id); |
|
| 29 | + $entity_dependencies = $entity_model->with($primary_dependency['entity']) |
|
| 30 | + ->with($primary_dependency['entity'].'.'.$primary_dependency['entity_secondary']) |
|
| 31 | + ->find($id); |
|
| 32 | 32 | |
| 33 | - $secondaries_from_primary = []; |
|
| 33 | + $secondaries_from_primary = []; |
|
| 34 | 34 | |
| 35 | - //convert relation in array |
|
| 36 | - $primary_array = $entity_dependencies->{$primary_dependency['entity']}->toArray(); |
|
| 35 | + //convert relation in array |
|
| 36 | + $primary_array = $entity_dependencies->{$primary_dependency['entity']}->toArray(); |
|
| 37 | 37 | |
| 38 | - $secondary_ids = []; |
|
| 38 | + $secondary_ids = []; |
|
| 39 | 39 | |
| 40 | - //create secondary dependency from primary relation, used to check what chekbox must be check from second checklist |
|
| 41 | - if (old($primary_dependency['name'])) { |
|
| 42 | - foreach (old($primary_dependency['name']) as $primary_item) { |
|
| 43 | - foreach ($dependencyArray[$primary_item] as $second_item) { |
|
| 44 | - $secondary_ids[$second_item] = $second_item; |
|
| 45 | - } |
|
| 46 | - } |
|
| 47 | - } else { //create dependecies from relation if not from validate error |
|
| 48 | - foreach ($primary_array as $primary_item) { |
|
| 49 | - foreach ($primary_item[$secondary_dependency['entity']] as $second_item) { |
|
| 50 | - $secondary_ids[$second_item['id']] = $second_item['id']; |
|
| 51 | - } |
|
| 52 | - } |
|
| 53 | - } |
|
| 54 | - } |
|
| 40 | + //create secondary dependency from primary relation, used to check what chekbox must be check from second checklist |
|
| 41 | + if (old($primary_dependency['name'])) { |
|
| 42 | + foreach (old($primary_dependency['name']) as $primary_item) { |
|
| 43 | + foreach ($dependencyArray[$primary_item] as $second_item) { |
|
| 44 | + $secondary_ids[$second_item] = $second_item; |
|
| 45 | + } |
|
| 46 | + } |
|
| 47 | + } else { //create dependecies from relation if not from validate error |
|
| 48 | + foreach ($primary_array as $primary_item) { |
|
| 49 | + foreach ($primary_item[$secondary_dependency['entity']] as $second_item) { |
|
| 50 | + $secondary_ids[$second_item['id']] = $second_item['id']; |
|
| 51 | + } |
|
| 52 | + } |
|
| 53 | + } |
|
| 54 | + } |
|
| 55 | 55 | |
| 56 | 56 | //json encode of dependency matrix |
| 57 | 57 | $dependencyJson = json_encode($dependencyArray); |