@@ -19,9 +19,12 @@ public function __construct(\FFI\CData $pointer)
1919    }
2020
2121    /** 
22-      * Make a new source from a file descriptor (a small integer). 
23-      * Make a new source that is attached to the descriptor. For example: 
24-      *      $source = VipsSource::newFromDescriptor(0) 
22+      * Make a new source from a file descriptor. For example: 
23+      * 
24+      * ```php 
25+      * $source = Source::newFromDescriptor(0); 
26+      * ``` 
27+      * 
2528     * Makes a descriptor attached to stdin. 
2629     * You can pass this source to (for example) @see Image::newFromSource() 
2730     * @throws Exception 
@@ -38,9 +41,12 @@ public static function newFromDescriptor(int $descriptor): self
3841    }
3942
4043    /** 
41-      * Make a new source from a filename. 
42-      * Make a new source that is attached to the named file. For example: 
43-      *      $source = VipsSource::newFromFile("myfile.jpg") 
44+      * Make a new source from a filename. For example: 
45+      * 
46+      * ```php 
47+      * $source = Source::newFromFile("myfile.jpg"); 
48+      * ``` 
49+      * 
4450     * You can pass this source to (for example) @see Image::newFromSource() 
4551     * @throws Exception 
4652     */ 
@@ -56,9 +62,12 @@ public static function newFromFile(string $filename): self
5662    }
5763
5864    /** 
59-      * Make a new source from a filename. 
60-      * Make a new source that uses the provided $data. For example: 
61-      *      $source = VipsSource::newFromFile(file_get_contents("myfile.jpg")) 
65+      * Make a new source from a memory buffer. For example: 
66+      * 
67+      * ```php 
68+      * $source = Source::newFromMemory(file_get_contents("myfile.jpg")); 
69+      * ``` 
70+      * 
6271     * You can pass this source to (for example) @see Image::newFromSource() 
6372     * @throws Exception 
6473     */ 
0 commit comments