@@ -13,7 +13,7 @@ discard block |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::create('cities', function (Blueprint $table) { |
|
16 | + Schema::create('cities', function(Blueprint $table) { |
|
17 | 17 | $table->increments('id'); |
18 | 18 | $table->integer('state_id')->unsigned(); |
19 | 19 | $table->string('title'); |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | $table->decimal('income_per_capita', 8, 2); |
28 | 28 | }); |
29 | 29 | |
30 | - Schema::table('cities', function (Blueprint $table) { |
|
30 | + Schema::table('cities', function(Blueprint $table) { |
|
31 | 31 | $table->foreign('state_id')->references('id')->on('states'); |
32 | 32 | }); |
33 | 33 | } |
@@ -13,7 +13,7 @@ |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::create('states', function (Blueprint $table) { |
|
16 | + Schema::create('states', function(Blueprint $table) { |
|
17 | 17 | $table->increments('id'); |
18 | 18 | $table->string('title'); |
19 | 19 | $table->string('letter'); |
@@ -13,9 +13,9 @@ discard block |
||
13 | 13 | */ |
14 | 14 | public function run() |
15 | 15 | { |
16 | - \DB::table('states')->insert(array ( |
|
16 | + \DB::table('states')->insert(array( |
|
17 | 17 | 0 => |
18 | - array ( |
|
18 | + array( |
|
19 | 19 | 'id' => '1', |
20 | 20 | 'title' => 'Acre', |
21 | 21 | 'letter' => 'AC', |
@@ -24,7 +24,7 @@ discard block |
||
24 | 24 | 'population' => '816687', |
25 | 25 | ), |
26 | 26 | 1 => |
27 | - array ( |
|
27 | + array( |
|
28 | 28 | 'id' => '2', |
29 | 29 | 'title' => 'Alagoas', |
30 | 30 | 'letter' => 'AL', |
@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | 'population' => '3358963', |
34 | 34 | ), |
35 | 35 | 2 => |
36 | - array ( |
|
36 | + array( |
|
37 | 37 | 'id' => '3', |
38 | 38 | 'title' => 'Amazonas', |
39 | 39 | 'letter' => 'AM', |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | 'population' => '4001667', |
43 | 43 | ), |
44 | 44 | 3 => |
45 | - array ( |
|
45 | + array( |
|
46 | 46 | 'id' => '4', |
47 | 47 | 'title' => 'Amapá', |
48 | 48 | 'letter' => 'AP', |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | 'population' => '782295', |
52 | 52 | ), |
53 | 53 | 4 => |
54 | - array ( |
|
54 | + array( |
|
55 | 55 | 'id' => '5', |
56 | 56 | 'title' => 'Bahia', |
57 | 57 | 'letter' => 'BA', |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | 'population' => '15276566', |
61 | 61 | ), |
62 | 62 | 5 => |
63 | - array ( |
|
63 | + array( |
|
64 | 64 | 'id' => '6', |
65 | 65 | 'title' => 'Ceará', |
66 | 66 | 'letter' => 'CE', |
@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | 'population' => '8963663', |
70 | 70 | ), |
71 | 71 | 6 => |
72 | - array ( |
|
72 | + array( |
|
73 | 73 | 'id' => '7', |
74 | 74 | 'title' => 'Distrito Federal', |
75 | 75 | 'letter' => 'DF', |
@@ -78,7 +78,7 @@ discard block |
||
78 | 78 | 'population' => '2977216', |
79 | 79 | ), |
80 | 80 | 7 => |
81 | - array ( |
|
81 | + array( |
|
82 | 82 | 'id' => '8', |
83 | 83 | 'title' => 'Espírito Santo', |
84 | 84 | 'letter' => 'ES', |
@@ -87,7 +87,7 @@ discard block |
||
87 | 87 | 'population' => '3973697', |
88 | 88 | ), |
89 | 89 | 8 => |
90 | - array ( |
|
90 | + array( |
|
91 | 91 | 'id' => '9', |
92 | 92 | 'title' => 'Goiás', |
93 | 93 | 'letter' => 'GO', |
@@ -96,7 +96,7 @@ discard block |
||
96 | 96 | 'population' => '6695855', |
97 | 97 | ), |
98 | 98 | 9 => |
99 | - array ( |
|
99 | + array( |
|
100 | 100 | 'id' => '10', |
101 | 101 | 'title' => 'Maranhão', |
102 | 102 | 'letter' => 'MA', |
@@ -105,7 +105,7 @@ discard block |
||
105 | 105 | 'population' => '6954036', |
106 | 106 | ), |
107 | 107 | 10 => |
108 | - array ( |
|
108 | + array( |
|
109 | 109 | 'id' => '11', |
110 | 110 | 'title' => 'Minas Gerais', |
111 | 111 | 'letter' => 'MG', |
@@ -114,7 +114,7 @@ discard block |
||
114 | 114 | 'population' => '20997560', |
115 | 115 | ), |
116 | 116 | 11 => |
117 | - array ( |
|
117 | + array( |
|
118 | 118 | 'id' => '12', |
119 | 119 | 'title' => 'Mato Grosso do Sul', |
120 | 120 | 'letter' => 'MS', |
@@ -123,7 +123,7 @@ discard block |
||
123 | 123 | 'population' => '2682386', |
124 | 124 | ), |
125 | 125 | 12 => |
126 | - array ( |
|
126 | + array( |
|
127 | 127 | 'id' => '13', |
128 | 128 | 'title' => 'Mato Grosso', |
129 | 129 | 'letter' => 'MT', |
@@ -132,7 +132,7 @@ discard block |
||
132 | 132 | 'population' => '3305531', |
133 | 133 | ), |
134 | 134 | 13 => |
135 | - array ( |
|
135 | + array( |
|
136 | 136 | 'id' => '14', |
137 | 137 | 'title' => 'Pará', |
138 | 138 | 'letter' => 'PA', |
@@ -141,7 +141,7 @@ discard block |
||
141 | 141 | 'population' => '8272724', |
142 | 142 | ), |
143 | 143 | 14 => |
144 | - array ( |
|
144 | + array( |
|
145 | 145 | 'id' => '15', |
146 | 146 | 'title' => 'Paraiba', |
147 | 147 | 'letter' => 'PB', |
@@ -150,7 +150,7 @@ discard block |
||
150 | 150 | 'population' => '3999415', |
151 | 151 | ), |
152 | 152 | 15 => |
153 | - array ( |
|
153 | + array( |
|
154 | 154 | 'id' => '16', |
155 | 155 | 'title' => 'Pernambuco', |
156 | 156 | 'letter' => 'PE', |
@@ -159,7 +159,7 @@ discard block |
||
159 | 159 | 'population' => '9410336', |
160 | 160 | ), |
161 | 161 | 16 => |
162 | - array ( |
|
162 | + array( |
|
163 | 163 | 'id' => '17', |
164 | 164 | 'title' => 'Piauí', |
165 | 165 | 'letter' => 'PI', |
@@ -168,7 +168,7 @@ discard block |
||
168 | 168 | 'population' => '3212180', |
169 | 169 | ), |
170 | 170 | 17 => |
171 | - array ( |
|
171 | + array( |
|
172 | 172 | 'id' => '18', |
173 | 173 | 'title' => 'Paraná', |
174 | 174 | 'letter' => 'PR', |
@@ -177,7 +177,7 @@ discard block |
||
177 | 177 | 'population' => '11242720', |
178 | 178 | ), |
179 | 179 | 18 => |
180 | - array ( |
|
180 | + array( |
|
181 | 181 | 'id' => '19', |
182 | 182 | 'title' => 'Rio de Janeiro', |
183 | 183 | 'letter' => 'RJ', |
@@ -186,7 +186,7 @@ discard block |
||
186 | 186 | 'population' => '16635996', |
187 | 187 | ), |
188 | 188 | 19 => |
189 | - array ( |
|
189 | + array( |
|
190 | 190 | 'id' => '20', |
191 | 191 | 'title' => 'Rio Grande do Norte', |
192 | 192 | 'letter' => 'RN', |
@@ -195,7 +195,7 @@ discard block |
||
195 | 195 | 'population' => '3474998', |
196 | 196 | ), |
197 | 197 | 20 => |
198 | - array ( |
|
198 | + array( |
|
199 | 199 | 'id' => '21', |
200 | 200 | 'title' => 'Rondônia', |
201 | 201 | 'letter' => 'RO', |
@@ -204,7 +204,7 @@ discard block |
||
204 | 204 | 'population' => '1787279', |
205 | 205 | ), |
206 | 206 | 21 => |
207 | - array ( |
|
207 | + array( |
|
208 | 208 | 'id' => '22', |
209 | 209 | 'title' => 'Roraima', |
210 | 210 | 'letter' => 'RR', |
@@ -213,7 +213,7 @@ discard block |
||
213 | 213 | 'population' => '514229', |
214 | 214 | ), |
215 | 215 | 22 => |
216 | - array ( |
|
216 | + array( |
|
217 | 217 | 'id' => '23', |
218 | 218 | 'title' => 'Rio Grande do Sul', |
219 | 219 | 'letter' => 'RS', |
@@ -222,7 +222,7 @@ discard block |
||
222 | 222 | 'population' => '11286500', |
223 | 223 | ), |
224 | 224 | 23 => |
225 | - array ( |
|
225 | + array( |
|
226 | 226 | 'id' => '24', |
227 | 227 | 'title' => 'Santa Catarina', |
228 | 228 | 'letter' => 'SC', |
@@ -231,7 +231,7 @@ discard block |
||
231 | 231 | 'population' => '6910553', |
232 | 232 | ), |
233 | 233 | 24 => |
234 | - array ( |
|
234 | + array( |
|
235 | 235 | 'id' => '25', |
236 | 236 | 'title' => 'Sergipe', |
237 | 237 | 'letter' => 'SE', |
@@ -240,7 +240,7 @@ discard block |
||
240 | 240 | 'population' => '2265779', |
241 | 241 | ), |
242 | 242 | 25 => |
243 | - array ( |
|
243 | + array( |
|
244 | 244 | 'id' => '26', |
245 | 245 | 'title' => 'São Paulo', |
246 | 246 | 'letter' => 'SP', |
@@ -249,7 +249,7 @@ discard block |
||
249 | 249 | 'population' => '44749699', |
250 | 250 | ), |
251 | 251 | 26 => |
252 | - array ( |
|
252 | + array( |
|
253 | 253 | 'id' => '27', |
254 | 254 | 'title' => 'Tocantins', |
255 | 255 | 'letter' => 'TO', |