@@ -72,7 +72,7 @@ public function test_compile_content_blade()
72
72
{
73
73
$ content = '{!! $id !!} ' ;
74
74
$ data = ['id ' => 2 ];
75
- $ obj = new stdClass () ;
75
+ $ obj = new stdClass ;
76
76
$ obj ->id = 2 ;
77
77
78
78
$ compiled = Helper::compileContent ($ content , $ data , $ obj );
@@ -83,7 +83,7 @@ public function test_compile_content_string()
83
83
{
84
84
$ content = 'string ' ;
85
85
$ data = ['id ' => 2 ];
86
- $ obj = new stdClass () ;
86
+ $ obj = new stdClass ;
87
87
$ obj ->id = 2 ;
88
88
89
89
$ compiled = Helper::compileContent ($ content , $ data , $ obj );
@@ -94,7 +94,7 @@ public function test_compile_content_integer()
94
94
{
95
95
$ content = 1 ;
96
96
$ data = ['id ' => 2 ];
97
- $ obj = new stdClass () ;
97
+ $ obj = new stdClass ;
98
98
$ obj ->id = 2 ;
99
99
100
100
$ compiled = Helper::compileContent ($ content , $ data , $ obj );
@@ -105,7 +105,7 @@ public function test_compile_content_function()
105
105
{
106
106
$ content = fn ($ obj ) => $ obj ->id ;
107
107
$ data = ['id ' => 2 ];
108
- $ obj = new stdClass () ;
108
+ $ obj = new stdClass ;
109
109
$ obj ->id = 2 ;
110
110
111
111
$ compiled = Helper::compileContent ($ content , $ data , $ obj );
@@ -122,7 +122,7 @@ public function __invoke($obj)
122
122
}
123
123
};
124
124
$ data = ['id ' => 2 ];
125
- $ obj = new stdClass () ;
125
+ $ obj = new stdClass ;
126
126
$ obj ->id = 2 ;
127
127
128
128
$ compiled = Helper::compileContent ($ content , $ data , $ obj );
@@ -145,7 +145,7 @@ public function test_get_mixed_value()
145
145
'name ' => 'John ' ,
146
146
'created_at ' => '1234 ' ,
147
147
];
148
- $ class = new stdClass () ;
148
+ $ class = new stdClass ;
149
149
$ class ->id = 1 ;
150
150
$ class ->name = 'John ' ;
151
151
$ class ->created_at = $ carbon ;
@@ -162,7 +162,7 @@ public function test_get_mixed_value()
162
162
163
163
public function test_cast_to_array_an_object ()
164
164
{
165
- $ class = new stdClass () ;
165
+ $ class = new stdClass ;
166
166
$ class ->id = 1 ;
167
167
$ compiled = Helper::castToArray ($ class );
168
168
$ this ->assertEquals (['id ' => 1 ], $ compiled );
@@ -188,11 +188,11 @@ public function test_get_or_method()
188
188
189
189
public function test_convert_to_array ()
190
190
{
191
- $ row = new stdClass () ;
191
+ $ row = new stdClass ;
192
192
$ row ->id = 1 ;
193
193
$ row ->name = 'John ' ;
194
194
$ row ->posts = ['id ' => 1 , 'title ' => 'Demo ' ];
195
- $ author = new stdClass () ;
195
+ $ author = new stdClass ;
196
196
$ author ->name = 'Billy ' ;
197
197
$ row ->author = $ author ;
198
198
0 commit comments