-
-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #21 from lara-zeus/analysis-MPw03l
Apply fixes from StyleCI
- Loading branch information
Showing
18 changed files
with
73 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,7 +41,7 @@ public function run() | |
'itemIsDefault' => false, | ||
], | ||
], JSON_THROW_ON_ERROR), | ||
'created_at' => now() | ||
'created_at' => now(), | ||
]); | ||
$collection_2 = DB::table('collections')->insertGetId([ | ||
'name' => 'yes no maybe list', | ||
|
@@ -62,14 +62,14 @@ public function run() | |
'itemIsDefault' => false, | ||
], | ||
], JSON_THROW_ON_ERROR), | ||
'created_at' => now() | ||
'created_at' => now(), | ||
]); | ||
|
||
$category = DB::table('categories')->insertGetId([ | ||
'name' => json_encode(['en' => 'General Forms', 'ar' => 'النماذج العامة'], JSON_THROW_ON_ERROR), | ||
'desc' => json_encode(['en' => 'all other Forms', 'ar' => 'كافة النماذج'], JSON_THROW_ON_ERROR), | ||
'slug' => 'general-forms', | ||
'created_at' => now() | ||
'created_at' => now(), | ||
]); | ||
|
||
$form = DB::table('forms')->insertGetId([ | ||
|
@@ -91,18 +91,18 @@ public function run() | |
'is_active' => 1, | ||
'desc' => json_encode(['en' => 'send us your Feedback about our service', 'ar' => 'شاركنا تقييمك على خدماتنا'], JSON_THROW_ON_ERROR), | ||
'details' => json_encode(['en' => 'please use the same email address you used on registration, so we can add points to your account', 'ar' => 'الرجاء استخدام نفس البريد الإلكتروني المستخدم في التسجيل لاضافة النقاط لحسابك'], JSON_THROW_ON_ERROR), | ||
'created_at' => now() | ||
'created_at' => now(), | ||
]); | ||
|
||
$section1 = DB::table('sections')->insertGetId([ | ||
'name' => json_encode(['en' => 'your info', 'ar' => 'بياناتك الشخصية'], JSON_THROW_ON_ERROR), | ||
'form_id' => $form, | ||
'created_at' => now() | ||
'created_at' => now(), | ||
]); | ||
$section2 = DB::table('sections')->insertGetId([ | ||
'name' => json_encode(['en' => 'feedback', 'ar' => 'التقييم'], JSON_THROW_ON_ERROR), | ||
'form_id' => $form, | ||
'created_at' => now() | ||
'created_at' => now(), | ||
]); | ||
|
||
$section1_field_1 = DB::table('fields')->insertGetId([ | ||
|
@@ -114,7 +114,7 @@ public function run() | |
'is_required' => true, | ||
], JSON_THROW_ON_ERROR), | ||
'type' => '\LaraZeus\Bolt\Fields\Classes\TextInput', | ||
'created_at' => now() | ||
'created_at' => now(), | ||
]); | ||
$section1_field_2 = DB::table('fields')->insertGetId([ | ||
'name' => json_encode(['en' => 'your Email', 'ar' => 'البريد الإلكتروني'], JSON_THROW_ON_ERROR), | ||
|
@@ -125,7 +125,7 @@ public function run() | |
'is_required' => true, | ||
], JSON_THROW_ON_ERROR), | ||
'type' => '\LaraZeus\Bolt\Fields\Classes\TextInput', | ||
'created_at' => now() | ||
'created_at' => now(), | ||
]); | ||
$section2_field_1 = DB::table('fields')->insertGetId([ | ||
'name' => json_encode(['en' => 'rate your experience', 'ar' => 'تقييم تجربتك معنا'], JSON_THROW_ON_ERROR), | ||
|
@@ -137,7 +137,7 @@ public function run() | |
'is_inline' => true, | ||
], JSON_THROW_ON_ERROR), | ||
'type' => '\LaraZeus\Bolt\Fields\Classes\Radio', | ||
'created_at' => now() | ||
'created_at' => now(), | ||
]); | ||
$section2_field_2 = DB::table('fields')->insertGetId([ | ||
'name' => json_encode(['en' => 'would you recommend our services to others', 'ar' => 'هل تنصح الآخرين باستخدام خدماتنا'], JSON_THROW_ON_ERROR), | ||
|
@@ -148,81 +148,81 @@ public function run() | |
'is_required' => true, | ||
], JSON_THROW_ON_ERROR), | ||
'type' => '\LaraZeus\Bolt\Fields\Classes\Select', | ||
'created_at' => now() | ||
'created_at' => now(), | ||
]); | ||
|
||
$response_1 = DB::table('responses')->insertGetId([ | ||
'form_id' => $form, | ||
'user_id' => null, | ||
'status' => 'NEW', | ||
'notes' => null, | ||
'created_at' => now() | ||
'created_at' => now(), | ||
]); | ||
|
||
$response_1_field_1 = DB::table('field_responses')->insertGetId([ | ||
'form_id' => $form, | ||
'field_id' => $section1_field_1, | ||
'response_id' => $response_1, | ||
'response' => 'My First Name', | ||
'created_at' => now() | ||
'created_at' => now(), | ||
]); | ||
$response_1_field_2 = DB::table('field_responses')->insertGetId([ | ||
'form_id' => $form, | ||
'field_id' => $section1_field_2, | ||
'response_id' => $response_1, | ||
'response' => '[email protected]', | ||
'created_at' => now() | ||
'created_at' => now(), | ||
]); | ||
$response_1_field_3 = DB::table('field_responses')->insertGetId([ | ||
'form_id' => $form, | ||
'field_id' => $section2_field_1, | ||
'response_id' => $response_1, | ||
'response' => '2', | ||
'created_at' => now() | ||
'created_at' => now(), | ||
]); | ||
$response_1_field_4 = DB::table('field_responses')->insertGetId([ | ||
'form_id' => $form, | ||
'field_id' => $section2_field_2, | ||
'response_id' => $response_1, | ||
'response' => 'Maybe', | ||
'created_at' => now() | ||
'created_at' => now(), | ||
]); | ||
|
||
$response_2 = DB::table('responses')->insertGetId([ | ||
'form_id' => $form, | ||
'user_id' => 2, | ||
'status' => 'NEW', | ||
'notes' => null, | ||
'created_at' => now() | ||
'created_at' => now(), | ||
]); | ||
|
||
$response_2_field_1 = DB::table('field_responses')->insertGetId([ | ||
'form_id' => $form, | ||
'field_id' => $section1_field_1, | ||
'response_id' => $response_2, | ||
'response' => 'My First Name', | ||
'created_at' => now() | ||
'created_at' => now(), | ||
]); | ||
$response_2_field_2 = DB::table('field_responses')->insertGetId([ | ||
'form_id' => $form, | ||
'field_id' => $section1_field_2, | ||
'response_id' => $response_2, | ||
'response' => '[email protected]', | ||
'created_at' => now() | ||
'created_at' => now(), | ||
]); | ||
$response_2_field_3 = DB::table('field_responses')->insertGetId([ | ||
'form_id' => $form, | ||
'field_id' => $section2_field_1, | ||
'response_id' => $response_2, | ||
'response' => '2', | ||
'created_at' => now() | ||
'created_at' => now(), | ||
]); | ||
$response_2_field_4 = DB::table('field_responses')->insertGetId([ | ||
'form_id' => $form, | ||
'field_id' => $section2_field_2, | ||
'response_id' => $response_2, | ||
'response' => 'maybe', | ||
'created_at' => now() | ||
'created_at' => now(), | ||
]); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.