@@ -7,31 +7,31 @@ discard block |
||
7 | 7 | <?php |
8 | 8 | |
9 | 9 | if (!empty($item['translations'])) { |
10 | - foreach ($item['translations'] as $translation) { |
|
10 | + foreach ($item['translations'] as $translation) { |
|
11 | 11 | echo "\t\t" . '<xhtml:link rel="alternate" hreflang="' . $translation['language'] . '" href="' . $translation['url'] . '" />' . "\n"; |
12 | - } |
|
12 | + } |
|
13 | 13 | } |
14 | 14 | |
15 | 15 | if (!empty($item['alternates'])) { |
16 | - foreach ($item['alternates'] as $alternate) { |
|
16 | + foreach ($item['alternates'] as $alternate) { |
|
17 | 17 | echo "\t\t" . '<xhtml:link rel="alternate" media="' . $alternate['media'] . '" href="' . $alternate['url'] . '" />' . "\n"; |
18 | - } |
|
18 | + } |
|
19 | 19 | } |
20 | 20 | |
21 | 21 | if ($item['priority'] !== null) { |
22 | - echo "\t\t" . '<priority>' . $item['priority'] . '</priority>' . "\n"; |
|
22 | + echo "\t\t" . '<priority>' . $item['priority'] . '</priority>' . "\n"; |
|
23 | 23 | } |
24 | 24 | |
25 | 25 | if ($item['lastmod'] !== null) { |
26 | - echo "\t\t" . '<lastmod>' . date('Y-m-d\TH:i:sP', strtotime($item['lastmod'])) . '</lastmod>' . "\n"; |
|
26 | + echo "\t\t" . '<lastmod>' . date('Y-m-d\TH:i:sP', strtotime($item['lastmod'])) . '</lastmod>' . "\n"; |
|
27 | 27 | } |
28 | 28 | |
29 | 29 | if ($item['freq'] !== null) { |
30 | - echo "\t\t" . '<changefreq>' . $item['freq'] . '</changefreq>' . "\n"; |
|
30 | + echo "\t\t" . '<changefreq>' . $item['freq'] . '</changefreq>' . "\n"; |
|
31 | 31 | } |
32 | 32 | |
33 | 33 | if (!empty($item['images'])) { |
34 | - foreach($item['images'] as $image) { |
|
34 | + foreach($item['images'] as $image) { |
|
35 | 35 | echo "\t\t" . '<image:image>' . "\n"; |
36 | 36 | echo "\t\t\t" . '<image:loc>' . $image['url'] . '</image:loc>' . "\n"; |
37 | 37 | if (isset($image['title'])) echo "\t\t\t" . '<image:title>' . $image['title'] . '</image:title>' . "\n"; |
@@ -39,11 +39,11 @@ discard block |
||
39 | 39 | if (isset($image['geo_location'])) echo "\t\t\t" . '<image:geo_location>' . $image['geo_location'] . '</image:geo_location>' . "\n"; |
40 | 40 | if (isset($image['license'])) echo "\t\t\t" . '<image:license>' . $image['license'] . '</image:license>' . "\n"; |
41 | 41 | echo "\t\t" . '</image:image>' . "\n"; |
42 | - } |
|
42 | + } |
|
43 | 43 | } |
44 | 44 | |
45 | 45 | if (!empty($item['videos'])) { |
46 | - foreach($item['videos'] as $video) { |
|
46 | + foreach($item['videos'] as $video) { |
|
47 | 47 | echo "\t\t" . '<video:video>' . "\n"; |
48 | 48 | if (isset($video['thumbnail_loc'])) echo "\t\t\t" . '<video:thumbnail_loc>' . $video['thumbnail_loc'] . '</video:thumbnail_loc>' . "\n"; |
49 | 49 | if (isset($video['title'])) echo "\t\t\t" . '<video:title><![CDATA[' . $video['title'] . ']]></video:title>' . "\n"; |
@@ -58,13 +58,13 @@ discard block |
||
58 | 58 | if (isset($video['requires_subscription'])) echo "\t\t\t" . '<video:requires_subscription>' . $video['requires_subscription'] . '</video:requires_subscription>' . "\n"; |
59 | 59 | if (isset($video['live'])) echo "\t\t\t" . '<video:live>' . $video['live'] . '</video:live>' . "\n"; |
60 | 60 | if (isset($video['player_loc'])) echo "\t\t\t" . '<video:player_loc allow_embed="'. $video['player_loc']['allow_embed'] .'" autoplay="'. |
61 | - $video['player_loc']['autoplay'] .'">' . $video['player_loc']['player_loc'] . '</video:player_loc>' . "\n"; |
|
61 | + $video['player_loc']['autoplay'] .'">' . $video['player_loc']['player_loc'] . '</video:player_loc>' . "\n"; |
|
62 | 62 | if (isset($video['restriction'])) echo "\t\t\t" . '<video:restriction relationship="'.$video['restriction']['relationship'].'">' . $video['restriction']['restriction'] . '</video:restriction>' . "\n"; |
63 | 63 | if (isset($video['gallery_loc'])) echo "\t\t\t" . '<video:gallery_loc title="'.$video['gallery_loc']['title'].'">' . $video['gallery_loc']['gallery_loc'] . '</video:gallery_loc>' . "\n"; |
64 | 64 | if (isset($video['price'])) echo "\t\t\t" . '<video:price currency="'.$video['price']['currency'].'">' . $video['price']['price'] . '</video:price>' . "\n"; |
65 | 65 | if (isset($video['uploader'])) echo "\t\t\t" . '<video:uploader info="'.$video['uploader']['info'].'">' . $video['uploader']['uploader'] . '</video:uploader>' . "\n"; |
66 | 66 | echo "\t\t" . '</video:video>' . "\n"; |
67 | - } |
|
67 | + } |
|
68 | 68 | } |
69 | 69 | |
70 | 70 | ?> |
@@ -52,8 +52,8 @@ discard block |
||
52 | 52 | protected function mapWebRoutes() |
53 | 53 | { |
54 | 54 | Route::middleware('web') |
55 | - ->namespace($this->namespace) |
|
56 | - ->group(base_path('routes/web.php')); |
|
55 | + ->namespace($this->namespace) |
|
56 | + ->group(base_path('routes/web.php')); |
|
57 | 57 | } |
58 | 58 | |
59 | 59 | /** |
@@ -66,8 +66,8 @@ discard block |
||
66 | 66 | protected function mapApiRoutes() |
67 | 67 | { |
68 | 68 | Route::prefix('api') |
69 | - ->middleware('api') |
|
70 | - ->namespace($this->namespace) |
|
71 | - ->group(base_path('routes/api.php')); |
|
69 | + ->middleware('api') |
|
70 | + ->namespace($this->namespace) |
|
71 | + ->group(base_path('routes/api.php')); |
|
72 | 72 | } |
73 | 73 | } |
@@ -5,30 +5,30 @@ |
||
5 | 5 | |
6 | 6 | class CreatePasswordResetsTable extends Migration { |
7 | 7 | |
8 | - /** |
|
9 | - * Run the migrations. |
|
10 | - * |
|
11 | - * @return void |
|
12 | - */ |
|
13 | - public function up() |
|
14 | - { |
|
15 | - Schema::create('password_resets', function(Blueprint $table) |
|
16 | - { |
|
8 | + /** |
|
9 | + * Run the migrations. |
|
10 | + * |
|
11 | + * @return void |
|
12 | + */ |
|
13 | + public function up() |
|
14 | + { |
|
15 | + Schema::create('password_resets', function(Blueprint $table) |
|
16 | + { |
|
17 | 17 | $table->string('email')->index(); |
18 | 18 | $table->string('token'); |
19 | 19 | $table->timestamp('created_at')->nullable(); |
20 | - }); |
|
21 | - } |
|
20 | + }); |
|
21 | + } |
|
22 | 22 | |
23 | 23 | |
24 | - /** |
|
25 | - * Reverse the migrations. |
|
26 | - * |
|
27 | - * @return void |
|
28 | - */ |
|
29 | - public function down() |
|
30 | - { |
|
31 | - Schema::dropIfExists('password_resets'); |
|
32 | - } |
|
24 | + /** |
|
25 | + * Reverse the migrations. |
|
26 | + * |
|
27 | + * @return void |
|
28 | + */ |
|
29 | + public function down() |
|
30 | + { |
|
31 | + Schema::dropIfExists('password_resets'); |
|
32 | + } |
|
33 | 33 | |
34 | 34 | } |
@@ -5,33 +5,33 @@ |
||
5 | 5 | |
6 | 6 | class CreateSessionsTable extends Migration { |
7 | 7 | |
8 | - /** |
|
9 | - * Run the migrations. |
|
10 | - * |
|
11 | - * @return void |
|
12 | - */ |
|
13 | - public function up() |
|
14 | - { |
|
15 | - Schema::create('sessions', function(Blueprint $table) |
|
16 | - { |
|
17 | - $table->string('id', 191)->unique(); |
|
18 | - $table->integer('admin_id')->unsigned()->nullable(); |
|
19 | - $table->string('ip_address', 45)->nullable(); |
|
20 | - $table->text('user_agent', 65535)->nullable(); |
|
21 | - $table->text('payload', 65535); |
|
22 | - $table->integer('last_activity'); |
|
23 | - }); |
|
24 | - } |
|
8 | + /** |
|
9 | + * Run the migrations. |
|
10 | + * |
|
11 | + * @return void |
|
12 | + */ |
|
13 | + public function up() |
|
14 | + { |
|
15 | + Schema::create('sessions', function(Blueprint $table) |
|
16 | + { |
|
17 | + $table->string('id', 191)->unique(); |
|
18 | + $table->integer('admin_id')->unsigned()->nullable(); |
|
19 | + $table->string('ip_address', 45)->nullable(); |
|
20 | + $table->text('user_agent', 65535)->nullable(); |
|
21 | + $table->text('payload', 65535); |
|
22 | + $table->integer('last_activity'); |
|
23 | + }); |
|
24 | + } |
|
25 | 25 | |
26 | 26 | |
27 | - /** |
|
28 | - * Reverse the migrations. |
|
29 | - * |
|
30 | - * @return void |
|
31 | - */ |
|
32 | - public function down() |
|
33 | - { |
|
34 | - Schema::drop('sessions'); |
|
35 | - } |
|
27 | + /** |
|
28 | + * Reverse the migrations. |
|
29 | + * |
|
30 | + * @return void |
|
31 | + */ |
|
32 | + public function down() |
|
33 | + { |
|
34 | + Schema::drop('sessions'); |
|
35 | + } |
|
36 | 36 | |
37 | 37 | } |
@@ -4,36 +4,36 @@ |
||
4 | 4 | use Illuminate\Database\Schema\Blueprint; |
5 | 5 | |
6 | 6 | class CreateAdminsTable extends Migration { |
7 | - /** |
|
8 | - * Run the migrations. |
|
9 | - * |
|
10 | - * @return void |
|
11 | - */ |
|
12 | - public function up() |
|
13 | - { |
|
14 | - Schema::create('admins', function(Blueprint $table) |
|
15 | - { |
|
7 | + /** |
|
8 | + * Run the migrations. |
|
9 | + * |
|
10 | + * @return void |
|
11 | + */ |
|
12 | + public function up() |
|
13 | + { |
|
14 | + Schema::create('admins', function(Blueprint $table) |
|
15 | + { |
|
16 | 16 | $table->bigIncrements('id'); |
17 | 17 | $table->string('name'); |
18 | 18 | $table->string('email')->unique(); |
19 | 19 | $table->timestamp('email_verified_at')->nullable(); |
20 | 20 | $table->string('password'); |
21 | 21 | $table->rememberToken(); |
22 | - $table->string('locale'); |
|
23 | - $table->string('timezone'); |
|
24 | - $table->string('slug')->unique(); |
|
25 | - $table->dateTime('last_access_at')->nullable(); |
|
26 | - $table->timestamps(); |
|
27 | - }); |
|
28 | - } |
|
22 | + $table->string('locale'); |
|
23 | + $table->string('timezone'); |
|
24 | + $table->string('slug')->unique(); |
|
25 | + $table->dateTime('last_access_at')->nullable(); |
|
26 | + $table->timestamps(); |
|
27 | + }); |
|
28 | + } |
|
29 | 29 | |
30 | - /** |
|
31 | - * Reverse the migrations. |
|
32 | - * |
|
33 | - * @return void |
|
34 | - */ |
|
35 | - public function down() |
|
36 | - { |
|
37 | - Schema::dropIfExists('admins'); |
|
38 | - } |
|
30 | + /** |
|
31 | + * Reverse the migrations. |
|
32 | + * |
|
33 | + * @return void |
|
34 | + */ |
|
35 | + public function down() |
|
36 | + { |
|
37 | + Schema::dropIfExists('admins'); |
|
38 | + } |
|
39 | 39 | } |