@@ -100,7 +100,7 @@ public function createFile($filename, PyStringNode $content)
100
100
{
101
101
$ filesytem = new Filesystem ();
102
102
$ file = str_replace ('%kernel.root_dir% ' , $ this ->kernel ->getRootDir (), $ filename );
103
- $ filesytem ->mkdir (dirname ($ file ));
103
+ $ filesytem ->mkdir (\ dirname ($ file ));
104
104
105
105
file_put_contents ($ file , (string ) $ content );
106
106
}
@@ -120,10 +120,7 @@ public function createDocument($class, $path, TableNode $fields)
120
120
}
121
121
122
122
if (!class_exists ($ class )) {
123
- throw new \InvalidArgumentException (sprintf (
124
- 'Class "%s" does not exist ' ,
125
- $ class
126
- ));
123
+ throw new \InvalidArgumentException (sprintf ('Class "%s" does not exist ' , $ class ));
127
124
}
128
125
129
126
$ document = new $ class ();
@@ -148,10 +145,7 @@ public function thereIsADocumentAt($class, $path, TableNode $fields = null)
148
145
$ path = '/tests ' .$ path ;
149
146
150
147
if (!class_exists ($ class )) {
151
- throw new \InvalidArgumentException (sprintf (
152
- 'Class "%s" does not exist ' ,
153
- $ class
154
- ));
148
+ throw new \InvalidArgumentException (sprintf ('Class "%s" does not exist ' , $ class ));
155
149
}
156
150
157
151
$ document = $ this ->manager ->find ($ class , $ path );
@@ -176,10 +170,7 @@ public function thereIsNoDocumentAt($class, $path)
176
170
$ path = '/tests ' .$ path ;
177
171
178
172
if (!class_exists ($ class )) {
179
- throw new \InvalidArgumentException (sprintf (
180
- 'Class "%s" does not exist ' ,
181
- $ class
182
- ));
173
+ throw new \InvalidArgumentException (sprintf ('Class "%s" does not exist ' , $ class ));
183
174
}
184
175
185
176
$ this ->session ->refresh (true );
0 commit comments