@@ -75,6 +75,7 @@ discard block |
||
75 | 75 | } |
76 | 76 | |
77 | 77 | /** |
78 | + * @param string $code |
|
78 | 79 | */ |
79 | 80 | public function setActionCode($code) { |
80 | 81 | $this->actionCode = $code; |
@@ -89,6 +90,7 @@ discard block |
||
89 | 90 | |
90 | 91 | /** |
91 | 92 | * @param int |
93 | + * @param string $seconds |
|
92 | 94 | */ |
93 | 95 | public function setEstimatedTime($seconds) { |
94 | 96 | $this->estimatedTime = $seconds; |
@@ -10,6 +10,7 @@ discard block |
||
10 | 10 | * @param DeploynautLogFile $log |
11 | 11 | * @param DNProject $project |
12 | 12 | * @param type $leaveMaintenancePage |
13 | + * @return void |
|
13 | 14 | */ |
14 | 15 | public function deploy(DNEnvironment $environment, $sha, DeploynautLogFile $log, DNProject $project, $leaveMaintenancePage = false); |
15 | 16 | |
@@ -19,6 +20,7 @@ discard block |
||
19 | 20 | * |
20 | 21 | * @param DNDataTransfer $dataTransfer |
21 | 22 | * @param DeploynautLogFile $log |
23 | + * @return void |
|
22 | 24 | */ |
23 | 25 | public function dataTransfer(DNDataTransfer $dataTransfer, DeploynautLogFile $log); |
24 | 26 | |
@@ -28,6 +30,7 @@ discard block |
||
28 | 30 | * @param DNEnvironment $environment |
29 | 31 | * @param DeploynautLogFile $log |
30 | 32 | * @param DNProject $project |
33 | + * @return void |
|
31 | 34 | */ |
32 | 35 | public function enableMaintenance(DNEnvironment $environment, DeploynautLogFile $log, DNProject $project); |
33 | 36 | |
@@ -37,6 +40,7 @@ discard block |
||
37 | 40 | * @param DNEnvironment $environment |
38 | 41 | * @param DeploynautLogFile $log |
39 | 42 | * @param DNProject $project |
43 | + * @return void |
|
40 | 44 | */ |
41 | 45 | public function disableMaintenance(DNEnvironment $environment, DeploynautLogFile $log, DNProject $project); |
42 | 46 | |
@@ -46,6 +50,7 @@ discard block |
||
46 | 50 | * @param DNEnvironment $environment |
47 | 51 | * @param DeploynautLogFile $log |
48 | 52 | * @param DNProject $project |
53 | + * @return void |
|
49 | 54 | */ |
50 | 55 | public function ping(DNEnvironment $environment, DeploynautLogFile $log, DNProject $project); |
51 | 56 |
@@ -961,7 +961,7 @@ |
||
961 | 961 | * @param array $data |
962 | 962 | * @param Form $form |
963 | 963 | * |
964 | - * @return bool|HTMLText|SS_HTTPResponse |
|
964 | + * @return SS_HTTPResponse|null |
|
965 | 965 | */ |
966 | 966 | public function doCreateEnvironment($data, Form $form) { |
967 | 967 | $this->setCurrentActionType(self::ACTION_ENVIRONMENTS); |
@@ -13,6 +13,7 @@ |
||
13 | 13 | * @param string $sha The SHA of the commit to be deployed |
14 | 14 | * @param string $repositoryDir The directory where the repository resides |
15 | 15 | * @param DeploynautLogFile $log The log to write status output to, including package-generation commands |
16 | + * @return string |
|
16 | 17 | */ |
17 | 18 | public function getPackageFilename( |
18 | 19 | PackageGenerator $generator, |
@@ -23,7 +23,7 @@ discard block |
||
23 | 23 | * Usage: $getReactComponent(YourComponent); |
24 | 24 | * |
25 | 25 | * @param string $name Used to name the DOM elements and obtain the initial model. |
26 | - * @return string A snippet good for adding to a SS template. |
|
26 | + * @return HTMLText A snippet good for adding to a SS template. |
|
27 | 27 | */ |
28 | 28 | public function getReactComponent($name) { |
29 | 29 | $model = $this->getModel($name); |
@@ -120,7 +120,7 @@ discard block |
||
120 | 120 | /** |
121 | 121 | * Decode the data submitted by the form.jsx control. |
122 | 122 | * |
123 | - * @return array |
|
123 | + * @return string |
|
124 | 124 | */ |
125 | 125 | protected function getFormData() { |
126 | 126 | return $this->stripNonPrintables(json_decode($this->request->postVar('Details'), true)); |
@@ -13,6 +13,7 @@ |
||
13 | 13 | * Log message |
14 | 14 | * |
15 | 15 | * @param string $message The message to log |
16 | + * @return void |
|
16 | 17 | */ |
17 | 18 | public function log($message); |
18 | 19 | } |
@@ -101,6 +101,11 @@ |
||
101 | 101 | $this->assertTrue($environment->canAbort($cancellerbygroup)); |
102 | 102 | } |
103 | 103 | |
104 | + /** |
|
105 | + * @param string $assert |
|
106 | + * @param DataObject|null $env |
|
107 | + * @param DataObject|null $member |
|
108 | + */ |
|
104 | 109 | private function checkSnapshots($assert, $env, $member) { |
105 | 110 | $this->$assert($env->canRestore($member)); |
106 | 111 | $this->$assert($env->canBackup($member)); |
@@ -125,6 +125,7 @@ |
||
125 | 125 | /** |
126 | 126 | * Make the dummy deployment step |
127 | 127 | * |
128 | + * @param string $name |
|
128 | 129 | * @return SmokeTestPipelineStep |
129 | 130 | */ |
130 | 131 | public function getDummySmokeTestStep($name) { |
@@ -36,14 +36,23 @@ discard block |
||
36 | 36 | PipelineTest_RecordingMessageSender::clear(); |
37 | 37 | } |
38 | 38 | |
39 | + /** |
|
40 | + * @param string $message |
|
41 | + */ |
|
39 | 42 | protected function assertHasLog($message) { |
40 | 43 | $this->assertTrue(PipelineTest_MockLog::has_message($message), "Assert log \"$message\""); |
41 | 44 | } |
42 | 45 | |
46 | + /** |
|
47 | + * @param string $message |
|
48 | + */ |
|
43 | 49 | protected function assertNotLogged($message) { |
44 | 50 | $this->assertFalse(PipelineTest_MockLog::has_message($message), "Assert not logged \"$message\""); |
45 | 51 | } |
46 | 52 | |
53 | + /** |
|
54 | + * @param string $recipient |
|
55 | + */ |
|
47 | 56 | public function assertSentMessage($message, $recipient) { |
48 | 57 | $this->assertTrue( |
49 | 58 | PipelineTest_RecordingMessageSender::has_message($message, $recipient), |
@@ -51,6 +60,10 @@ discard block |
||
51 | 60 | ); |
52 | 61 | } |
53 | 62 | |
63 | + /** |
|
64 | + * @param string $message |
|
65 | + * @param string $recipient |
|
66 | + */ |
|
54 | 67 | public function assertNotSentMessage($message, $recipient) { |
55 | 68 | $this->assertFalse( |
56 | 69 | PipelineTest_RecordingMessageSender::has_message($message, $recipient), |