Skip to content

Commit e6cac34

Browse files
committed
Update coding style
1 parent f8a7229 commit e6cac34

File tree

16 files changed

+982
-1015
lines changed

16 files changed

+982
-1015
lines changed

examples/Assets.php

Lines changed: 60 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
<?php namespace Config;
1+
<?php
22

3-
/***
3+
namespace Config;
4+
5+
/*
46
*
57
* This file contains example values to override or augment default library behavior.
68
* Recommended usage:
@@ -9,71 +11,71 @@
911
* 3. Add additional route-specific assets to $routes
1012
* 4. Remove any lines to fallback to defaults
1113
*
12-
***/
14+
*/
1315

1416
use Tatter\Assets\Config\Assets as AssetsConfig;
1517

1618
class Assets extends AssetsConfig
1719
{
18-
//--------------------------------------------------------------------
19-
// Library Behavior
20-
//--------------------------------------------------------------------
20+
//--------------------------------------------------------------------
21+
// Library Behavior
22+
//--------------------------------------------------------------------
2123

22-
/**
23-
* Asset URI base, relative to baseURL.
24-
*
25-
* @var string
26-
*/
27-
public $uri = 'assets/';
24+
/**
25+
* Asset URI base, relative to baseURL.
26+
*
27+
* @var string
28+
*/
29+
public $uri = 'assets/';
2830

29-
/**
30-
* Asset storage location in the filesystem.
31-
* Must be somewhere web accessible.
32-
*
33-
* @var string
34-
*/
35-
public $directory = FCPATH . 'assets/';
31+
/**
32+
* Asset storage location in the filesystem.
33+
* Must be somewhere web accessible.
34+
*
35+
* @var string
36+
*/
37+
public $directory = FCPATH . 'assets/';
3638

37-
/**
38-
* Whether to append file modification timestamps on asset tags.
39-
* Makes it less likely for modified assets to remain cached.
40-
*
41-
* @var bool
42-
*/
43-
public $useTimestamps = true;
39+
/**
40+
* Whether to append file modification timestamps on asset tags.
41+
* Makes it less likely for modified assets to remain cached.
42+
*
43+
* @var bool
44+
*/
45+
public $useTimestamps = true;
4446

45-
/**
46-
* Whether to cache bundles for faster route responses.
47-
*
48-
* @var bool
49-
*/
50-
public $useCache = ENVIRONMENT === 'production';
47+
/**
48+
* Whether to cache bundles for faster route responses.
49+
*
50+
* @var bool
51+
*/
52+
public $useCache = ENVIRONMENT === 'production';
5153

52-
//--------------------------------------------------------------------
53-
// Route Assets
54-
//--------------------------------------------------------------------
54+
//--------------------------------------------------------------------
55+
// Route Assets
56+
//--------------------------------------------------------------------
5557

56-
/**
57-
* Assets to apply to each route. Routes may use * as a wildcard to
58-
* allow any valid character, similar to URL Helper's url_is().
59-
* Keys are routes; values are an array of any of the following:
60-
* - Bundle class names
61-
* - File paths (relative to $directory)
62-
* - URLs
63-
*
64-
* Example:
65-
* $routes = [
66-
* '*' => [
67-
* 'https://pagecdn.io/lib/cleave/1.6.0/cleave.min.js',
68-
* \App\Bundles\Bootstrap::class,
69-
* ],
70-
* 'admin/*' => [
71-
* \Tatter\Frontend\Bundles\AdminLTE::class,
72-
* 'admin/login.js',
73-
* ],
74-
* ];
75-
*
76-
* @var array<string,string[]>
77-
*/
78-
public $routes = [];
58+
/**
59+
* Assets to apply to each route. Routes may use * as a wildcard to
60+
* allow any valid character, similar to URL Helper's url_is().
61+
* Keys are routes; values are an array of any of the following:
62+
* - Bundle class names
63+
* - File paths (relative to $directory)
64+
* - URLs
65+
*
66+
* Example:
67+
* $routes = [
68+
* '*' => [
69+
* 'https://pagecdn.io/lib/cleave/1.6.0/cleave.min.js',
70+
* \App\Bundles\Bootstrap::class,
71+
* ],
72+
* 'admin/*' => [
73+
* \Tatter\Frontend\Bundles\AdminLTE::class,
74+
* 'admin/login.js',
75+
* ],
76+
* ];
77+
*
78+
* @var array<string,string[]>
79+
*/
80+
public $routes = [];
7981
}

0 commit comments

Comments
 (0)