@@ -21,7 +21,7 @@ discard block |
||
| 21 | 21 | protected $actions; |
| 22 | 22 | |
| 23 | 23 | /** |
| 24 | - * @param array $data |
|
| 24 | + * @param \stdClass $data |
|
| 25 | 25 | */ |
| 26 | 26 | public function __construct(StdClass $data) |
| 27 | 27 | { |
@@ -32,6 +32,9 @@ discard block |
||
| 32 | 32 | $this->status = new BuildStatus($data->result); |
| 33 | 33 | } |
| 34 | 34 | |
| 35 | + /** |
|
| 36 | + * @return string |
|
| 37 | + */ |
|
| 35 | 38 | public function getDisplayName() |
| 36 | 39 | { |
| 37 | 40 | return $this->displayName; |
@@ -6,25 +6,25 @@ |
||
| 6 | 6 | * @author Caio Almeida <[email protected]> |
| 7 | 7 | * @author Gustavo Lira <[email protected]> |
| 8 | 8 | */ |
| 9 | - class Writer implements Writable |
|
| 10 | - { |
|
| 11 | - /** |
|
| 12 | - * @var string |
|
| 13 | - */ |
|
| 14 | - const MODE = 'w'; |
|
| 9 | + class Writer implements Writable |
|
| 10 | + { |
|
| 11 | + /** |
|
| 12 | + * @var string |
|
| 13 | + */ |
|
| 14 | + const MODE = 'w'; |
|
| 15 | 15 | |
| 16 | - /** |
|
| 17 | - * @param string $path |
|
| 18 | - * @param mixed $data |
|
| 19 | - * @return void |
|
| 20 | - */ |
|
| 21 | - public function write($path, $data) |
|
| 22 | - { |
|
| 23 | - if (!$resource = @fopen($path, self::MODE)) { |
|
| 24 | - throw new CannotWriteException(); |
|
| 25 | - } |
|
| 16 | + /** |
|
| 17 | + * @param string $path |
|
| 18 | + * @param mixed $data |
|
| 19 | + * @return void |
|
| 20 | + */ |
|
| 21 | + public function write($path, $data) |
|
| 22 | + { |
|
| 23 | + if (!$resource = @fopen($path, self::MODE)) { |
|
| 24 | + throw new CannotWriteException(); |
|
| 25 | + } |
|
| 26 | 26 | |
| 27 | - fwrite($resource, $data); |
|
| 28 | - fclose($resource); |
|
| 29 | - } |
|
| 30 | - } |
|
| 27 | + fwrite($resource, $data); |
|
| 28 | + fclose($resource); |
|
| 29 | + } |
|
| 30 | + } |
|