@@ -100,7 +100,7 @@ public function createFile($filename, PyStringNode $content)
100100 {
101101 $ filesytem = new Filesystem ();
102102 $ file = str_replace ('%kernel.root_dir% ' , $ this ->kernel ->getRootDir (), $ filename );
103- $ filesytem ->mkdir (dirname ($ file ));
103+ $ filesytem ->mkdir (\ dirname ($ file ));
104104
105105 file_put_contents ($ file , (string ) $ content );
106106 }
@@ -120,10 +120,7 @@ public function createDocument($class, $path, TableNode $fields)
120120 }
121121
122122 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 ));
127124 }
128125
129126 $ document = new $ class ();
@@ -148,10 +145,7 @@ public function thereIsADocumentAt($class, $path, TableNode $fields = null)
148145 $ path = '/tests ' .$ path ;
149146
150147 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 ));
155149 }
156150
157151 $ document = $ this ->manager ->find ($ class , $ path );
@@ -176,10 +170,7 @@ public function thereIsNoDocumentAt($class, $path)
176170 $ path = '/tests ' .$ path ;
177171
178172 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 ));
183174 }
184175
185176 $ this ->session ->refresh (true );
0 commit comments