@@ -163,7 +163,7 @@ |
||
163 | 163 | return; |
164 | 164 | } |
165 | 165 | |
166 | - $closure = function (object $value, string $attribute) { |
|
166 | + $closure = function(object $value, string $attribute) { |
|
167 | 167 | $this->{$attribute} = $value; |
168 | 168 | }; |
169 | 169 | $closure->call($this->owner, $object, $this->attribute); |
@@ -17,23 +17,23 @@ |
||
17 | 17 | { |
18 | 18 | public function testPermuting() |
19 | 19 | { |
20 | - $input = ['a', 'b',]; |
|
20 | + $input = ['a', 'b', ]; |
|
21 | 21 | $output = ArrayHelper::permute($input); |
22 | 22 | $this->assertCount(2, $output); |
23 | - $this->assertEquals(['a', 'b',], $output[0]); |
|
24 | - $this->assertEquals(['b', 'a',], $output[1]); |
|
23 | + $this->assertEquals(['a', 'b', ], $output[0]); |
|
24 | + $this->assertEquals(['b', 'a', ], $output[1]); |
|
25 | 25 | } |
26 | 26 | |
27 | 27 | public function testSome() |
28 | 28 | { |
29 | 29 | $array = [1, 2, 3]; |
30 | 30 | |
31 | - $arrayHas2 = ArrayHelper::some($array, function (int $item) { |
|
31 | + $arrayHas2 = ArrayHelper::some($array, function(int $item) { |
|
32 | 32 | return $item === 2; |
33 | 33 | }); |
34 | 34 | $this->assertTrue($arrayHas2); |
35 | 35 | |
36 | - $arrayDoesNotHave4 = ArrayHelper::some($array, function (int $item) { |
|
36 | + $arrayDoesNotHave4 = ArrayHelper::some($array, function(int $item) { |
|
37 | 37 | return $item === 4; |
38 | 38 | }); |
39 | 39 | $this->assertFalse($arrayDoesNotHave4); |
@@ -45,7 +45,7 @@ |
||
45 | 45 | |
46 | 46 | public function testLoadingMultipleFiles() |
47 | 47 | { |
48 | - $model = new FileLoaderBehaviorMock(['multiple' => true,]); |
|
48 | + $model = new FileLoaderBehaviorMock(['multiple' => true, ]); |
|
49 | 49 | $model->validate(); |
50 | 50 | $this->assertNotEmpty($model->file); |
51 | 51 | $this->assertTrue(is_array($model->file)); |
@@ -40,16 +40,16 @@ |
||
40 | 40 | $date = null; |
41 | 41 | preg_replace_callback_array( |
42 | 42 | [ |
43 | - '/^\d{4}\-\d{2}\-\d{2}$/' => function ($match) use (&$date) { |
|
43 | + '/^\d{4}\-\d{2}\-\d{2}$/' => function($match) use (&$date) { |
|
44 | 44 | $date = Carbon::createFromFormat('Y-m-d', $match[0]); |
45 | 45 | }, |
46 | - '/^\d{2}\.\d{2}\.\d{4}$/' => function ($match) use (&$date) { |
|
46 | + '/^\d{2}\.\d{2}\.\d{4}$/' => function($match) use (&$date) { |
|
47 | 47 | $date = Carbon::createFromFormat('d.m.Y', $match[0]); |
48 | 48 | }, |
49 | - '/^\d{2}\.\d{2}\.\d{2}$/' => function ($match) use (&$date) { |
|
49 | + '/^\d{2}\.\d{2}\.\d{2}$/' => function($match) use (&$date) { |
|
50 | 50 | $date = Carbon::createFromFormat('d.m.y', $match[0]); |
51 | 51 | }, |
52 | - '/^\d+$/' => function ($match) use (&$date) { |
|
52 | + '/^\d+$/' => function($match) use (&$date) { |
|
53 | 53 | $date = Carbon::createFromTimestamp($match[0]); |
54 | 54 | } |
55 | 55 | ], |
@@ -21,8 +21,8 @@ |
||
21 | 21 | public function init(): void |
22 | 22 | { |
23 | 23 | parent::init(); |
24 | - $this->request = di\Instance::ensure($this->request, web\Request::class); |
|
25 | - $this->response = di\Instance::ensure($this->response, web\Response::class); |
|
24 | + $this->request = di\Instance::ensure($this->request, web\Request::class); |
|
25 | + $this->response = di\Instance::ensure($this->response, web\Response::class); |
|
26 | 26 | } |
27 | 27 | |
28 | 28 | public function events(): array |