@@ -37,7 +37,7 @@ public function getFileStat(string $path): stdClass
3737 */
3838 public function getContent (string $ path , int $ notLargerThan = null ): string
3939 {
40- Assert::isInstanceOf (Server::class, $ this ->server );
40+ Assert::isInstanceOf ($ this ->server , Server::class );
4141
4242 $ response = $ this ->getHttpClient ()->get (
4343 sprintf ('/api/servers/%s/files/contents ' , $ this ->server ->uuid ),
@@ -69,7 +69,7 @@ public function getContent(string $path, int $notLargerThan = null): string
6969 */
7070 public function putContent (string $ path , string $ content ): ResponseInterface
7171 {
72- Assert::isInstanceOf (Server::class, $ this ->server );
72+ Assert::isInstanceOf ($ this ->server , Server::class );
7373
7474 return $ this ->getHttpClient ()->post (
7575 sprintf ('/api/servers/%s/files/write ' , $ this ->server ->uuid ),
@@ -90,7 +90,7 @@ public function putContent(string $path, string $content): ResponseInterface
9090 */
9191 public function getDirectory (string $ path ): array
9292 {
93- Assert::isInstanceOf (Server::class, $ this ->server );
93+ Assert::isInstanceOf ($ this ->server , Server::class );
9494
9595 $ response = $ this ->getHttpClient ()->get (
9696 sprintf ('/api/servers/%s/files/list-directory ' , $ this ->server ->uuid ),
@@ -111,7 +111,7 @@ public function getDirectory(string $path): array
111111 */
112112 public function createDirectory (string $ name , string $ path ): ResponseInterface
113113 {
114- Assert::isInstanceOf (Server::class, $ this ->server );
114+ Assert::isInstanceOf ($ this ->server , Server::class );
115115
116116 return $ this ->getHttpClient ()->post (
117117 sprintf ('/api/servers/%s/files/create-directory ' , $ this ->server ->uuid ),
@@ -133,7 +133,7 @@ public function createDirectory(string $name, string $path): ResponseInterface
133133 */
134134 public function renameFile (string $ from , string $ to ): ResponseInterface
135135 {
136- Assert::isInstanceOf (Server::class, $ this ->server );
136+ Assert::isInstanceOf ($ this ->server , Server::class );
137137
138138 return $ this ->getHttpClient ()->put (
139139 sprintf ('/api/servers/%s/files/rename ' , $ this ->server ->uuid ),
@@ -154,7 +154,7 @@ public function renameFile(string $from, string $to): ResponseInterface
154154 */
155155 public function copyFile (string $ location ): ResponseInterface
156156 {
157- Assert::isInstanceOf (Server::class, $ this ->server );
157+ Assert::isInstanceOf ($ this ->server , Server::class );
158158
159159 return $ this ->getHttpClient ()->post (
160160 sprintf ('/api/servers/%s/files/copy ' , $ this ->server ->uuid ),
@@ -174,7 +174,7 @@ public function copyFile(string $location): ResponseInterface
174174 */
175175 public function deleteFile (string $ location ): ResponseInterface
176176 {
177- Assert::isInstanceOf (Server::class, $ this ->server );
177+ Assert::isInstanceOf ($ this ->server , Server::class );
178178
179179 return $ this ->getHttpClient ()->post (
180180 sprintf ('/api/servers/%s/files/delete ' , $ this ->server ->uuid ),
0 commit comments