@@ -17,10 +17,10 @@ |
||
| 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 | \ No newline at end of file |
@@ -151,7 +151,7 @@ |
||
| 151 | 151 | if (is_callable($this->load)) { |
| 152 | 152 | call_user_func($this->load, $record); |
| 153 | 153 | } elseif (!empty($this->attribute)) { |
| 154 | - $closure = function (ActiveRecord $value, string $attribute) { |
|
| 154 | + $closure = function(ActiveRecord $value, string $attribute) { |
|
| 155 | 155 | $this->{$attribute} = $value; |
| 156 | 156 | }; |
| 157 | 157 | $closure->call($this->owner, $record, $this->attribute); |