We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -93,7 +93,7 @@ discard block |
||
93 | 93 | //check if column exists in database |
94 | 94 | $conn->getDoctrineColumn($table, $column_name); |
95 | 95 | |
96 | - return ! $conn->getDoctrineColumn($table, $column_name)->getNotnull(); |
|
96 | + return !$conn->getDoctrineColumn($table, $column_name)->getNotnull(); |
|
97 | 97 | } catch (Exception $e) { |
98 | 98 | return true; |
99 | 99 | } |
@@ -113,7 +113,7 @@ discard block |
||
113 | 113 | public function addFakes($columns = ['extras']) |
114 | 114 | { |
115 | 115 | foreach ($columns as $key => $column) { |
116 | - if (! isset($this->attributes[$column])) { |
|
116 | + if (!isset($this->attributes[$column])) { |
|
117 | 117 | continue; |
118 | 118 | } |
119 | 119 | |
@@ -162,7 +162,7 @@ discard block |
||
162 | 162 | */ |
163 | 163 | public function shouldDecodeFake($column) |
164 | 164 | { |
165 | - return ! in_array($column, array_keys($this->casts)); |
|
165 | + return !in_array($column, array_keys($this->casts)); |
|
166 | 166 | } |
167 | 167 | |
168 | 168 | /** |
@@ -174,7 +174,7 @@ discard block |
||
174 | 174 | */ |
175 | 175 | public function shouldEncodeFake($column) |
176 | 176 | { |
177 | - return ! in_array($column, array_keys($this->casts)); |
|
177 | + return !in_array($column, array_keys($this->casts)); |
|
178 | 178 | } |
179 | 179 | |
180 | 180 | /* |
@@ -248,7 +248,7 @@ discard block |
||
248 | 248 | public function uploadMultipleFilesToDisk($value, $attribute_name, $disk, $destination_path) |
249 | 249 | { |
250 | 250 | $request = \Request::instance(); |
251 | - if (! is_array($this->{$attribute_name})) { |
|
251 | + if (!is_array($this->{$attribute_name})) { |
|
252 | 252 | $attribute_value = json_decode($this->{$attribute_name}, true) ?? []; |
253 | 253 | } else { |
254 | 254 | $attribute_value = $this->{$attribute_name}; |
@@ -260,7 +260,7 @@ discard block |
||
260 | 260 | if ($files_to_clear) { |
261 | 261 | foreach ($files_to_clear as $key => $filename) { |
262 | 262 | \Storage::disk($disk)->delete($filename); |
263 | - $attribute_value = array_where($attribute_value, function ($value, $key) use ($filename) { |
|
263 | + $attribute_value = array_where($attribute_value, function($value, $key) use ($filename) { |
|
264 | 264 | return $value != $filename; |
265 | 265 | }); |
266 | 266 | } |
@@ -362,7 +362,7 @@ discard block |
||
362 | 362 | |
363 | 363 | //if non of the sensible defaults exists we get the first column from database that is not indexed (usually primary, foreign keys). |
364 | 364 | foreach ($columns as $columnName => $columnProperties) { |
365 | - if (! in_array($columnName, $indexedColumns)) { |
|
365 | + if (!in_array($columnName, $indexedColumns)) { |
|
366 | 366 | |
367 | 367 | //check for convention "field<_id>" in case developer didn't add foreign key constraints. |
368 | 368 | if (strpos($columnName, '_id') !== false) { |
@@ -98,7 +98,7 @@ |
||
98 | 98 | foreach ($whereToSearch as $searchColumn) { |
99 | 99 | $columnType = $conn->getSchemaBuilder()->getColumnType($table, $searchColumn); |
100 | 100 | |
101 | - $operation = ! isset($isFirst) ? 'where' : 'orWhere'; |
|
101 | + $operation = !isset($isFirst) ? 'where' : 'orWhere'; |
|
102 | 102 | |
103 | 103 | if ($columnType == 'string') { |
104 | 104 | $instance->{$operation}($searchColumn, 'LIKE', '%'.$search_term.'%'); |
@@ -58,56 +58,56 @@ |
||
58 | 58 | 'clone' => 'استنساخ', |
59 | 59 | 'clone_success' => '<strong>تم إستنساخ العنصر</strong><br>تم إضافة عنصر جديد بنفس معلومات هذا العنصر.', |
60 | 60 | 'clone_failure' => '<strong>حدث خطأ</strong><br>لم يتم استنساخ العنصر. الرجاء اعادة المحاولة.', |
61 | - 'loadingRecords' => 'جار التحميل...', |
|
62 | - 'infoPostFix' => 'جميع السجلات', |
|
63 | - 'details_row_loading_error' => 'حدث خطأ أثناء تحميل التفاصيل. الرجاء اعادة المحاولة.', |
|
64 | - 'delete_confirmation_not_message' => 'حدث خطأ. ربما لم يتم حذف العنصر.', |
|
65 | - 'guest_user' => 'حساب زائر', |
|
66 | - 'save' => 'حفظ', |
|
67 | - 'save_action_save_and_edit' => 'حفظ هذا العنصر وتعديله', |
|
68 | - 'save_action_save_and_back' => 'حفظ و رجوع', |
|
69 | - 'save_action_save_and_new' => 'حفظ وعنصر جديد', |
|
70 | - 'reorder_error_title' => 'خطأ', |
|
71 | - 'page_link' => 'رابط الصفحة', |
|
72 | - 'external_link' => 'رابط خارجي', |
|
73 | - 'internal_link' => 'رابط داخلي', |
|
74 | - 'preview' => 'عرض', |
|
75 | - 'back_to_all' => 'عودة', |
|
76 | - 'changed_the' => 'غيرت', |
|
77 | - 'in_the_database' => 'في قاعدة البيانات', |
|
78 | - 'list' => 'قائمة', |
|
79 | - 'all' => 'كل', |
|
80 | - 'no' => 'لا', |
|
81 | - 'emptyTable' => 'لا تتوفر بيانات في الجدول', |
|
82 | - 'no_revisions' => 'لا توجد مراجعات', |
|
83 | - 'language' => 'لغة', |
|
84 | - 'delete_confirmation_not_title' => 'لم يتم الحذف', |
|
85 | - 'delete_confirmation_not_deleted_title' => 'لم يتم الحذف', |
|
86 | - 'delete_confirmation_not_deleted_message' => 'لم يحدث شيء. البند الخاص بك هو آمن.', |
|
87 | - 'file_manager' => 'مدير الملفات', |
|
88 | - 'revisions' => 'مراجعات', |
|
89 | - 'delete' => 'مسح', |
|
90 | - 'processing' => 'معالجة...', |
|
91 | - 'from' => 'من', |
|
92 | - 'yes' => 'نعم', |
|
93 | - 'delete_confirm' => 'هل أنت متأكد أنك تريد حذف هذا العنصر؟', |
|
94 | - 'please_fix' => 'يرجى تصحيح الأخطاء التالية:', |
|
95 | - 'aria' => [ |
|
96 | - 'sortAscending' => ': تفعيل لفرز العمود تصاعدي', |
|
97 | - 'sortDescending' => ': تفعيل لفرز العمود تنازلي', |
|
98 | - ], |
|
99 | - 'paginate' => [ |
|
100 | - 'first' => 'الأول', |
|
101 | - 'last' => 'الاخير', |
|
102 | - 'next' => 'التالى', |
|
103 | - 'previous' => 'السابق', |
|
104 | - ], |
|
105 | - 'export' => [ |
|
106 | - 'copy' => 'نسخ', |
|
107 | - 'excel' => 'Excel', |
|
108 | - 'csv' => 'CSV', |
|
109 | - 'pdf' => 'PDF', |
|
110 | - 'print' => 'طباعة', |
|
111 | - 'column_visibility' => 'رؤية العمود', |
|
112 | - ], |
|
113 | - ]; |
|
61 | + 'loadingRecords' => 'جار التحميل...', |
|
62 | + 'infoPostFix' => 'جميع السجلات', |
|
63 | + 'details_row_loading_error' => 'حدث خطأ أثناء تحميل التفاصيل. الرجاء اعادة المحاولة.', |
|
64 | + 'delete_confirmation_not_message' => 'حدث خطأ. ربما لم يتم حذف العنصر.', |
|
65 | + 'guest_user' => 'حساب زائر', |
|
66 | + 'save' => 'حفظ', |
|
67 | + 'save_action_save_and_edit' => 'حفظ هذا العنصر وتعديله', |
|
68 | + 'save_action_save_and_back' => 'حفظ و رجوع', |
|
69 | + 'save_action_save_and_new' => 'حفظ وعنصر جديد', |
|
70 | + 'reorder_error_title' => 'خطأ', |
|
71 | + 'page_link' => 'رابط الصفحة', |
|
72 | + 'external_link' => 'رابط خارجي', |
|
73 | + 'internal_link' => 'رابط داخلي', |
|
74 | + 'preview' => 'عرض', |
|
75 | + 'back_to_all' => 'عودة', |
|
76 | + 'changed_the' => 'غيرت', |
|
77 | + 'in_the_database' => 'في قاعدة البيانات', |
|
78 | + 'list' => 'قائمة', |
|
79 | + 'all' => 'كل', |
|
80 | + 'no' => 'لا', |
|
81 | + 'emptyTable' => 'لا تتوفر بيانات في الجدول', |
|
82 | + 'no_revisions' => 'لا توجد مراجعات', |
|
83 | + 'language' => 'لغة', |
|
84 | + 'delete_confirmation_not_title' => 'لم يتم الحذف', |
|
85 | + 'delete_confirmation_not_deleted_title' => 'لم يتم الحذف', |
|
86 | + 'delete_confirmation_not_deleted_message' => 'لم يحدث شيء. البند الخاص بك هو آمن.', |
|
87 | + 'file_manager' => 'مدير الملفات', |
|
88 | + 'revisions' => 'مراجعات', |
|
89 | + 'delete' => 'مسح', |
|
90 | + 'processing' => 'معالجة...', |
|
91 | + 'from' => 'من', |
|
92 | + 'yes' => 'نعم', |
|
93 | + 'delete_confirm' => 'هل أنت متأكد أنك تريد حذف هذا العنصر؟', |
|
94 | + 'please_fix' => 'يرجى تصحيح الأخطاء التالية:', |
|
95 | + 'aria' => [ |
|
96 | + 'sortAscending' => ': تفعيل لفرز العمود تصاعدي', |
|
97 | + 'sortDescending' => ': تفعيل لفرز العمود تنازلي', |
|
98 | + ], |
|
99 | + 'paginate' => [ |
|
100 | + 'first' => 'الأول', |
|
101 | + 'last' => 'الاخير', |
|
102 | + 'next' => 'التالى', |
|
103 | + 'previous' => 'السابق', |
|
104 | + ], |
|
105 | + 'export' => [ |
|
106 | + 'copy' => 'نسخ', |
|
107 | + 'excel' => 'Excel', |
|
108 | + 'csv' => 'CSV', |
|
109 | + 'pdf' => 'PDF', |
|
110 | + 'print' => 'طباعة', |
|
111 | + 'column_visibility' => 'رؤية العمود', |
|
112 | + ], |
|
113 | + ]; |