@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | /* |
4 | 4 | * This file is part of the php-utilities package. |
5 | 5 | * |
@@ -35,7 +35,7 @@ |
||
35 | 35 | public static function factory(array $param, string $class = self::DEFAULT_CONFIG) : ConfigInterface |
36 | 36 | { |
37 | 37 | if (false === strpos($class, self::DEFAULT_NAMESPACE)) { |
38 | - $class = __NAMESPACE__ . '\\' . $class; |
|
38 | + $class = __NAMESPACE__.'\\'.$class; |
|
39 | 39 | } |
40 | 40 | |
41 | 41 | if (class_exists($class)) { |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | /* |
4 | 4 | * This file is part of the php-utilities package. |
5 | 5 | * |
@@ -202,7 +202,7 @@ discard block |
||
202 | 202 | private function checkPath(string $include) : string |
203 | 203 | { |
204 | 204 | if (0 !== strpos($include, $this->currentBasepath)) { |
205 | - $include = $this->currentBasepath . '/' . $include; |
|
205 | + $include = $this->currentBasepath.'/'.$include; |
|
206 | 206 | } |
207 | 207 | |
208 | 208 | return $include; |
@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | $intervalKey, |
70 | 70 | 1, |
71 | 71 | new \DateTime( |
72 | - $intervalValue . ' 23:59:59' |
|
72 | + $intervalValue.' 23:59:59' |
|
73 | 73 | ) |
74 | 74 | ); |
75 | 75 | //fallthrough |
@@ -112,7 +112,7 @@ discard block |
||
112 | 112 | $timerSubKey, |
113 | 113 | [ |
114 | 114 | new \DateTime($paramValue), |
115 | - new \DateTime($paramValue . ' 23:59:59'), |
|
115 | + new \DateTime($paramValue.' 23:59:59'), |
|
116 | 116 | ] |
117 | 117 | ); |
118 | 118 | } |
@@ -136,13 +136,13 @@ discard block |
||
136 | 136 | switch ($params['type']) { |
137 | 137 | case 'fix': |
138 | 138 | $tmpConf[$params['name']] = new \DateTime( |
139 | - $year . '-' . $params['value'][0] . '-' . $params['value'][1] |
|
139 | + $year.'-'.$params['value'][0].'-'.$params['value'][1] |
|
140 | 140 | ); |
141 | 141 | break; |
142 | 142 | case 'var': |
143 | 143 | $easterDateClone = clone $easterDate; |
144 | 144 | $tmpConf[$params['name']] = $easterDateClone->{$params['value'][0]}( |
145 | - new \DateInterval('P' . $params['value'][1] . 'D') |
|
145 | + new \DateInterval('P'.$params['value'][1].'D') |
|
146 | 146 | ); |
147 | 147 | break; |
148 | 148 | } |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | /* |
4 | 4 | * This file is part of the asm/php-utilities package. |
5 | 5 | * |
@@ -174,7 +174,7 @@ |
||
174 | 174 | // check if there's a modifier for holiday range and if it's before or after the actual holiday |
175 | 175 | if (isset($this->currentConf['holiday']['additional'])) { |
176 | 176 | // create interval object for difference to add/subtract |
177 | - $intervalDiff = new \DateInterval('P' . $this->currentConf['holiday']['additional'][1] . 'D'); |
|
177 | + $intervalDiff = new \DateInterval('P'.$this->currentConf['holiday']['additional'][1].'D'); |
|
178 | 178 | switch ($this->currentConf['holiday']['additional'][0]) { |
179 | 179 | // @codeCoverageIgnoreStart |
180 | 180 | case 'add': |
@@ -83,7 +83,7 @@ |
||
83 | 83 | $currentYear = date('Y'); |
84 | 84 | |
85 | 85 | $this->assertFalse($timer->isHoliday('2014-03-03 00:00:00'), 'failed to check non-holiday date'); |
86 | - $this->assertTrue($timer->isHoliday($currentYear . '-12-24 12:30:01'), 'failed to validate christmas'); |
|
86 | + $this->assertTrue($timer->isHoliday($currentYear.'-12-24 12:30:01'), 'failed to validate christmas'); |
|
87 | 87 | $this->assertNotEmpty($timer->getHoliday()); |
88 | 88 | |
89 | 89 | $this->assertTrue(is_bool($timer->isHoliday()), 'failed to validate bool return'); |
@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | ] |
26 | 26 | ); |
27 | 27 | |
28 | -echo print_r($data, true) . "\n"; |
|
28 | +echo print_r($data, true)."\n"; |
|
29 | 29 | |
30 | 30 | |
31 | 31 | // default config |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | 'ConfigDefault' |
38 | 38 | ); |
39 | 39 | |
40 | -echo print_r($config, true) . "\n"; |
|
40 | +echo print_r($config, true)."\n"; |
|
41 | 41 | |
42 | 42 | // merged environments config |
43 | 43 | $config = Config\Config::factory( |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | 'ConfigEnv' |
49 | 49 | ); |
50 | 50 | |
51 | -echo print_r($config, true) . "\n"; |
|
51 | +echo print_r($config, true)."\n"; |
|
52 | 52 | |
53 | 53 | // merged environments config using dev |
54 | 54 | $config = Config\Config::factory( |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | 'ConfigEnv' |
61 | 61 | ); |
62 | 62 | |
63 | -echo print_r($config, true) . "\n"; |
|
63 | +echo print_r($config, true)."\n"; |
|
64 | 64 | |
65 | 65 | // timer config |
66 | 66 | $config = Config\Config::factory( |
@@ -71,4 +71,4 @@ discard block |
||
71 | 71 | 'ConfigTimer' |
72 | 72 | ); |
73 | 73 | |
74 | -echo print_r($config, true) . "\n"; |
|
74 | +echo print_r($config, true)."\n"; |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | /* |
4 | 4 | * This file is part of the php-utilities package. |
5 | 5 | * |