fix spacing
authorSteve Sutton <steve@gaslightmedia.com>
Fri, 19 Dec 2014 15:40:53 +0000 (10:40 -0500)
committerSteve Sutton <steve@gaslightmedia.com>
Fri, 19 Dec 2014 15:40:53 +0000 (10:40 -0500)
aligning array elements in code

config/settings2.php

index 07b366d..a6b08a1 100644 (file)
@@ -3,44 +3,44 @@ $date_of_birth = [
     'type'  => 'text',
     'name'  => 'date_of_birth',
     'label' => 'Date of Birth',
-    'grid' => 2,
+    'grid'  => 2,
     'req'   => true
 ];
 $date_of_birth_explain = [
     'type'  => 'static',
     'value' => '<div class="static">The U.S. Department of Transportation requires that driver '
     . 'applicants state their date of birth &sect;391.21(b)(2).</div>',
-    'grid' => 10
+    'grid'  => 10
 ];
 $stateHdr = [
     'type'  => 'static',
     'label' => 'State',
-    'grid' => 1,
+    'grid'  => 1,
     'req'   => true,
     'rcoll' => true
 ];
 $licenseHdr = [
     'type'  => 'static',
     'label' => 'License No.',
-    'grid' => 4,
+    'grid'  => 4,
     'req'   => true
 ];
 $classHdr = [
     'type'  => 'static',
     'label' => 'Class',
-    'grid' => 1,
+    'grid'  => 1,
     'req'   => true
 ];
 $endorsementHdr = [
     'type'  => 'static',
     'label' => 'Endorsement(s)',
-    'grid' => 4,
+    'grid'  => 4,
     'req'   => true
 ];
 $exp_dateHdr = [
     'type'  => 'static',
     'label' => 'Expiration Date',
-    'grid' => 2,
+    'grid'  => 2,
     'req'   => true
 ];
 for ($i = 1; $i <= 4; ++$i) {
@@ -49,7 +49,7 @@ for ($i = 1; $i <= 4; ++$i) {
         'type'  => 'text',
         'name'  => 'state' . $i,
         'label' => '',
-        'grid' => 1,
+        'grid'  => 1,
         'req'   => $licenseReq,
         'rcoll' => true
     ];
@@ -57,28 +57,28 @@ for ($i = 1; $i <= 4; ++$i) {
         'type'  => 'text',
         'name'  => 'license' . $i,
         'label' => '',
-        'grid' => 4,
+        'grid'  => 4,
         'req'   => $licenseReq
     ];
     ${'class'.$i} = [
         'type'  => 'text',
         'name'  => 'class' . $i,
         'label' => '',
-        'grid' => 1,
+        'grid'  => 1,
         'req'   => $licenseReq
     ];
     ${'endorsement'.$i} = [
         'type'  => 'text',
         'name'  => 'endorsement' . $i,
         'label' => '',
-        'grid' => 4,
+        'grid'  => 4,
         'req'   => $licenseReq
     ];
     ${'exp_date'.$i} = [
         'type'  => 'text',
         'name'  => 'exp_date' . $i,
         'label' => '',
-        'grid' => 2,
+        'grid'  => 2,
         'req'   => $licenseReq
     ];
 }
@@ -87,7 +87,7 @@ $denied_license = [
     'name'  => 'denied_license',
     'label' => 'A. Have you ever been denied a license, permit or privilege to'
     . ' operate a motor vehicle?',
-    'grid' => 4,
+    'grid'  => 4,
     'req'   => true,
     'opts'  => [[
         'name'  => 'denied_license_yes',
@@ -102,7 +102,7 @@ $suspended_license = [
     'type'  => 'radio',
     'name'  => 'suspended_license',
     'label' => 'B. Has any license, permit or privilege ever been suspended or revoked?',
-    'grid' => 4,
+    'grid'  => 4,
     'req'   => true,
     'opts'  => [[
         'name'  => 'suspended_license_yes',
@@ -118,7 +118,7 @@ $disqualified_license = [
     'name'  => 'disqualified_license',
     'label' => 'C. Have you ever been disqualified for violations of the Federal'
     . ' Motor Carrier Safety Regulations?',
-    'grid' => 4,
+    'grid'  => 4,
     'req'   => true,
     'opts'  => [[
         'name'  => 'disqualified_license_yes',
@@ -133,7 +133,7 @@ $details_of_license = [
     'type'  => 'textarea',
     'name'  => 'details_of_license',
     'label' => 'If you answered "yes" to A, B, C, give details',
-    'grid' => 12
+    'grid'  => 12
 ];
 $titles = [
     1 => 'Straight Truck',
@@ -144,32 +144,32 @@ $titles = [
 $eq_classHdr = [
     'type'  => 'static',
     'label' => 'Class of Equipment',
-    'grid' => 3,
+    'grid'  => 3,
     'req'   => false,
     'rcoll' => true
 ];
 $eq_typeHdr = [
     'type'  => 'static',
     'label' => 'Type of Equipment (Van, Tank, Flat, etc.)',
-    'grid' => 4,
+    'grid'  => 4,
     'req'   => false
 ];
 $eq_dates_fromHdr = [
     'type'  => 'static',
     'label' => 'From',
-    'grid' => 1,
+    'grid'  => 1,
     'req'   => false
 ];
 $eq_dates_toHdr = [
     'type'  => 'static',
     'label' => 'To',
-    'grid' => 1,
+    'grid'  => 1,
     'req'   => false
 ];
 $eq_approx_milesHdr = [
     'type'  => 'static',
     'label' => 'Approximate total Miles',
-    'grid' => 3,
+    'grid'  => 3,
     'req'   => false
 ];
 for ($i = 1; $i <= 4; ++$i) {
@@ -177,35 +177,35 @@ for ($i = 1; $i <= 4; ++$i) {
         'type'  => 'static',
         'label' => '',
         'value' => '<div class="static">'.$titles[$i].'</div>',
-        'grid' => 3,
+        'grid'  => 3,
         'rcoll' => true
     ];
     ${'eq_type'.$i} = [
         'type'  => 'text',
         'name'  => 'eq_type' . $i,
         'label' => '',
-        'grid' => 4,
+        'grid'  => 4,
         'req'   => false
     ];
     ${'eq_dates_from'.$i} = [
         'type'  => 'text',
         'name'  => 'eq_dates_from' . $i,
         'label' => '',
-        'grid' => 1,
+        'grid'  => 1,
         'req'   => false
     ];
     ${'eq_dates_to'.$i} = [
         'type'  => 'text',
         'name'  => 'eq_dates_to' . $i,
         'label' => '',
-        'grid' => 1,
+        'grid'  => 1,
         'req'   => false
     ];
     ${'eq_approx_miles'.$i} = [
         'type'  => 'text',
         'name'  => 'eq_approx_miles' . $i,
         'label' => '',
-        'grid' => 3,
+        'grid'  => 3,
         'req'   => false
     ];
 }
@@ -213,117 +213,117 @@ $last_5_years_states = [
     'type'  => 'textarea',
     'name'  => 'last_5_years_states',
     'label' => 'List states operated in during last five years:',
-    'grid' => 12
+    'grid'  => 12
 ];
 $special_drivers_training = [
     'type'  => 'textarea',
     'name'  => 'last_5_years_states',
     'label' => 'List special courses or training that will help you as a driver:',
-    'grid' => 12
+    'grid'  => 12
 ];
 $driving_awards = [
     'type'  => 'textarea',
     'name'  => 'last_5_years_states',
     'label' => 'List driving awards held and who awards were presented by:',
-    'grid' => 12
+    'grid'  => 12
 ];
 
 $accident_review_dates = [
     'type'  => 'static',
     'label' => 'Dates<br><br>',
-    'grid' => 3
+    'grid'  => 3
 ];
 $accident_review_nature = [
     'type'  => 'static',
     'label' => 'Nature of Accident (Head-on, Rear-End, Overturn, etc.)',
-    'grid' => 3
+    'grid'  => 3
 ];
 $accident_review_fatalities = [
     'type'  => 'static',
     'label' => 'Fatalities<br><br>',
-    'grid' => 3
+    'grid'  => 3
 ];
 $accident_review_injuries = [
     'type'  => 'static',
     'label' => 'Injuries<br><br>',
-    'grid' => 3
+    'grid'  => 3
 ];
 for ($i = 1; $i <= 3; ++$i) {
     ${'accident_review_dates'.$i} = [
         'type'  => 'text',
         'name'  => 'accident_review_dates'.$i,
         'label' => '',
-        'grid' => 3
+        'grid'  => 3
     ];
     ${'accident_review_nature'.$i} = [
         'type'  => 'text',
         'name'  => 'accident_review_nature'.$i,
         'label' => '',
-        'grid' => 3
+        'grid'  => 3
     ];
     ${'accident_review_fatalities'.$i} = [
         'type'  => 'text',
         'name'  => 'accident_review_fatalities'.$i,
         'label' => '',
-        'grid' => 3
+        'grid'  => 3
     ];
     ${'accident_review_injuries'.$i} = [
         'type'  => 'text',
         'name'  => 'accident_review_injuries'.$i,
         'label' => '',
-        'grid' => 3
+        'grid'  => 3
     ];
 }
 $traffic_convictions_locations = [
     'type'  => 'static',
     'label' => 'Location',
-    'grid' => 3
+    'grid'  => 3
 ];
 $traffic_convictions_date = [
     'type'  => 'static',
     'label' => 'Date',
-    'grid' => 3
+    'grid'  => 3
 ];
 $traffic_convictions_charge = [
     'type'  => 'static',
     'label' => 'Charge',
-    'grid' => 3
+    'grid'  => 3
 ];
 $traffic_convictions_penalty = [
     'type'  => 'static',
     'label' => 'Penalty',
-    'grid' => 3
+    'grid'  => 3
 ];
 for ($i = 1; $i <= 3; ++$i) {
     ${'traffic_convictions_locations'.$i} = [
         'type'  => 'text',
         'name'  => 'traffic_convictions_locations'.$i,
         'label' => '',
-        'grid' => 3
+        'grid'  => 3
     ];
     ${'traffic_convictions_date'.$i} = [
         'type'  => 'text',
         'name'  => 'traffic_convictions_date'.$i,
         'label' => '',
-        'grid' => 3
+        'grid'  => 3
     ];
     ${'traffic_convictions_charge'.$i} = [
         'type'  => 'text',
         'name'  => 'traffic_convictions_charge'.$i,
         'label' => '',
-        'grid' => 3
+        'grid'  => 3
     ];
     ${'traffic_convictions_penalty'.$i} = [
         'type'  => 'text',
         'name'  => 'traffic_convictions_penalty'.$i,
         'label' => '',
-        'grid' => 3
+        'grid'  => 3
     ];
 }
 $resume_file = [
     'type'  => 'file',
     'label' => 'Upload your resume',
-    'grid' => 12
+    'grid'  => 12
 ];
 $form = [
     ['type' => 'header', 'label' => 'Driver Experience and Qualification'],