@@ -1,11 +1,11 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * PHPCI - Continuous Integration for PHP |
|
| 4 | - * |
|
| 5 | - * @copyright Copyright 2014, Block 8 Limited. |
|
| 6 | - * @license https://github.com/Block8/PHPCI/blob/master/LICENSE.md |
|
| 7 | - * @link https://www.phptesting.org/ |
|
| 8 | - */ |
|
| 3 | + * PHPCI - Continuous Integration for PHP |
|
| 4 | + * |
|
| 5 | + * @copyright Copyright 2014, Block 8 Limited. |
|
| 6 | + * @license https://github.com/Block8/PHPCI/blob/master/LICENSE.md |
|
| 7 | + * @link https://www.phptesting.org/ |
|
| 8 | + */ |
|
| 9 | 9 | |
| 10 | 10 | namespace PHPCI\Model\Build; |
| 11 | 11 | |
@@ -21,8 +21,8 @@ discard block |
||
| 21 | 21 | { |
| 22 | 22 | |
| 23 | 23 | /** |
| 24 | - * Get link to commit from another source (i.e. Github) |
|
| 25 | - */ |
|
| 24 | + * Get link to commit from another source (i.e. Github) |
|
| 25 | + */ |
|
| 26 | 26 | public function getCommitLink() |
| 27 | 27 | { |
| 28 | 28 | $domain = $this->getProject()->getAccessInformation("domain"); |
@@ -30,8 +30,8 @@ discard block |
||
| 30 | 30 | } |
| 31 | 31 | |
| 32 | 32 | /** |
| 33 | - * Get link to branch from another source (i.e. Github) |
|
| 34 | - */ |
|
| 33 | + * Get link to branch from another source (i.e. Github) |
|
| 34 | + */ |
|
| 35 | 35 | public function getBranchLink() |
| 36 | 36 | { |
| 37 | 37 | $domain = $this->getProject()->getAccessInformation("domain"); |
@@ -52,8 +52,8 @@ discard block |
||
| 52 | 52 | } |
| 53 | 53 | |
| 54 | 54 | /** |
| 55 | - * Get the URL to be used to clone this remote repository. |
|
| 56 | - */ |
|
| 55 | + * Get the URL to be used to clone this remote repository. |
|
| 56 | + */ |
|
| 57 | 57 | protected function getCloneUrl() |
| 58 | 58 | { |
| 59 | 59 | $key = trim($this->getProject()->getSshPrivateKey()); |
@@ -26,7 +26,7 @@ discard block |
||
| 26 | 26 | public function getCommitLink() |
| 27 | 27 | { |
| 28 | 28 | $domain = $this->getProject()->getAccessInformation("domain"); |
| 29 | - return 'http://' . $domain . '/' . $this->getProject()->getReference() . '/commit/' . $this->getCommitId(); |
|
| 29 | + return 'http://'.$domain.'/'.$this->getProject()->getReference().'/commit/'.$this->getCommitId(); |
|
| 30 | 30 | } |
| 31 | 31 | |
| 32 | 32 | /** |
@@ -35,7 +35,7 @@ discard block |
||
| 35 | 35 | public function getBranchLink() |
| 36 | 36 | { |
| 37 | 37 | $domain = $this->getProject()->getAccessInformation("domain"); |
| 38 | - return 'http://' . $domain . '/' . $this->getProject()->getReference() . '/tree/' . $this->getBranch(); |
|
| 38 | + return 'http://'.$domain.'/'.$this->getProject()->getReference().'/tree/'.$this->getBranch(); |
|
| 39 | 39 | } |
| 40 | 40 | |
| 41 | 41 | /** |
@@ -63,13 +63,13 @@ discard block |
||
| 63 | 63 | $domain = $this->getProject()->getAccessInformation("domain"); |
| 64 | 64 | $port = $this->getProject()->getAccessInformation('port'); |
| 65 | 65 | |
| 66 | - $url = $user . '@' . $domain . ':'; |
|
| 66 | + $url = $user.'@'.$domain.':'; |
|
| 67 | 67 | |
| 68 | 68 | if (!empty($port)) { |
| 69 | - $url .= $port . '/'; |
|
| 69 | + $url .= $port.'/'; |
|
| 70 | 70 | } |
| 71 | 71 | |
| 72 | - $url .= $this->getProject()->getReference() . '.git'; |
|
| 72 | + $url .= $this->getProject()->getReference().'.git'; |
|
| 73 | 73 | |
| 74 | 74 | return $url; |
| 75 | 75 | } |
@@ -15,23 +15,23 @@ discard block |
||
| 15 | 15 | class BuildMetaBase extends Model |
| 16 | 16 | { |
| 17 | 17 | /** |
| 18 | - * @var array |
|
| 19 | - */ |
|
| 18 | + * @var array |
|
| 19 | + */ |
|
| 20 | 20 | public static $sleepable = array(); |
| 21 | 21 | |
| 22 | 22 | /** |
| 23 | - * @var string |
|
| 24 | - */ |
|
| 23 | + * @var string |
|
| 24 | + */ |
|
| 25 | 25 | protected $tableName = 'build_meta'; |
| 26 | 26 | |
| 27 | 27 | /** |
| 28 | - * @var string |
|
| 29 | - */ |
|
| 28 | + * @var string |
|
| 29 | + */ |
|
| 30 | 30 | protected $modelName = 'BuildMeta'; |
| 31 | 31 | |
| 32 | 32 | /** |
| 33 | - * @var array |
|
| 34 | - */ |
|
| 33 | + * @var array |
|
| 34 | + */ |
|
| 35 | 35 | protected $data = array( |
| 36 | 36 | 'id' => null, |
| 37 | 37 | 'project_id' => null, |
@@ -41,8 +41,8 @@ discard block |
||
| 41 | 41 | ); |
| 42 | 42 | |
| 43 | 43 | /** |
| 44 | - * @var array |
|
| 45 | - */ |
|
| 44 | + * @var array |
|
| 45 | + */ |
|
| 46 | 46 | protected $getters = array( |
| 47 | 47 | // Direct property getters: |
| 48 | 48 | 'id' => 'getId', |
@@ -57,8 +57,8 @@ discard block |
||
| 57 | 57 | ); |
| 58 | 58 | |
| 59 | 59 | /** |
| 60 | - * @var array |
|
| 61 | - */ |
|
| 60 | + * @var array |
|
| 61 | + */ |
|
| 62 | 62 | protected $setters = array( |
| 63 | 63 | // Direct property setters: |
| 64 | 64 | 'id' => 'setId', |
@@ -73,8 +73,8 @@ discard block |
||
| 73 | 73 | ); |
| 74 | 74 | |
| 75 | 75 | /** |
| 76 | - * @var array |
|
| 77 | - */ |
|
| 76 | + * @var array |
|
| 77 | + */ |
|
| 78 | 78 | public $columns = array( |
| 79 | 79 | 'id' => array( |
| 80 | 80 | 'type' => 'int', |
@@ -105,8 +105,8 @@ discard block |
||
| 105 | 105 | ); |
| 106 | 106 | |
| 107 | 107 | /** |
| 108 | - * @var array |
|
| 109 | - */ |
|
| 108 | + * @var array |
|
| 109 | + */ |
|
| 110 | 110 | public $indexes = array( |
| 111 | 111 | 'PRIMARY' => array('unique' => true, 'columns' => 'id'), |
| 112 | 112 | 'idx_meta_id' => array('unique' => true, 'columns' => 'build_id, meta_key'), |
@@ -114,8 +114,8 @@ discard block |
||
| 114 | 114 | ); |
| 115 | 115 | |
| 116 | 116 | /** |
| 117 | - * @var array |
|
| 118 | - */ |
|
| 117 | + * @var array |
|
| 118 | + */ |
|
| 119 | 119 | public $foreignKeys = array( |
| 120 | 120 | 'build_meta_ibfk_1' => array( |
| 121 | 121 | 'local_col' => 'project_id', |
@@ -134,10 +134,10 @@ discard block |
||
| 134 | 134 | ); |
| 135 | 135 | |
| 136 | 136 | /** |
| 137 | - * Get the value of Id / id. |
|
| 138 | - * |
|
| 139 | - * @return int |
|
| 140 | - */ |
|
| 137 | + * Get the value of Id / id. |
|
| 138 | + * |
|
| 139 | + * @return int |
|
| 140 | + */ |
|
| 141 | 141 | public function getId() |
| 142 | 142 | { |
| 143 | 143 | $rtn = $this->data['id']; |
@@ -146,10 +146,10 @@ discard block |
||
| 146 | 146 | } |
| 147 | 147 | |
| 148 | 148 | /** |
| 149 | - * Get the value of ProjectId / project_id. |
|
| 150 | - * |
|
| 151 | - * @return int |
|
| 152 | - */ |
|
| 149 | + * Get the value of ProjectId / project_id. |
|
| 150 | + * |
|
| 151 | + * @return int |
|
| 152 | + */ |
|
| 153 | 153 | public function getProjectId() |
| 154 | 154 | { |
| 155 | 155 | $rtn = $this->data['project_id']; |
@@ -158,10 +158,10 @@ discard block |
||
| 158 | 158 | } |
| 159 | 159 | |
| 160 | 160 | /** |
| 161 | - * Get the value of BuildId / build_id. |
|
| 162 | - * |
|
| 163 | - * @return int |
|
| 164 | - */ |
|
| 161 | + * Get the value of BuildId / build_id. |
|
| 162 | + * |
|
| 163 | + * @return int |
|
| 164 | + */ |
|
| 165 | 165 | public function getBuildId() |
| 166 | 166 | { |
| 167 | 167 | $rtn = $this->data['build_id']; |
@@ -170,10 +170,10 @@ discard block |
||
| 170 | 170 | } |
| 171 | 171 | |
| 172 | 172 | /** |
| 173 | - * Get the value of MetaKey / meta_key. |
|
| 174 | - * |
|
| 175 | - * @return string |
|
| 176 | - */ |
|
| 173 | + * Get the value of MetaKey / meta_key. |
|
| 174 | + * |
|
| 175 | + * @return string |
|
| 176 | + */ |
|
| 177 | 177 | public function getMetaKey() |
| 178 | 178 | { |
| 179 | 179 | $rtn = $this->data['meta_key']; |
@@ -182,10 +182,10 @@ discard block |
||
| 182 | 182 | } |
| 183 | 183 | |
| 184 | 184 | /** |
| 185 | - * Get the value of MetaValue / meta_value. |
|
| 186 | - * |
|
| 187 | - * @return string |
|
| 188 | - */ |
|
| 185 | + * Get the value of MetaValue / meta_value. |
|
| 186 | + * |
|
| 187 | + * @return string |
|
| 188 | + */ |
|
| 189 | 189 | public function getMetaValue() |
| 190 | 190 | { |
| 191 | 191 | $rtn = $this->data['meta_value']; |
@@ -194,11 +194,11 @@ discard block |
||
| 194 | 194 | } |
| 195 | 195 | |
| 196 | 196 | /** |
| 197 | - * Set the value of Id / id. |
|
| 198 | - * |
|
| 199 | - * Must not be null. |
|
| 200 | - * @param $value int |
|
| 201 | - */ |
|
| 197 | + * Set the value of Id / id. |
|
| 198 | + * |
|
| 199 | + * Must not be null. |
|
| 200 | + * @param $value int |
|
| 201 | + */ |
|
| 202 | 202 | public function setId($value) |
| 203 | 203 | { |
| 204 | 204 | $this->_validateNotNull('Id', $value); |
@@ -214,11 +214,11 @@ discard block |
||
| 214 | 214 | } |
| 215 | 215 | |
| 216 | 216 | /** |
| 217 | - * Set the value of ProjectId / project_id. |
|
| 218 | - * |
|
| 219 | - * Must not be null. |
|
| 220 | - * @param $value int |
|
| 221 | - */ |
|
| 217 | + * Set the value of ProjectId / project_id. |
|
| 218 | + * |
|
| 219 | + * Must not be null. |
|
| 220 | + * @param $value int |
|
| 221 | + */ |
|
| 222 | 222 | public function setProjectId($value) |
| 223 | 223 | { |
| 224 | 224 | $this->_validateNotNull('ProjectId', $value); |
@@ -234,11 +234,11 @@ discard block |
||
| 234 | 234 | } |
| 235 | 235 | |
| 236 | 236 | /** |
| 237 | - * Set the value of BuildId / build_id. |
|
| 238 | - * |
|
| 239 | - * Must not be null. |
|
| 240 | - * @param $value int |
|
| 241 | - */ |
|
| 237 | + * Set the value of BuildId / build_id. |
|
| 238 | + * |
|
| 239 | + * Must not be null. |
|
| 240 | + * @param $value int |
|
| 241 | + */ |
|
| 242 | 242 | public function setBuildId($value) |
| 243 | 243 | { |
| 244 | 244 | $this->_validateNotNull('BuildId', $value); |
@@ -254,11 +254,11 @@ discard block |
||
| 254 | 254 | } |
| 255 | 255 | |
| 256 | 256 | /** |
| 257 | - * Set the value of MetaKey / meta_key. |
|
| 258 | - * |
|
| 259 | - * Must not be null. |
|
| 260 | - * @param $value string |
|
| 261 | - */ |
|
| 257 | + * Set the value of MetaKey / meta_key. |
|
| 258 | + * |
|
| 259 | + * Must not be null. |
|
| 260 | + * @param $value string |
|
| 261 | + */ |
|
| 262 | 262 | public function setMetaKey($value) |
| 263 | 263 | { |
| 264 | 264 | $this->_validateNotNull('MetaKey', $value); |
@@ -274,11 +274,11 @@ discard block |
||
| 274 | 274 | } |
| 275 | 275 | |
| 276 | 276 | /** |
| 277 | - * Set the value of MetaValue / meta_value. |
|
| 278 | - * |
|
| 279 | - * Must not be null. |
|
| 280 | - * @param $value string |
|
| 281 | - */ |
|
| 277 | + * Set the value of MetaValue / meta_value. |
|
| 278 | + * |
|
| 279 | + * Must not be null. |
|
| 280 | + * @param $value string |
|
| 281 | + */ |
|
| 282 | 282 | public function setMetaValue($value) |
| 283 | 283 | { |
| 284 | 284 | $this->_validateNotNull('MetaValue', $value); |
@@ -320,10 +320,10 @@ discard block |
||
| 320 | 320 | } |
| 321 | 321 | |
| 322 | 322 | /** |
| 323 | - * Set Project - Accepts an ID, an array representing a Project or a Project model. |
|
| 324 | - * |
|
| 325 | - * @param $value mixed |
|
| 326 | - */ |
|
| 323 | + * Set Project - Accepts an ID, an array representing a Project or a Project model. |
|
| 324 | + * |
|
| 325 | + * @param $value mixed |
|
| 326 | + */ |
|
| 327 | 327 | public function setProject($value) |
| 328 | 328 | { |
| 329 | 329 | // Is this an instance of Project? |
@@ -341,10 +341,10 @@ discard block |
||
| 341 | 341 | } |
| 342 | 342 | |
| 343 | 343 | /** |
| 344 | - * Set Project - Accepts a Project model. |
|
| 345 | - * |
|
| 346 | - * @param $value \PHPCI\Model\Project |
|
| 347 | - */ |
|
| 344 | + * Set Project - Accepts a Project model. |
|
| 345 | + * |
|
| 346 | + * @param $value \PHPCI\Model\Project |
|
| 347 | + */ |
|
| 348 | 348 | public function setProjectObject(\PHPCI\Model\Project $value) |
| 349 | 349 | { |
| 350 | 350 | return $this->setProjectId($value->getId()); |
@@ -377,10 +377,10 @@ discard block |
||
| 377 | 377 | } |
| 378 | 378 | |
| 379 | 379 | /** |
| 380 | - * Set Build - Accepts an ID, an array representing a Build or a Build model. |
|
| 381 | - * |
|
| 382 | - * @param $value mixed |
|
| 383 | - */ |
|
| 380 | + * Set Build - Accepts an ID, an array representing a Build or a Build model. |
|
| 381 | + * |
|
| 382 | + * @param $value mixed |
|
| 383 | + */ |
|
| 384 | 384 | public function setBuild($value) |
| 385 | 385 | { |
| 386 | 386 | // Is this an instance of Build? |
@@ -398,10 +398,10 @@ discard block |
||
| 398 | 398 | } |
| 399 | 399 | |
| 400 | 400 | /** |
| 401 | - * Set Build - Accepts a Build model. |
|
| 402 | - * |
|
| 403 | - * @param $value \PHPCI\Model\Build |
|
| 404 | - */ |
|
| 401 | + * Set Build - Accepts a Build model. |
|
| 402 | + * |
|
| 403 | + * @param $value \PHPCI\Model\Build |
|
| 404 | + */ |
|
| 405 | 405 | public function setBuildObject(\PHPCI\Model\Build $value) |
| 406 | 406 | { |
| 407 | 407 | return $this->setBuildId($value->getId()); |
@@ -140,7 +140,7 @@ discard block |
||
| 140 | 140 | */ |
| 141 | 141 | public function getId() |
| 142 | 142 | { |
| 143 | - $rtn = $this->data['id']; |
|
| 143 | + $rtn = $this->data['id']; |
|
| 144 | 144 | |
| 145 | 145 | return $rtn; |
| 146 | 146 | } |
@@ -152,7 +152,7 @@ discard block |
||
| 152 | 152 | */ |
| 153 | 153 | public function getProjectId() |
| 154 | 154 | { |
| 155 | - $rtn = $this->data['project_id']; |
|
| 155 | + $rtn = $this->data['project_id']; |
|
| 156 | 156 | |
| 157 | 157 | return $rtn; |
| 158 | 158 | } |
@@ -164,7 +164,7 @@ discard block |
||
| 164 | 164 | */ |
| 165 | 165 | public function getBuildId() |
| 166 | 166 | { |
| 167 | - $rtn = $this->data['build_id']; |
|
| 167 | + $rtn = $this->data['build_id']; |
|
| 168 | 168 | |
| 169 | 169 | return $rtn; |
| 170 | 170 | } |
@@ -176,7 +176,7 @@ discard block |
||
| 176 | 176 | */ |
| 177 | 177 | public function getMetaKey() |
| 178 | 178 | { |
| 179 | - $rtn = $this->data['meta_key']; |
|
| 179 | + $rtn = $this->data['meta_key']; |
|
| 180 | 180 | |
| 181 | 181 | return $rtn; |
| 182 | 182 | } |
@@ -188,7 +188,7 @@ discard block |
||
| 188 | 188 | */ |
| 189 | 189 | public function getMetaValue() |
| 190 | 190 | { |
| 191 | - $rtn = $this->data['meta_value']; |
|
| 191 | + $rtn = $this->data['meta_value']; |
|
| 192 | 192 | |
| 193 | 193 | return $rtn; |
| 194 | 194 | } |
@@ -308,7 +308,7 @@ discard block |
||
| 308 | 308 | return null; |
| 309 | 309 | } |
| 310 | 310 | |
| 311 | - $cacheKey = 'Cache.Project.' . $key; |
|
| 311 | + $cacheKey = 'Cache.Project.'.$key; |
|
| 312 | 312 | $rtn = $this->cache->get($cacheKey, null); |
| 313 | 313 | |
| 314 | 314 | if (empty($rtn)) { |
@@ -365,7 +365,7 @@ discard block |
||
| 365 | 365 | return null; |
| 366 | 366 | } |
| 367 | 367 | |
| 368 | - $cacheKey = 'Cache.Build.' . $key; |
|
| 368 | + $cacheKey = 'Cache.Build.'.$key; |
|
| 369 | 369 | $rtn = $this->cache->get($cacheKey, null); |
| 370 | 370 | |
| 371 | 371 | if (empty($rtn)) { |
@@ -15,23 +15,23 @@ discard block |
||
| 15 | 15 | class ProjectBase extends Model |
| 16 | 16 | { |
| 17 | 17 | /** |
| 18 | - * @var array |
|
| 19 | - */ |
|
| 18 | + * @var array |
|
| 19 | + */ |
|
| 20 | 20 | public static $sleepable = array(); |
| 21 | 21 | |
| 22 | 22 | /** |
| 23 | - * @var string |
|
| 24 | - */ |
|
| 23 | + * @var string |
|
| 24 | + */ |
|
| 25 | 25 | protected $tableName = 'project'; |
| 26 | 26 | |
| 27 | 27 | /** |
| 28 | - * @var string |
|
| 29 | - */ |
|
| 28 | + * @var string |
|
| 29 | + */ |
|
| 30 | 30 | protected $modelName = 'Project'; |
| 31 | 31 | |
| 32 | 32 | /** |
| 33 | - * @var array |
|
| 34 | - */ |
|
| 33 | + * @var array |
|
| 34 | + */ |
|
| 35 | 35 | protected $data = array( |
| 36 | 36 | 'id' => null, |
| 37 | 37 | 'title' => null, |
@@ -49,8 +49,8 @@ discard block |
||
| 49 | 49 | ); |
| 50 | 50 | |
| 51 | 51 | /** |
| 52 | - * @var array |
|
| 53 | - */ |
|
| 52 | + * @var array |
|
| 53 | + */ |
|
| 54 | 54 | protected $getters = array( |
| 55 | 55 | // Direct property getters: |
| 56 | 56 | 'id' => 'getId', |
@@ -72,8 +72,8 @@ discard block |
||
| 72 | 72 | ); |
| 73 | 73 | |
| 74 | 74 | /** |
| 75 | - * @var array |
|
| 76 | - */ |
|
| 75 | + * @var array |
|
| 76 | + */ |
|
| 77 | 77 | protected $setters = array( |
| 78 | 78 | // Direct property setters: |
| 79 | 79 | 'id' => 'setId', |
@@ -95,8 +95,8 @@ discard block |
||
| 95 | 95 | ); |
| 96 | 96 | |
| 97 | 97 | /** |
| 98 | - * @var array |
|
| 99 | - */ |
|
| 98 | + * @var array |
|
| 99 | + */ |
|
| 100 | 100 | public $columns = array( |
| 101 | 101 | 'id' => array( |
| 102 | 102 | 'type' => 'int', |
@@ -169,8 +169,8 @@ discard block |
||
| 169 | 169 | ); |
| 170 | 170 | |
| 171 | 171 | /** |
| 172 | - * @var array |
|
| 173 | - */ |
|
| 172 | + * @var array |
|
| 173 | + */ |
|
| 174 | 174 | public $indexes = array( |
| 175 | 175 | 'PRIMARY' => array('unique' => true, 'columns' => 'id'), |
| 176 | 176 | 'idx_project_title' => array('columns' => 'title'), |
@@ -178,8 +178,8 @@ discard block |
||
| 178 | 178 | ); |
| 179 | 179 | |
| 180 | 180 | /** |
| 181 | - * @var array |
|
| 182 | - */ |
|
| 181 | + * @var array |
|
| 182 | + */ |
|
| 183 | 183 | public $foreignKeys = array( |
| 184 | 184 | 'project_ibfk_1' => array( |
| 185 | 185 | 'local_col' => 'group_id', |
@@ -191,10 +191,10 @@ discard block |
||
| 191 | 191 | ); |
| 192 | 192 | |
| 193 | 193 | /** |
| 194 | - * Get the value of Id / id. |
|
| 195 | - * |
|
| 196 | - * @return int |
|
| 197 | - */ |
|
| 194 | + * Get the value of Id / id. |
|
| 195 | + * |
|
| 196 | + * @return int |
|
| 197 | + */ |
|
| 198 | 198 | public function getId() |
| 199 | 199 | { |
| 200 | 200 | $rtn = $this->data['id']; |
@@ -203,10 +203,10 @@ discard block |
||
| 203 | 203 | } |
| 204 | 204 | |
| 205 | 205 | /** |
| 206 | - * Get the value of Title / title. |
|
| 207 | - * |
|
| 208 | - * @return string |
|
| 209 | - */ |
|
| 206 | + * Get the value of Title / title. |
|
| 207 | + * |
|
| 208 | + * @return string |
|
| 209 | + */ |
|
| 210 | 210 | public function getTitle() |
| 211 | 211 | { |
| 212 | 212 | $rtn = $this->data['title']; |
@@ -215,10 +215,10 @@ discard block |
||
| 215 | 215 | } |
| 216 | 216 | |
| 217 | 217 | /** |
| 218 | - * Get the value of Reference / reference. |
|
| 219 | - * |
|
| 220 | - * @return string |
|
| 221 | - */ |
|
| 218 | + * Get the value of Reference / reference. |
|
| 219 | + * |
|
| 220 | + * @return string |
|
| 221 | + */ |
|
| 222 | 222 | public function getReference() |
| 223 | 223 | { |
| 224 | 224 | $rtn = $this->data['reference']; |
@@ -227,10 +227,10 @@ discard block |
||
| 227 | 227 | } |
| 228 | 228 | |
| 229 | 229 | /** |
| 230 | - * Get the value of Branch / branch. |
|
| 231 | - * |
|
| 232 | - * @return string |
|
| 233 | - */ |
|
| 230 | + * Get the value of Branch / branch. |
|
| 231 | + * |
|
| 232 | + * @return string |
|
| 233 | + */ |
|
| 234 | 234 | public function getBranch() |
| 235 | 235 | { |
| 236 | 236 | $rtn = $this->data['branch']; |
@@ -239,10 +239,10 @@ discard block |
||
| 239 | 239 | } |
| 240 | 240 | |
| 241 | 241 | /** |
| 242 | - * Get the value of SshPrivateKey / ssh_private_key. |
|
| 243 | - * |
|
| 244 | - * @return string |
|
| 245 | - */ |
|
| 242 | + * Get the value of SshPrivateKey / ssh_private_key. |
|
| 243 | + * |
|
| 244 | + * @return string |
|
| 245 | + */ |
|
| 246 | 246 | public function getSshPrivateKey() |
| 247 | 247 | { |
| 248 | 248 | $rtn = $this->data['ssh_private_key']; |
@@ -251,10 +251,10 @@ discard block |
||
| 251 | 251 | } |
| 252 | 252 | |
| 253 | 253 | /** |
| 254 | - * Get the value of Type / type. |
|
| 255 | - * |
|
| 256 | - * @return string |
|
| 257 | - */ |
|
| 254 | + * Get the value of Type / type. |
|
| 255 | + * |
|
| 256 | + * @return string |
|
| 257 | + */ |
|
| 258 | 258 | public function getType() |
| 259 | 259 | { |
| 260 | 260 | $rtn = $this->data['type']; |
@@ -263,10 +263,10 @@ discard block |
||
| 263 | 263 | } |
| 264 | 264 | |
| 265 | 265 | /** |
| 266 | - * Get the value of AccessInformation / access_information. |
|
| 267 | - * |
|
| 268 | - * @return string |
|
| 269 | - */ |
|
| 266 | + * Get the value of AccessInformation / access_information. |
|
| 267 | + * |
|
| 268 | + * @return string |
|
| 269 | + */ |
|
| 270 | 270 | public function getAccessInformation() |
| 271 | 271 | { |
| 272 | 272 | $rtn = $this->data['access_information']; |
@@ -275,10 +275,10 @@ discard block |
||
| 275 | 275 | } |
| 276 | 276 | |
| 277 | 277 | /** |
| 278 | - * Get the value of LastCommit / last_commit. |
|
| 279 | - * |
|
| 280 | - * @return string |
|
| 281 | - */ |
|
| 278 | + * Get the value of LastCommit / last_commit. |
|
| 279 | + * |
|
| 280 | + * @return string |
|
| 281 | + */ |
|
| 282 | 282 | public function getLastCommit() |
| 283 | 283 | { |
| 284 | 284 | $rtn = $this->data['last_commit']; |
@@ -287,10 +287,10 @@ discard block |
||
| 287 | 287 | } |
| 288 | 288 | |
| 289 | 289 | /** |
| 290 | - * Get the value of BuildConfig / build_config. |
|
| 291 | - * |
|
| 292 | - * @return string |
|
| 293 | - */ |
|
| 290 | + * Get the value of BuildConfig / build_config. |
|
| 291 | + * |
|
| 292 | + * @return string |
|
| 293 | + */ |
|
| 294 | 294 | public function getBuildConfig() |
| 295 | 295 | { |
| 296 | 296 | $rtn = $this->data['build_config']; |
@@ -299,10 +299,10 @@ discard block |
||
| 299 | 299 | } |
| 300 | 300 | |
| 301 | 301 | /** |
| 302 | - * Get the value of SshPublicKey / ssh_public_key. |
|
| 303 | - * |
|
| 304 | - * @return string |
|
| 305 | - */ |
|
| 302 | + * Get the value of SshPublicKey / ssh_public_key. |
|
| 303 | + * |
|
| 304 | + * @return string |
|
| 305 | + */ |
|
| 306 | 306 | public function getSshPublicKey() |
| 307 | 307 | { |
| 308 | 308 | $rtn = $this->data['ssh_public_key']; |
@@ -311,10 +311,10 @@ discard block |
||
| 311 | 311 | } |
| 312 | 312 | |
| 313 | 313 | /** |
| 314 | - * Get the value of AllowPublicStatus / allow_public_status. |
|
| 315 | - * |
|
| 316 | - * @return int |
|
| 317 | - */ |
|
| 314 | + * Get the value of AllowPublicStatus / allow_public_status. |
|
| 315 | + * |
|
| 316 | + * @return int |
|
| 317 | + */ |
|
| 318 | 318 | public function getAllowPublicStatus() |
| 319 | 319 | { |
| 320 | 320 | $rtn = $this->data['allow_public_status']; |
@@ -323,10 +323,10 @@ discard block |
||
| 323 | 323 | } |
| 324 | 324 | |
| 325 | 325 | /** |
| 326 | - * Get the value of Archived / archived. |
|
| 327 | - * |
|
| 328 | - * @return int |
|
| 329 | - */ |
|
| 326 | + * Get the value of Archived / archived. |
|
| 327 | + * |
|
| 328 | + * @return int |
|
| 329 | + */ |
|
| 330 | 330 | public function getArchived() |
| 331 | 331 | { |
| 332 | 332 | $rtn = $this->data['archived']; |
@@ -335,10 +335,10 @@ discard block |
||
| 335 | 335 | } |
| 336 | 336 | |
| 337 | 337 | /** |
| 338 | - * Get the value of GroupId / group_id. |
|
| 339 | - * |
|
| 340 | - * @return int |
|
| 341 | - */ |
|
| 338 | + * Get the value of GroupId / group_id. |
|
| 339 | + * |
|
| 340 | + * @return int |
|
| 341 | + */ |
|
| 342 | 342 | public function getGroupId() |
| 343 | 343 | { |
| 344 | 344 | $rtn = $this->data['group_id']; |
@@ -347,11 +347,11 @@ discard block |
||
| 347 | 347 | } |
| 348 | 348 | |
| 349 | 349 | /** |
| 350 | - * Set the value of Id / id. |
|
| 351 | - * |
|
| 352 | - * Must not be null. |
|
| 353 | - * @param $value int |
|
| 354 | - */ |
|
| 350 | + * Set the value of Id / id. |
|
| 351 | + * |
|
| 352 | + * Must not be null. |
|
| 353 | + * @param $value int |
|
| 354 | + */ |
|
| 355 | 355 | public function setId($value) |
| 356 | 356 | { |
| 357 | 357 | $this->_validateNotNull('Id', $value); |
@@ -367,11 +367,11 @@ discard block |
||
| 367 | 367 | } |
| 368 | 368 | |
| 369 | 369 | /** |
| 370 | - * Set the value of Title / title. |
|
| 371 | - * |
|
| 372 | - * Must not be null. |
|
| 373 | - * @param $value string |
|
| 374 | - */ |
|
| 370 | + * Set the value of Title / title. |
|
| 371 | + * |
|
| 372 | + * Must not be null. |
|
| 373 | + * @param $value string |
|
| 374 | + */ |
|
| 375 | 375 | public function setTitle($value) |
| 376 | 376 | { |
| 377 | 377 | $this->_validateNotNull('Title', $value); |
@@ -387,11 +387,11 @@ discard block |
||
| 387 | 387 | } |
| 388 | 388 | |
| 389 | 389 | /** |
| 390 | - * Set the value of Reference / reference. |
|
| 391 | - * |
|
| 392 | - * Must not be null. |
|
| 393 | - * @param $value string |
|
| 394 | - */ |
|
| 390 | + * Set the value of Reference / reference. |
|
| 391 | + * |
|
| 392 | + * Must not be null. |
|
| 393 | + * @param $value string |
|
| 394 | + */ |
|
| 395 | 395 | public function setReference($value) |
| 396 | 396 | { |
| 397 | 397 | $this->_validateNotNull('Reference', $value); |
@@ -407,11 +407,11 @@ discard block |
||
| 407 | 407 | } |
| 408 | 408 | |
| 409 | 409 | /** |
| 410 | - * Set the value of Branch / branch. |
|
| 411 | - * |
|
| 412 | - * Must not be null. |
|
| 413 | - * @param $value string |
|
| 414 | - */ |
|
| 410 | + * Set the value of Branch / branch. |
|
| 411 | + * |
|
| 412 | + * Must not be null. |
|
| 413 | + * @param $value string |
|
| 414 | + */ |
|
| 415 | 415 | public function setBranch($value) |
| 416 | 416 | { |
| 417 | 417 | $this->_validateNotNull('Branch', $value); |
@@ -427,10 +427,10 @@ discard block |
||
| 427 | 427 | } |
| 428 | 428 | |
| 429 | 429 | /** |
| 430 | - * Set the value of SshPrivateKey / ssh_private_key. |
|
| 431 | - * |
|
| 432 | - * @param $value string |
|
| 433 | - */ |
|
| 430 | + * Set the value of SshPrivateKey / ssh_private_key. |
|
| 431 | + * |
|
| 432 | + * @param $value string |
|
| 433 | + */ |
|
| 434 | 434 | public function setSshPrivateKey($value) |
| 435 | 435 | { |
| 436 | 436 | $this->_validateString('SshPrivateKey', $value); |
@@ -445,11 +445,11 @@ discard block |
||
| 445 | 445 | } |
| 446 | 446 | |
| 447 | 447 | /** |
| 448 | - * Set the value of Type / type. |
|
| 449 | - * |
|
| 450 | - * Must not be null. |
|
| 451 | - * @param $value string |
|
| 452 | - */ |
|
| 448 | + * Set the value of Type / type. |
|
| 449 | + * |
|
| 450 | + * Must not be null. |
|
| 451 | + * @param $value string |
|
| 452 | + */ |
|
| 453 | 453 | public function setType($value) |
| 454 | 454 | { |
| 455 | 455 | $this->_validateNotNull('Type', $value); |
@@ -465,10 +465,10 @@ discard block |
||
| 465 | 465 | } |
| 466 | 466 | |
| 467 | 467 | /** |
| 468 | - * Set the value of AccessInformation / access_information. |
|
| 469 | - * |
|
| 470 | - * @param $value string |
|
| 471 | - */ |
|
| 468 | + * Set the value of AccessInformation / access_information. |
|
| 469 | + * |
|
| 470 | + * @param $value string |
|
| 471 | + */ |
|
| 472 | 472 | public function setAccessInformation($value) |
| 473 | 473 | { |
| 474 | 474 | $this->_validateString('AccessInformation', $value); |
@@ -483,10 +483,10 @@ discard block |
||
| 483 | 483 | } |
| 484 | 484 | |
| 485 | 485 | /** |
| 486 | - * Set the value of LastCommit / last_commit. |
|
| 487 | - * |
|
| 488 | - * @param $value string |
|
| 489 | - */ |
|
| 486 | + * Set the value of LastCommit / last_commit. |
|
| 487 | + * |
|
| 488 | + * @param $value string |
|
| 489 | + */ |
|
| 490 | 490 | public function setLastCommit($value) |
| 491 | 491 | { |
| 492 | 492 | $this->_validateString('LastCommit', $value); |
@@ -501,10 +501,10 @@ discard block |
||
| 501 | 501 | } |
| 502 | 502 | |
| 503 | 503 | /** |
| 504 | - * Set the value of BuildConfig / build_config. |
|
| 505 | - * |
|
| 506 | - * @param $value string |
|
| 507 | - */ |
|
| 504 | + * Set the value of BuildConfig / build_config. |
|
| 505 | + * |
|
| 506 | + * @param $value string |
|
| 507 | + */ |
|
| 508 | 508 | public function setBuildConfig($value) |
| 509 | 509 | { |
| 510 | 510 | $this->_validateString('BuildConfig', $value); |
@@ -519,10 +519,10 @@ discard block |
||
| 519 | 519 | } |
| 520 | 520 | |
| 521 | 521 | /** |
| 522 | - * Set the value of SshPublicKey / ssh_public_key. |
|
| 523 | - * |
|
| 524 | - * @param $value string |
|
| 525 | - */ |
|
| 522 | + * Set the value of SshPublicKey / ssh_public_key. |
|
| 523 | + * |
|
| 524 | + * @param $value string |
|
| 525 | + */ |
|
| 526 | 526 | public function setSshPublicKey($value) |
| 527 | 527 | { |
| 528 | 528 | $this->_validateString('SshPublicKey', $value); |
@@ -537,11 +537,11 @@ discard block |
||
| 537 | 537 | } |
| 538 | 538 | |
| 539 | 539 | /** |
| 540 | - * Set the value of AllowPublicStatus / allow_public_status. |
|
| 541 | - * |
|
| 542 | - * Must not be null. |
|
| 543 | - * @param $value int |
|
| 544 | - */ |
|
| 540 | + * Set the value of AllowPublicStatus / allow_public_status. |
|
| 541 | + * |
|
| 542 | + * Must not be null. |
|
| 543 | + * @param $value int |
|
| 544 | + */ |
|
| 545 | 545 | public function setAllowPublicStatus($value) |
| 546 | 546 | { |
| 547 | 547 | $this->_validateNotNull('AllowPublicStatus', $value); |
@@ -557,11 +557,11 @@ discard block |
||
| 557 | 557 | } |
| 558 | 558 | |
| 559 | 559 | /** |
| 560 | - * Set the value of Archived / archived. |
|
| 561 | - * |
|
| 562 | - * Must not be null. |
|
| 563 | - * @param $value int |
|
| 564 | - */ |
|
| 560 | + * Set the value of Archived / archived. |
|
| 561 | + * |
|
| 562 | + * Must not be null. |
|
| 563 | + * @param $value int |
|
| 564 | + */ |
|
| 565 | 565 | public function setArchived($value) |
| 566 | 566 | { |
| 567 | 567 | $this->_validateNotNull('Archived', $value); |
@@ -577,11 +577,11 @@ discard block |
||
| 577 | 577 | } |
| 578 | 578 | |
| 579 | 579 | /** |
| 580 | - * Set the value of GroupId / group_id. |
|
| 581 | - * |
|
| 582 | - * Must not be null. |
|
| 583 | - * @param $value int |
|
| 584 | - */ |
|
| 580 | + * Set the value of GroupId / group_id. |
|
| 581 | + * |
|
| 582 | + * Must not be null. |
|
| 583 | + * @param $value int |
|
| 584 | + */ |
|
| 585 | 585 | public function setGroupId($value) |
| 586 | 586 | { |
| 587 | 587 | $this->_validateNotNull('GroupId', $value); |
@@ -623,10 +623,10 @@ discard block |
||
| 623 | 623 | } |
| 624 | 624 | |
| 625 | 625 | /** |
| 626 | - * Set Group - Accepts an ID, an array representing a ProjectGroup or a ProjectGroup model. |
|
| 627 | - * |
|
| 628 | - * @param $value mixed |
|
| 629 | - */ |
|
| 626 | + * Set Group - Accepts an ID, an array representing a ProjectGroup or a ProjectGroup model. |
|
| 627 | + * |
|
| 628 | + * @param $value mixed |
|
| 629 | + */ |
|
| 630 | 630 | public function setGroup($value) |
| 631 | 631 | { |
| 632 | 632 | // Is this an instance of ProjectGroup? |
@@ -644,10 +644,10 @@ discard block |
||
| 644 | 644 | } |
| 645 | 645 | |
| 646 | 646 | /** |
| 647 | - * Set Group - Accepts a ProjectGroup model. |
|
| 648 | - * |
|
| 649 | - * @param $value \PHPCI\Model\ProjectGroup |
|
| 650 | - */ |
|
| 647 | + * Set Group - Accepts a ProjectGroup model. |
|
| 648 | + * |
|
| 649 | + * @param $value \PHPCI\Model\ProjectGroup |
|
| 650 | + */ |
|
| 651 | 651 | public function setGroupObject(\PHPCI\Model\ProjectGroup $value) |
| 652 | 652 | { |
| 653 | 653 | return $this->setGroupId($value->getId()); |
@@ -197,7 +197,7 @@ discard block |
||
| 197 | 197 | */ |
| 198 | 198 | public function getId() |
| 199 | 199 | { |
| 200 | - $rtn = $this->data['id']; |
|
| 200 | + $rtn = $this->data['id']; |
|
| 201 | 201 | |
| 202 | 202 | return $rtn; |
| 203 | 203 | } |
@@ -209,7 +209,7 @@ discard block |
||
| 209 | 209 | */ |
| 210 | 210 | public function getTitle() |
| 211 | 211 | { |
| 212 | - $rtn = $this->data['title']; |
|
| 212 | + $rtn = $this->data['title']; |
|
| 213 | 213 | |
| 214 | 214 | return $rtn; |
| 215 | 215 | } |
@@ -221,7 +221,7 @@ discard block |
||
| 221 | 221 | */ |
| 222 | 222 | public function getReference() |
| 223 | 223 | { |
| 224 | - $rtn = $this->data['reference']; |
|
| 224 | + $rtn = $this->data['reference']; |
|
| 225 | 225 | |
| 226 | 226 | return $rtn; |
| 227 | 227 | } |
@@ -233,7 +233,7 @@ discard block |
||
| 233 | 233 | */ |
| 234 | 234 | public function getBranch() |
| 235 | 235 | { |
| 236 | - $rtn = $this->data['branch']; |
|
| 236 | + $rtn = $this->data['branch']; |
|
| 237 | 237 | |
| 238 | 238 | return $rtn; |
| 239 | 239 | } |
@@ -245,7 +245,7 @@ discard block |
||
| 245 | 245 | */ |
| 246 | 246 | public function getSshPrivateKey() |
| 247 | 247 | { |
| 248 | - $rtn = $this->data['ssh_private_key']; |
|
| 248 | + $rtn = $this->data['ssh_private_key']; |
|
| 249 | 249 | |
| 250 | 250 | return $rtn; |
| 251 | 251 | } |
@@ -257,7 +257,7 @@ discard block |
||
| 257 | 257 | */ |
| 258 | 258 | public function getType() |
| 259 | 259 | { |
| 260 | - $rtn = $this->data['type']; |
|
| 260 | + $rtn = $this->data['type']; |
|
| 261 | 261 | |
| 262 | 262 | return $rtn; |
| 263 | 263 | } |
@@ -269,7 +269,7 @@ discard block |
||
| 269 | 269 | */ |
| 270 | 270 | public function getAccessInformation() |
| 271 | 271 | { |
| 272 | - $rtn = $this->data['access_information']; |
|
| 272 | + $rtn = $this->data['access_information']; |
|
| 273 | 273 | |
| 274 | 274 | return $rtn; |
| 275 | 275 | } |
@@ -281,7 +281,7 @@ discard block |
||
| 281 | 281 | */ |
| 282 | 282 | public function getLastCommit() |
| 283 | 283 | { |
| 284 | - $rtn = $this->data['last_commit']; |
|
| 284 | + $rtn = $this->data['last_commit']; |
|
| 285 | 285 | |
| 286 | 286 | return $rtn; |
| 287 | 287 | } |
@@ -293,7 +293,7 @@ discard block |
||
| 293 | 293 | */ |
| 294 | 294 | public function getBuildConfig() |
| 295 | 295 | { |
| 296 | - $rtn = $this->data['build_config']; |
|
| 296 | + $rtn = $this->data['build_config']; |
|
| 297 | 297 | |
| 298 | 298 | return $rtn; |
| 299 | 299 | } |
@@ -305,7 +305,7 @@ discard block |
||
| 305 | 305 | */ |
| 306 | 306 | public function getSshPublicKey() |
| 307 | 307 | { |
| 308 | - $rtn = $this->data['ssh_public_key']; |
|
| 308 | + $rtn = $this->data['ssh_public_key']; |
|
| 309 | 309 | |
| 310 | 310 | return $rtn; |
| 311 | 311 | } |
@@ -317,7 +317,7 @@ discard block |
||
| 317 | 317 | */ |
| 318 | 318 | public function getAllowPublicStatus() |
| 319 | 319 | { |
| 320 | - $rtn = $this->data['allow_public_status']; |
|
| 320 | + $rtn = $this->data['allow_public_status']; |
|
| 321 | 321 | |
| 322 | 322 | return $rtn; |
| 323 | 323 | } |
@@ -329,7 +329,7 @@ discard block |
||
| 329 | 329 | */ |
| 330 | 330 | public function getArchived() |
| 331 | 331 | { |
| 332 | - $rtn = $this->data['archived']; |
|
| 332 | + $rtn = $this->data['archived']; |
|
| 333 | 333 | |
| 334 | 334 | return $rtn; |
| 335 | 335 | } |
@@ -341,7 +341,7 @@ discard block |
||
| 341 | 341 | */ |
| 342 | 342 | public function getGroupId() |
| 343 | 343 | { |
| 344 | - $rtn = $this->data['group_id']; |
|
| 344 | + $rtn = $this->data['group_id']; |
|
| 345 | 345 | |
| 346 | 346 | return $rtn; |
| 347 | 347 | } |
@@ -611,7 +611,7 @@ discard block |
||
| 611 | 611 | return null; |
| 612 | 612 | } |
| 613 | 613 | |
| 614 | - $cacheKey = 'Cache.ProjectGroup.' . $key; |
|
| 614 | + $cacheKey = 'Cache.ProjectGroup.'.$key; |
|
| 615 | 615 | $rtn = $this->cache->get($cacheKey, null); |
| 616 | 616 | |
| 617 | 617 | if (empty($rtn)) { |
@@ -370,7 +370,7 @@ discard block |
||
| 370 | 370 | * Set the value of Title / title. |
| 371 | 371 | * |
| 372 | 372 | * Must not be null. |
| 373 | - * @param $value string |
|
| 373 | + * @param string $value string |
|
| 374 | 374 | */ |
| 375 | 375 | public function setTitle($value) |
| 376 | 376 | { |
@@ -390,7 +390,7 @@ discard block |
||
| 390 | 390 | * Set the value of Reference / reference. |
| 391 | 391 | * |
| 392 | 392 | * Must not be null. |
| 393 | - * @param $value string |
|
| 393 | + * @param string $value string |
|
| 394 | 394 | */ |
| 395 | 395 | public function setReference($value) |
| 396 | 396 | { |
@@ -448,7 +448,7 @@ discard block |
||
| 448 | 448 | * Set the value of Type / type. |
| 449 | 449 | * |
| 450 | 450 | * Must not be null. |
| 451 | - * @param $value string |
|
| 451 | + * @param string $value string |
|
| 452 | 452 | */ |
| 453 | 453 | public function setType($value) |
| 454 | 454 | { |
@@ -467,7 +467,7 @@ discard block |
||
| 467 | 467 | /** |
| 468 | 468 | * Set the value of AccessInformation / access_information. |
| 469 | 469 | * |
| 470 | - * @param $value string |
|
| 470 | + * @param string $value string |
|
| 471 | 471 | */ |
| 472 | 472 | public function setAccessInformation($value) |
| 473 | 473 | { |
@@ -540,7 +540,7 @@ discard block |
||
| 540 | 540 | * Set the value of AllowPublicStatus / allow_public_status. |
| 541 | 541 | * |
| 542 | 542 | * Must not be null. |
| 543 | - * @param $value int |
|
| 543 | + * @param integer $value int |
|
| 544 | 544 | */ |
| 545 | 545 | public function setAllowPublicStatus($value) |
| 546 | 546 | { |
@@ -560,7 +560,7 @@ discard block |
||
| 560 | 560 | * Set the value of Archived / archived. |
| 561 | 561 | * |
| 562 | 562 | * Must not be null. |
| 563 | - * @param $value int |
|
| 563 | + * @param boolean $value int |
|
| 564 | 564 | */ |
| 565 | 565 | public function setArchived($value) |
| 566 | 566 | { |
@@ -15,23 +15,23 @@ discard block |
||
| 15 | 15 | class UserBase extends Model |
| 16 | 16 | { |
| 17 | 17 | /** |
| 18 | - * @var array |
|
| 19 | - */ |
|
| 18 | + * @var array |
|
| 19 | + */ |
|
| 20 | 20 | public static $sleepable = array(); |
| 21 | 21 | |
| 22 | 22 | /** |
| 23 | - * @var string |
|
| 24 | - */ |
|
| 23 | + * @var string |
|
| 24 | + */ |
|
| 25 | 25 | protected $tableName = 'user'; |
| 26 | 26 | |
| 27 | 27 | /** |
| 28 | - * @var string |
|
| 29 | - */ |
|
| 28 | + * @var string |
|
| 29 | + */ |
|
| 30 | 30 | protected $modelName = 'User'; |
| 31 | 31 | |
| 32 | 32 | /** |
| 33 | - * @var array |
|
| 34 | - */ |
|
| 33 | + * @var array |
|
| 34 | + */ |
|
| 35 | 35 | protected $data = array( |
| 36 | 36 | 'id' => null, |
| 37 | 37 | 'email' => null, |
@@ -41,8 +41,8 @@ discard block |
||
| 41 | 41 | ); |
| 42 | 42 | |
| 43 | 43 | /** |
| 44 | - * @var array |
|
| 45 | - */ |
|
| 44 | + * @var array |
|
| 45 | + */ |
|
| 46 | 46 | protected $getters = array( |
| 47 | 47 | // Direct property getters: |
| 48 | 48 | 'id' => 'getId', |
@@ -55,8 +55,8 @@ discard block |
||
| 55 | 55 | ); |
| 56 | 56 | |
| 57 | 57 | /** |
| 58 | - * @var array |
|
| 59 | - */ |
|
| 58 | + * @var array |
|
| 59 | + */ |
|
| 60 | 60 | protected $setters = array( |
| 61 | 61 | // Direct property setters: |
| 62 | 62 | 'id' => 'setId', |
@@ -69,8 +69,8 @@ discard block |
||
| 69 | 69 | ); |
| 70 | 70 | |
| 71 | 71 | /** |
| 72 | - * @var array |
|
| 73 | - */ |
|
| 72 | + * @var array |
|
| 73 | + */ |
|
| 74 | 74 | public $columns = array( |
| 75 | 75 | 'id' => array( |
| 76 | 76 | 'type' => 'int', |
@@ -101,8 +101,8 @@ discard block |
||
| 101 | 101 | ); |
| 102 | 102 | |
| 103 | 103 | /** |
| 104 | - * @var array |
|
| 105 | - */ |
|
| 104 | + * @var array |
|
| 105 | + */ |
|
| 106 | 106 | public $indexes = array( |
| 107 | 107 | 'PRIMARY' => array('unique' => true, 'columns' => 'id'), |
| 108 | 108 | 'idx_email' => array('unique' => true, 'columns' => 'email'), |
@@ -111,16 +111,16 @@ discard block |
||
| 111 | 111 | ); |
| 112 | 112 | |
| 113 | 113 | /** |
| 114 | - * @var array |
|
| 115 | - */ |
|
| 114 | + * @var array |
|
| 115 | + */ |
|
| 116 | 116 | public $foreignKeys = array( |
| 117 | 117 | ); |
| 118 | 118 | |
| 119 | 119 | /** |
| 120 | - * Get the value of Id / id. |
|
| 121 | - * |
|
| 122 | - * @return int |
|
| 123 | - */ |
|
| 120 | + * Get the value of Id / id. |
|
| 121 | + * |
|
| 122 | + * @return int |
|
| 123 | + */ |
|
| 124 | 124 | public function getId() |
| 125 | 125 | { |
| 126 | 126 | $rtn = $this->data['id']; |
@@ -129,10 +129,10 @@ discard block |
||
| 129 | 129 | } |
| 130 | 130 | |
| 131 | 131 | /** |
| 132 | - * Get the value of Email / email. |
|
| 133 | - * |
|
| 134 | - * @return string |
|
| 135 | - */ |
|
| 132 | + * Get the value of Email / email. |
|
| 133 | + * |
|
| 134 | + * @return string |
|
| 135 | + */ |
|
| 136 | 136 | public function getEmail() |
| 137 | 137 | { |
| 138 | 138 | $rtn = $this->data['email']; |
@@ -141,10 +141,10 @@ discard block |
||
| 141 | 141 | } |
| 142 | 142 | |
| 143 | 143 | /** |
| 144 | - * Get the value of Hash / hash. |
|
| 145 | - * |
|
| 146 | - * @return string |
|
| 147 | - */ |
|
| 144 | + * Get the value of Hash / hash. |
|
| 145 | + * |
|
| 146 | + * @return string |
|
| 147 | + */ |
|
| 148 | 148 | public function getHash() |
| 149 | 149 | { |
| 150 | 150 | $rtn = $this->data['hash']; |
@@ -153,10 +153,10 @@ discard block |
||
| 153 | 153 | } |
| 154 | 154 | |
| 155 | 155 | /** |
| 156 | - * Get the value of IsAdmin / is_admin. |
|
| 157 | - * |
|
| 158 | - * @return int |
|
| 159 | - */ |
|
| 156 | + * Get the value of IsAdmin / is_admin. |
|
| 157 | + * |
|
| 158 | + * @return int |
|
| 159 | + */ |
|
| 160 | 160 | public function getIsAdmin() |
| 161 | 161 | { |
| 162 | 162 | $rtn = $this->data['is_admin']; |
@@ -165,10 +165,10 @@ discard block |
||
| 165 | 165 | } |
| 166 | 166 | |
| 167 | 167 | /** |
| 168 | - * Get the value of Name / name. |
|
| 169 | - * |
|
| 170 | - * @return string |
|
| 171 | - */ |
|
| 168 | + * Get the value of Name / name. |
|
| 169 | + * |
|
| 170 | + * @return string |
|
| 171 | + */ |
|
| 172 | 172 | public function getName() |
| 173 | 173 | { |
| 174 | 174 | $rtn = $this->data['name']; |
@@ -177,11 +177,11 @@ discard block |
||
| 177 | 177 | } |
| 178 | 178 | |
| 179 | 179 | /** |
| 180 | - * Set the value of Id / id. |
|
| 181 | - * |
|
| 182 | - * Must not be null. |
|
| 183 | - * @param $value int |
|
| 184 | - */ |
|
| 180 | + * Set the value of Id / id. |
|
| 181 | + * |
|
| 182 | + * Must not be null. |
|
| 183 | + * @param $value int |
|
| 184 | + */ |
|
| 185 | 185 | public function setId($value) |
| 186 | 186 | { |
| 187 | 187 | $this->_validateNotNull('Id', $value); |
@@ -197,11 +197,11 @@ discard block |
||
| 197 | 197 | } |
| 198 | 198 | |
| 199 | 199 | /** |
| 200 | - * Set the value of Email / email. |
|
| 201 | - * |
|
| 202 | - * Must not be null. |
|
| 203 | - * @param $value string |
|
| 204 | - */ |
|
| 200 | + * Set the value of Email / email. |
|
| 201 | + * |
|
| 202 | + * Must not be null. |
|
| 203 | + * @param $value string |
|
| 204 | + */ |
|
| 205 | 205 | public function setEmail($value) |
| 206 | 206 | { |
| 207 | 207 | $this->_validateNotNull('Email', $value); |
@@ -217,11 +217,11 @@ discard block |
||
| 217 | 217 | } |
| 218 | 218 | |
| 219 | 219 | /** |
| 220 | - * Set the value of Hash / hash. |
|
| 221 | - * |
|
| 222 | - * Must not be null. |
|
| 223 | - * @param $value string |
|
| 224 | - */ |
|
| 220 | + * Set the value of Hash / hash. |
|
| 221 | + * |
|
| 222 | + * Must not be null. |
|
| 223 | + * @param $value string |
|
| 224 | + */ |
|
| 225 | 225 | public function setHash($value) |
| 226 | 226 | { |
| 227 | 227 | $this->_validateNotNull('Hash', $value); |
@@ -237,11 +237,11 @@ discard block |
||
| 237 | 237 | } |
| 238 | 238 | |
| 239 | 239 | /** |
| 240 | - * Set the value of IsAdmin / is_admin. |
|
| 241 | - * |
|
| 242 | - * Must not be null. |
|
| 243 | - * @param $value int |
|
| 244 | - */ |
|
| 240 | + * Set the value of IsAdmin / is_admin. |
|
| 241 | + * |
|
| 242 | + * Must not be null. |
|
| 243 | + * @param $value int |
|
| 244 | + */ |
|
| 245 | 245 | public function setIsAdmin($value) |
| 246 | 246 | { |
| 247 | 247 | $this->_validateNotNull('IsAdmin', $value); |
@@ -257,11 +257,11 @@ discard block |
||
| 257 | 257 | } |
| 258 | 258 | |
| 259 | 259 | /** |
| 260 | - * Set the value of Name / name. |
|
| 261 | - * |
|
| 262 | - * Must not be null. |
|
| 263 | - * @param $value string |
|
| 264 | - */ |
|
| 260 | + * Set the value of Name / name. |
|
| 261 | + * |
|
| 262 | + * Must not be null. |
|
| 263 | + * @param $value string |
|
| 264 | + */ |
|
| 265 | 265 | public function setName($value) |
| 266 | 266 | { |
| 267 | 267 | $this->_validateNotNull('Name', $value); |
@@ -123,7 +123,7 @@ discard block |
||
| 123 | 123 | */ |
| 124 | 124 | public function getId() |
| 125 | 125 | { |
| 126 | - $rtn = $this->data['id']; |
|
| 126 | + $rtn = $this->data['id']; |
|
| 127 | 127 | |
| 128 | 128 | return $rtn; |
| 129 | 129 | } |
@@ -135,7 +135,7 @@ discard block |
||
| 135 | 135 | */ |
| 136 | 136 | public function getEmail() |
| 137 | 137 | { |
| 138 | - $rtn = $this->data['email']; |
|
| 138 | + $rtn = $this->data['email']; |
|
| 139 | 139 | |
| 140 | 140 | return $rtn; |
| 141 | 141 | } |
@@ -147,7 +147,7 @@ discard block |
||
| 147 | 147 | */ |
| 148 | 148 | public function getHash() |
| 149 | 149 | { |
| 150 | - $rtn = $this->data['hash']; |
|
| 150 | + $rtn = $this->data['hash']; |
|
| 151 | 151 | |
| 152 | 152 | return $rtn; |
| 153 | 153 | } |
@@ -159,7 +159,7 @@ discard block |
||
| 159 | 159 | */ |
| 160 | 160 | public function getIsAdmin() |
| 161 | 161 | { |
| 162 | - $rtn = $this->data['is_admin']; |
|
| 162 | + $rtn = $this->data['is_admin']; |
|
| 163 | 163 | |
| 164 | 164 | return $rtn; |
| 165 | 165 | } |
@@ -171,7 +171,7 @@ discard block |
||
| 171 | 171 | */ |
| 172 | 172 | public function getName() |
| 173 | 173 | { |
| 174 | - $rtn = $this->data['name']; |
|
| 174 | + $rtn = $this->data['name']; |
|
| 175 | 175 | |
| 176 | 176 | return $rtn; |
| 177 | 177 | } |
@@ -15,23 +15,23 @@ discard block |
||
| 15 | 15 | class BuildBase extends Model |
| 16 | 16 | { |
| 17 | 17 | /** |
| 18 | - * @var array |
|
| 19 | - */ |
|
| 18 | + * @var array |
|
| 19 | + */ |
|
| 20 | 20 | public static $sleepable = array(); |
| 21 | 21 | |
| 22 | 22 | /** |
| 23 | - * @var string |
|
| 24 | - */ |
|
| 23 | + * @var string |
|
| 24 | + */ |
|
| 25 | 25 | protected $tableName = 'build'; |
| 26 | 26 | |
| 27 | 27 | /** |
| 28 | - * @var string |
|
| 29 | - */ |
|
| 28 | + * @var string |
|
| 29 | + */ |
|
| 30 | 30 | protected $modelName = 'Build'; |
| 31 | 31 | |
| 32 | 32 | /** |
| 33 | - * @var array |
|
| 34 | - */ |
|
| 33 | + * @var array |
|
| 34 | + */ |
|
| 35 | 35 | protected $data = array( |
| 36 | 36 | 'id' => null, |
| 37 | 37 | 'project_id' => null, |
@@ -48,8 +48,8 @@ discard block |
||
| 48 | 48 | ); |
| 49 | 49 | |
| 50 | 50 | /** |
| 51 | - * @var array |
|
| 52 | - */ |
|
| 51 | + * @var array |
|
| 52 | + */ |
|
| 53 | 53 | protected $getters = array( |
| 54 | 54 | // Direct property getters: |
| 55 | 55 | 'id' => 'getId', |
@@ -70,8 +70,8 @@ discard block |
||
| 70 | 70 | ); |
| 71 | 71 | |
| 72 | 72 | /** |
| 73 | - * @var array |
|
| 74 | - */ |
|
| 73 | + * @var array |
|
| 74 | + */ |
|
| 75 | 75 | protected $setters = array( |
| 76 | 76 | // Direct property setters: |
| 77 | 77 | 'id' => 'setId', |
@@ -92,8 +92,8 @@ discard block |
||
| 92 | 92 | ); |
| 93 | 93 | |
| 94 | 94 | /** |
| 95 | - * @var array |
|
| 96 | - */ |
|
| 95 | + * @var array |
|
| 96 | + */ |
|
| 97 | 97 | public $columns = array( |
| 98 | 98 | 'id' => array( |
| 99 | 99 | 'type' => 'int', |
@@ -161,8 +161,8 @@ discard block |
||
| 161 | 161 | ); |
| 162 | 162 | |
| 163 | 163 | /** |
| 164 | - * @var array |
|
| 165 | - */ |
|
| 164 | + * @var array |
|
| 165 | + */ |
|
| 166 | 166 | public $indexes = array( |
| 167 | 167 | 'PRIMARY' => array('unique' => true, 'columns' => 'id'), |
| 168 | 168 | 'project_id' => array('columns' => 'project_id'), |
@@ -170,8 +170,8 @@ discard block |
||
| 170 | 170 | ); |
| 171 | 171 | |
| 172 | 172 | /** |
| 173 | - * @var array |
|
| 174 | - */ |
|
| 173 | + * @var array |
|
| 174 | + */ |
|
| 175 | 175 | public $foreignKeys = array( |
| 176 | 176 | 'build_ibfk_1' => array( |
| 177 | 177 | 'local_col' => 'project_id', |
@@ -183,10 +183,10 @@ discard block |
||
| 183 | 183 | ); |
| 184 | 184 | |
| 185 | 185 | /** |
| 186 | - * Get the value of Id / id. |
|
| 187 | - * |
|
| 188 | - * @return int |
|
| 189 | - */ |
|
| 186 | + * Get the value of Id / id. |
|
| 187 | + * |
|
| 188 | + * @return int |
|
| 189 | + */ |
|
| 190 | 190 | public function getId() |
| 191 | 191 | { |
| 192 | 192 | $rtn = $this->data['id']; |
@@ -195,10 +195,10 @@ discard block |
||
| 195 | 195 | } |
| 196 | 196 | |
| 197 | 197 | /** |
| 198 | - * Get the value of ProjectId / project_id. |
|
| 199 | - * |
|
| 200 | - * @return int |
|
| 201 | - */ |
|
| 198 | + * Get the value of ProjectId / project_id. |
|
| 199 | + * |
|
| 200 | + * @return int |
|
| 201 | + */ |
|
| 202 | 202 | public function getProjectId() |
| 203 | 203 | { |
| 204 | 204 | $rtn = $this->data['project_id']; |
@@ -207,10 +207,10 @@ discard block |
||
| 207 | 207 | } |
| 208 | 208 | |
| 209 | 209 | /** |
| 210 | - * Get the value of CommitId / commit_id. |
|
| 211 | - * |
|
| 212 | - * @return string |
|
| 213 | - */ |
|
| 210 | + * Get the value of CommitId / commit_id. |
|
| 211 | + * |
|
| 212 | + * @return string |
|
| 213 | + */ |
|
| 214 | 214 | public function getCommitId() |
| 215 | 215 | { |
| 216 | 216 | $rtn = $this->data['commit_id']; |
@@ -219,10 +219,10 @@ discard block |
||
| 219 | 219 | } |
| 220 | 220 | |
| 221 | 221 | /** |
| 222 | - * Get the value of Status / status. |
|
| 223 | - * |
|
| 224 | - * @return int |
|
| 225 | - */ |
|
| 222 | + * Get the value of Status / status. |
|
| 223 | + * |
|
| 224 | + * @return int |
|
| 225 | + */ |
|
| 226 | 226 | public function getStatus() |
| 227 | 227 | { |
| 228 | 228 | $rtn = $this->data['status']; |
@@ -231,10 +231,10 @@ discard block |
||
| 231 | 231 | } |
| 232 | 232 | |
| 233 | 233 | /** |
| 234 | - * Get the value of Log / log. |
|
| 235 | - * |
|
| 236 | - * @return string |
|
| 237 | - */ |
|
| 234 | + * Get the value of Log / log. |
|
| 235 | + * |
|
| 236 | + * @return string |
|
| 237 | + */ |
|
| 238 | 238 | public function getLog() |
| 239 | 239 | { |
| 240 | 240 | $rtn = $this->data['log']; |
@@ -243,10 +243,10 @@ discard block |
||
| 243 | 243 | } |
| 244 | 244 | |
| 245 | 245 | /** |
| 246 | - * Get the value of Branch / branch. |
|
| 247 | - * |
|
| 248 | - * @return string |
|
| 249 | - */ |
|
| 246 | + * Get the value of Branch / branch. |
|
| 247 | + * |
|
| 248 | + * @return string |
|
| 249 | + */ |
|
| 250 | 250 | public function getBranch() |
| 251 | 251 | { |
| 252 | 252 | $rtn = $this->data['branch']; |
@@ -255,10 +255,10 @@ discard block |
||
| 255 | 255 | } |
| 256 | 256 | |
| 257 | 257 | /** |
| 258 | - * Get the value of Created / created. |
|
| 259 | - * |
|
| 260 | - * @return \DateTime |
|
| 261 | - */ |
|
| 258 | + * Get the value of Created / created. |
|
| 259 | + * |
|
| 260 | + * @return \DateTime |
|
| 261 | + */ |
|
| 262 | 262 | public function getCreated() |
| 263 | 263 | { |
| 264 | 264 | $rtn = $this->data['created']; |
@@ -271,10 +271,10 @@ discard block |
||
| 271 | 271 | } |
| 272 | 272 | |
| 273 | 273 | /** |
| 274 | - * Get the value of Started / started. |
|
| 275 | - * |
|
| 276 | - * @return \DateTime |
|
| 277 | - */ |
|
| 274 | + * Get the value of Started / started. |
|
| 275 | + * |
|
| 276 | + * @return \DateTime |
|
| 277 | + */ |
|
| 278 | 278 | public function getStarted() |
| 279 | 279 | { |
| 280 | 280 | $rtn = $this->data['started']; |
@@ -287,10 +287,10 @@ discard block |
||
| 287 | 287 | } |
| 288 | 288 | |
| 289 | 289 | /** |
| 290 | - * Get the value of Finished / finished. |
|
| 291 | - * |
|
| 292 | - * @return \DateTime |
|
| 293 | - */ |
|
| 290 | + * Get the value of Finished / finished. |
|
| 291 | + * |
|
| 292 | + * @return \DateTime |
|
| 293 | + */ |
|
| 294 | 294 | public function getFinished() |
| 295 | 295 | { |
| 296 | 296 | $rtn = $this->data['finished']; |
@@ -303,10 +303,10 @@ discard block |
||
| 303 | 303 | } |
| 304 | 304 | |
| 305 | 305 | /** |
| 306 | - * Get the value of CommitterEmail / committer_email. |
|
| 307 | - * |
|
| 308 | - * @return string |
|
| 309 | - */ |
|
| 306 | + * Get the value of CommitterEmail / committer_email. |
|
| 307 | + * |
|
| 308 | + * @return string |
|
| 309 | + */ |
|
| 310 | 310 | public function getCommitterEmail() |
| 311 | 311 | { |
| 312 | 312 | $rtn = $this->data['committer_email']; |
@@ -315,10 +315,10 @@ discard block |
||
| 315 | 315 | } |
| 316 | 316 | |
| 317 | 317 | /** |
| 318 | - * Get the value of CommitMessage / commit_message. |
|
| 319 | - * |
|
| 320 | - * @return string |
|
| 321 | - */ |
|
| 318 | + * Get the value of CommitMessage / commit_message. |
|
| 319 | + * |
|
| 320 | + * @return string |
|
| 321 | + */ |
|
| 322 | 322 | public function getCommitMessage() |
| 323 | 323 | { |
| 324 | 324 | $rtn = $this->data['commit_message']; |
@@ -327,10 +327,10 @@ discard block |
||
| 327 | 327 | } |
| 328 | 328 | |
| 329 | 329 | /** |
| 330 | - * Get the value of Extra / extra. |
|
| 331 | - * |
|
| 332 | - * @return string |
|
| 333 | - */ |
|
| 330 | + * Get the value of Extra / extra. |
|
| 331 | + * |
|
| 332 | + * @return string |
|
| 333 | + */ |
|
| 334 | 334 | public function getExtra() |
| 335 | 335 | { |
| 336 | 336 | $rtn = $this->data['extra']; |
@@ -339,11 +339,11 @@ discard block |
||
| 339 | 339 | } |
| 340 | 340 | |
| 341 | 341 | /** |
| 342 | - * Set the value of Id / id. |
|
| 343 | - * |
|
| 344 | - * Must not be null. |
|
| 345 | - * @param $value int |
|
| 346 | - */ |
|
| 342 | + * Set the value of Id / id. |
|
| 343 | + * |
|
| 344 | + * Must not be null. |
|
| 345 | + * @param $value int |
|
| 346 | + */ |
|
| 347 | 347 | public function setId($value) |
| 348 | 348 | { |
| 349 | 349 | $this->_validateNotNull('Id', $value); |
@@ -359,11 +359,11 @@ discard block |
||
| 359 | 359 | } |
| 360 | 360 | |
| 361 | 361 | /** |
| 362 | - * Set the value of ProjectId / project_id. |
|
| 363 | - * |
|
| 364 | - * Must not be null. |
|
| 365 | - * @param $value int |
|
| 366 | - */ |
|
| 362 | + * Set the value of ProjectId / project_id. |
|
| 363 | + * |
|
| 364 | + * Must not be null. |
|
| 365 | + * @param $value int |
|
| 366 | + */ |
|
| 367 | 367 | public function setProjectId($value) |
| 368 | 368 | { |
| 369 | 369 | $this->_validateNotNull('ProjectId', $value); |
@@ -379,11 +379,11 @@ discard block |
||
| 379 | 379 | } |
| 380 | 380 | |
| 381 | 381 | /** |
| 382 | - * Set the value of CommitId / commit_id. |
|
| 383 | - * |
|
| 384 | - * Must not be null. |
|
| 385 | - * @param $value string |
|
| 386 | - */ |
|
| 382 | + * Set the value of CommitId / commit_id. |
|
| 383 | + * |
|
| 384 | + * Must not be null. |
|
| 385 | + * @param $value string |
|
| 386 | + */ |
|
| 387 | 387 | public function setCommitId($value) |
| 388 | 388 | { |
| 389 | 389 | $this->_validateNotNull('CommitId', $value); |
@@ -399,11 +399,11 @@ discard block |
||
| 399 | 399 | } |
| 400 | 400 | |
| 401 | 401 | /** |
| 402 | - * Set the value of Status / status. |
|
| 403 | - * |
|
| 404 | - * Must not be null. |
|
| 405 | - * @param $value int |
|
| 406 | - */ |
|
| 402 | + * Set the value of Status / status. |
|
| 403 | + * |
|
| 404 | + * Must not be null. |
|
| 405 | + * @param $value int |
|
| 406 | + */ |
|
| 407 | 407 | public function setStatus($value) |
| 408 | 408 | { |
| 409 | 409 | $this->_validateNotNull('Status', $value); |
@@ -419,10 +419,10 @@ discard block |
||
| 419 | 419 | } |
| 420 | 420 | |
| 421 | 421 | /** |
| 422 | - * Set the value of Log / log. |
|
| 423 | - * |
|
| 424 | - * @param $value string |
|
| 425 | - */ |
|
| 422 | + * Set the value of Log / log. |
|
| 423 | + * |
|
| 424 | + * @param $value string |
|
| 425 | + */ |
|
| 426 | 426 | public function setLog($value) |
| 427 | 427 | { |
| 428 | 428 | $this->_validateString('Log', $value); |
@@ -437,11 +437,11 @@ discard block |
||
| 437 | 437 | } |
| 438 | 438 | |
| 439 | 439 | /** |
| 440 | - * Set the value of Branch / branch. |
|
| 441 | - * |
|
| 442 | - * Must not be null. |
|
| 443 | - * @param $value string |
|
| 444 | - */ |
|
| 440 | + * Set the value of Branch / branch. |
|
| 441 | + * |
|
| 442 | + * Must not be null. |
|
| 443 | + * @param $value string |
|
| 444 | + */ |
|
| 445 | 445 | public function setBranch($value) |
| 446 | 446 | { |
| 447 | 447 | $this->_validateNotNull('Branch', $value); |
@@ -457,10 +457,10 @@ discard block |
||
| 457 | 457 | } |
| 458 | 458 | |
| 459 | 459 | /** |
| 460 | - * Set the value of Created / created. |
|
| 461 | - * |
|
| 462 | - * @param $value \DateTime |
|
| 463 | - */ |
|
| 460 | + * Set the value of Created / created. |
|
| 461 | + * |
|
| 462 | + * @param $value \DateTime |
|
| 463 | + */ |
|
| 464 | 464 | public function setCreated($value) |
| 465 | 465 | { |
| 466 | 466 | $this->_validateDate('Created', $value); |
@@ -475,10 +475,10 @@ discard block |
||
| 475 | 475 | } |
| 476 | 476 | |
| 477 | 477 | /** |
| 478 | - * Set the value of Started / started. |
|
| 479 | - * |
|
| 480 | - * @param $value \DateTime |
|
| 481 | - */ |
|
| 478 | + * Set the value of Started / started. |
|
| 479 | + * |
|
| 480 | + * @param $value \DateTime |
|
| 481 | + */ |
|
| 482 | 482 | public function setStarted($value) |
| 483 | 483 | { |
| 484 | 484 | $this->_validateDate('Started', $value); |
@@ -493,10 +493,10 @@ discard block |
||
| 493 | 493 | } |
| 494 | 494 | |
| 495 | 495 | /** |
| 496 | - * Set the value of Finished / finished. |
|
| 497 | - * |
|
| 498 | - * @param $value \DateTime |
|
| 499 | - */ |
|
| 496 | + * Set the value of Finished / finished. |
|
| 497 | + * |
|
| 498 | + * @param $value \DateTime |
|
| 499 | + */ |
|
| 500 | 500 | public function setFinished($value) |
| 501 | 501 | { |
| 502 | 502 | $this->_validateDate('Finished', $value); |
@@ -511,10 +511,10 @@ discard block |
||
| 511 | 511 | } |
| 512 | 512 | |
| 513 | 513 | /** |
| 514 | - * Set the value of CommitterEmail / committer_email. |
|
| 515 | - * |
|
| 516 | - * @param $value string |
|
| 517 | - */ |
|
| 514 | + * Set the value of CommitterEmail / committer_email. |
|
| 515 | + * |
|
| 516 | + * @param $value string |
|
| 517 | + */ |
|
| 518 | 518 | public function setCommitterEmail($value) |
| 519 | 519 | { |
| 520 | 520 | $this->_validateString('CommitterEmail', $value); |
@@ -529,10 +529,10 @@ discard block |
||
| 529 | 529 | } |
| 530 | 530 | |
| 531 | 531 | /** |
| 532 | - * Set the value of CommitMessage / commit_message. |
|
| 533 | - * |
|
| 534 | - * @param $value string |
|
| 535 | - */ |
|
| 532 | + * Set the value of CommitMessage / commit_message. |
|
| 533 | + * |
|
| 534 | + * @param $value string |
|
| 535 | + */ |
|
| 536 | 536 | public function setCommitMessage($value) |
| 537 | 537 | { |
| 538 | 538 | $this->_validateString('CommitMessage', $value); |
@@ -547,10 +547,10 @@ discard block |
||
| 547 | 547 | } |
| 548 | 548 | |
| 549 | 549 | /** |
| 550 | - * Set the value of Extra / extra. |
|
| 551 | - * |
|
| 552 | - * @param $value string |
|
| 553 | - */ |
|
| 550 | + * Set the value of Extra / extra. |
|
| 551 | + * |
|
| 552 | + * @param $value string |
|
| 553 | + */ |
|
| 554 | 554 | public function setExtra($value) |
| 555 | 555 | { |
| 556 | 556 | $this->_validateString('Extra', $value); |
@@ -591,10 +591,10 @@ discard block |
||
| 591 | 591 | } |
| 592 | 592 | |
| 593 | 593 | /** |
| 594 | - * Set Project - Accepts an ID, an array representing a Project or a Project model. |
|
| 595 | - * |
|
| 596 | - * @param $value mixed |
|
| 597 | - */ |
|
| 594 | + * Set Project - Accepts an ID, an array representing a Project or a Project model. |
|
| 595 | + * |
|
| 596 | + * @param $value mixed |
|
| 597 | + */ |
|
| 598 | 598 | public function setProject($value) |
| 599 | 599 | { |
| 600 | 600 | // Is this an instance of Project? |
@@ -612,10 +612,10 @@ discard block |
||
| 612 | 612 | } |
| 613 | 613 | |
| 614 | 614 | /** |
| 615 | - * Set Project - Accepts a Project model. |
|
| 616 | - * |
|
| 617 | - * @param $value \PHPCI\Model\Project |
|
| 618 | - */ |
|
| 615 | + * Set Project - Accepts a Project model. |
|
| 616 | + * |
|
| 617 | + * @param $value \PHPCI\Model\Project |
|
| 618 | + */ |
|
| 619 | 619 | public function setProjectObject(\PHPCI\Model\Project $value) |
| 620 | 620 | { |
| 621 | 621 | return $this->setProjectId($value->getId()); |
@@ -189,7 +189,7 @@ discard block |
||
| 189 | 189 | */ |
| 190 | 190 | public function getId() |
| 191 | 191 | { |
| 192 | - $rtn = $this->data['id']; |
|
| 192 | + $rtn = $this->data['id']; |
|
| 193 | 193 | |
| 194 | 194 | return $rtn; |
| 195 | 195 | } |
@@ -201,7 +201,7 @@ discard block |
||
| 201 | 201 | */ |
| 202 | 202 | public function getProjectId() |
| 203 | 203 | { |
| 204 | - $rtn = $this->data['project_id']; |
|
| 204 | + $rtn = $this->data['project_id']; |
|
| 205 | 205 | |
| 206 | 206 | return $rtn; |
| 207 | 207 | } |
@@ -213,7 +213,7 @@ discard block |
||
| 213 | 213 | */ |
| 214 | 214 | public function getCommitId() |
| 215 | 215 | { |
| 216 | - $rtn = $this->data['commit_id']; |
|
| 216 | + $rtn = $this->data['commit_id']; |
|
| 217 | 217 | |
| 218 | 218 | return $rtn; |
| 219 | 219 | } |
@@ -225,7 +225,7 @@ discard block |
||
| 225 | 225 | */ |
| 226 | 226 | public function getStatus() |
| 227 | 227 | { |
| 228 | - $rtn = $this->data['status']; |
|
| 228 | + $rtn = $this->data['status']; |
|
| 229 | 229 | |
| 230 | 230 | return $rtn; |
| 231 | 231 | } |
@@ -237,7 +237,7 @@ discard block |
||
| 237 | 237 | */ |
| 238 | 238 | public function getLog() |
| 239 | 239 | { |
| 240 | - $rtn = $this->data['log']; |
|
| 240 | + $rtn = $this->data['log']; |
|
| 241 | 241 | |
| 242 | 242 | return $rtn; |
| 243 | 243 | } |
@@ -249,7 +249,7 @@ discard block |
||
| 249 | 249 | */ |
| 250 | 250 | public function getBranch() |
| 251 | 251 | { |
| 252 | - $rtn = $this->data['branch']; |
|
| 252 | + $rtn = $this->data['branch']; |
|
| 253 | 253 | |
| 254 | 254 | return $rtn; |
| 255 | 255 | } |
@@ -261,10 +261,10 @@ discard block |
||
| 261 | 261 | */ |
| 262 | 262 | public function getCreated() |
| 263 | 263 | { |
| 264 | - $rtn = $this->data['created']; |
|
| 264 | + $rtn = $this->data['created']; |
|
| 265 | 265 | |
| 266 | 266 | if (!empty($rtn)) { |
| 267 | - $rtn = new \DateTime($rtn); |
|
| 267 | + $rtn = new \DateTime($rtn); |
|
| 268 | 268 | } |
| 269 | 269 | |
| 270 | 270 | return $rtn; |
@@ -277,10 +277,10 @@ discard block |
||
| 277 | 277 | */ |
| 278 | 278 | public function getStarted() |
| 279 | 279 | { |
| 280 | - $rtn = $this->data['started']; |
|
| 280 | + $rtn = $this->data['started']; |
|
| 281 | 281 | |
| 282 | 282 | if (!empty($rtn)) { |
| 283 | - $rtn = new \DateTime($rtn); |
|
| 283 | + $rtn = new \DateTime($rtn); |
|
| 284 | 284 | } |
| 285 | 285 | |
| 286 | 286 | return $rtn; |
@@ -293,10 +293,10 @@ discard block |
||
| 293 | 293 | */ |
| 294 | 294 | public function getFinished() |
| 295 | 295 | { |
| 296 | - $rtn = $this->data['finished']; |
|
| 296 | + $rtn = $this->data['finished']; |
|
| 297 | 297 | |
| 298 | 298 | if (!empty($rtn)) { |
| 299 | - $rtn = new \DateTime($rtn); |
|
| 299 | + $rtn = new \DateTime($rtn); |
|
| 300 | 300 | } |
| 301 | 301 | |
| 302 | 302 | return $rtn; |
@@ -309,7 +309,7 @@ discard block |
||
| 309 | 309 | */ |
| 310 | 310 | public function getCommitterEmail() |
| 311 | 311 | { |
| 312 | - $rtn = $this->data['committer_email']; |
|
| 312 | + $rtn = $this->data['committer_email']; |
|
| 313 | 313 | |
| 314 | 314 | return $rtn; |
| 315 | 315 | } |
@@ -321,7 +321,7 @@ discard block |
||
| 321 | 321 | */ |
| 322 | 322 | public function getCommitMessage() |
| 323 | 323 | { |
| 324 | - $rtn = $this->data['commit_message']; |
|
| 324 | + $rtn = $this->data['commit_message']; |
|
| 325 | 325 | |
| 326 | 326 | return $rtn; |
| 327 | 327 | } |
@@ -333,7 +333,7 @@ discard block |
||
| 333 | 333 | */ |
| 334 | 334 | public function getExtra() |
| 335 | 335 | { |
| 336 | - $rtn = $this->data['extra']; |
|
| 336 | + $rtn = $this->data['extra']; |
|
| 337 | 337 | |
| 338 | 338 | return $rtn; |
| 339 | 339 | } |
@@ -579,7 +579,7 @@ discard block |
||
| 579 | 579 | return null; |
| 580 | 580 | } |
| 581 | 581 | |
| 582 | - $cacheKey = 'Cache.Project.' . $key; |
|
| 582 | + $cacheKey = 'Cache.Project.'.$key; |
|
| 583 | 583 | $rtn = $this->cache->get($cacheKey, null); |
| 584 | 584 | |
| 585 | 585 | if (empty($rtn)) { |
@@ -421,7 +421,7 @@ discard block |
||
| 421 | 421 | /** |
| 422 | 422 | * Set the value of Log / log. |
| 423 | 423 | * |
| 424 | - * @param $value string |
|
| 424 | + * @param string $value string |
|
| 425 | 425 | */ |
| 426 | 426 | public function setLog($value) |
| 427 | 427 | { |
@@ -459,7 +459,7 @@ discard block |
||
| 459 | 459 | /** |
| 460 | 460 | * Set the value of Created / created. |
| 461 | 461 | * |
| 462 | - * @param $value \DateTime |
|
| 462 | + * @param \DateTime $value \DateTime |
|
| 463 | 463 | */ |
| 464 | 464 | public function setCreated($value) |
| 465 | 465 | { |
@@ -477,7 +477,7 @@ discard block |
||
| 477 | 477 | /** |
| 478 | 478 | * Set the value of Started / started. |
| 479 | 479 | * |
| 480 | - * @param $value \DateTime |
|
| 480 | + * @param \DateTime $value \DateTime |
|
| 481 | 481 | */ |
| 482 | 482 | public function setStarted($value) |
| 483 | 483 | { |
@@ -495,7 +495,7 @@ discard block |
||
| 495 | 495 | /** |
| 496 | 496 | * Set the value of Finished / finished. |
| 497 | 497 | * |
| 498 | - * @param $value \DateTime |
|
| 498 | + * @param \DateTime $value \DateTime |
|
| 499 | 499 | */ |
| 500 | 500 | public function setFinished($value) |
| 501 | 501 | { |
@@ -549,7 +549,7 @@ discard block |
||
| 549 | 549 | /** |
| 550 | 550 | * Set the value of Extra / extra. |
| 551 | 551 | * |
| 552 | - * @param $value string |
|
| 552 | + * @param string $value string |
|
| 553 | 553 | */ |
| 554 | 554 | public function setExtra($value) |
| 555 | 555 | { |
@@ -593,7 +593,7 @@ discard block |
||
| 593 | 593 | /** |
| 594 | 594 | * Set Project - Accepts an ID, an array representing a Project or a Project model. |
| 595 | 595 | * |
| 596 | - * @param $value mixed |
|
| 596 | + * @param Model\Project $value mixed |
|
| 597 | 597 | */ |
| 598 | 598 | public function setProject($value) |
| 599 | 599 | { |
@@ -15,31 +15,31 @@ discard block |
||
| 15 | 15 | class ProjectGroupBase extends Model |
| 16 | 16 | { |
| 17 | 17 | /** |
| 18 | - * @var array |
|
| 19 | - */ |
|
| 18 | + * @var array |
|
| 19 | + */ |
|
| 20 | 20 | public static $sleepable = array(); |
| 21 | 21 | |
| 22 | 22 | /** |
| 23 | - * @var string |
|
| 24 | - */ |
|
| 23 | + * @var string |
|
| 24 | + */ |
|
| 25 | 25 | protected $tableName = 'project_group'; |
| 26 | 26 | |
| 27 | 27 | /** |
| 28 | - * @var string |
|
| 29 | - */ |
|
| 28 | + * @var string |
|
| 29 | + */ |
|
| 30 | 30 | protected $modelName = 'ProjectGroup'; |
| 31 | 31 | |
| 32 | 32 | /** |
| 33 | - * @var array |
|
| 34 | - */ |
|
| 33 | + * @var array |
|
| 34 | + */ |
|
| 35 | 35 | protected $data = array( |
| 36 | 36 | 'id' => null, |
| 37 | 37 | 'title' => null, |
| 38 | 38 | ); |
| 39 | 39 | |
| 40 | 40 | /** |
| 41 | - * @var array |
|
| 42 | - */ |
|
| 41 | + * @var array |
|
| 42 | + */ |
|
| 43 | 43 | protected $getters = array( |
| 44 | 44 | // Direct property getters: |
| 45 | 45 | 'id' => 'getId', |
@@ -49,8 +49,8 @@ discard block |
||
| 49 | 49 | ); |
| 50 | 50 | |
| 51 | 51 | /** |
| 52 | - * @var array |
|
| 53 | - */ |
|
| 52 | + * @var array |
|
| 53 | + */ |
|
| 54 | 54 | protected $setters = array( |
| 55 | 55 | // Direct property setters: |
| 56 | 56 | 'id' => 'setId', |
@@ -60,8 +60,8 @@ discard block |
||
| 60 | 60 | ); |
| 61 | 61 | |
| 62 | 62 | /** |
| 63 | - * @var array |
|
| 64 | - */ |
|
| 63 | + * @var array |
|
| 64 | + */ |
|
| 65 | 65 | public $columns = array( |
| 66 | 66 | 'id' => array( |
| 67 | 67 | 'type' => 'int', |
@@ -78,23 +78,23 @@ discard block |
||
| 78 | 78 | ); |
| 79 | 79 | |
| 80 | 80 | /** |
| 81 | - * @var array |
|
| 82 | - */ |
|
| 81 | + * @var array |
|
| 82 | + */ |
|
| 83 | 83 | public $indexes = array( |
| 84 | 84 | 'PRIMARY' => array('unique' => true, 'columns' => 'id'), |
| 85 | 85 | ); |
| 86 | 86 | |
| 87 | 87 | /** |
| 88 | - * @var array |
|
| 89 | - */ |
|
| 88 | + * @var array |
|
| 89 | + */ |
|
| 90 | 90 | public $foreignKeys = array( |
| 91 | 91 | ); |
| 92 | 92 | |
| 93 | 93 | /** |
| 94 | - * Get the value of Id / id. |
|
| 95 | - * |
|
| 96 | - * @return int |
|
| 97 | - */ |
|
| 94 | + * Get the value of Id / id. |
|
| 95 | + * |
|
| 96 | + * @return int |
|
| 97 | + */ |
|
| 98 | 98 | public function getId() |
| 99 | 99 | { |
| 100 | 100 | $rtn = $this->data['id']; |
@@ -103,10 +103,10 @@ discard block |
||
| 103 | 103 | } |
| 104 | 104 | |
| 105 | 105 | /** |
| 106 | - * Get the value of Title / title. |
|
| 107 | - * |
|
| 108 | - * @return string |
|
| 109 | - */ |
|
| 106 | + * Get the value of Title / title. |
|
| 107 | + * |
|
| 108 | + * @return string |
|
| 109 | + */ |
|
| 110 | 110 | public function getTitle() |
| 111 | 111 | { |
| 112 | 112 | $rtn = $this->data['title']; |
@@ -115,11 +115,11 @@ discard block |
||
| 115 | 115 | } |
| 116 | 116 | |
| 117 | 117 | /** |
| 118 | - * Set the value of Id / id. |
|
| 119 | - * |
|
| 120 | - * Must not be null. |
|
| 121 | - * @param $value int |
|
| 122 | - */ |
|
| 118 | + * Set the value of Id / id. |
|
| 119 | + * |
|
| 120 | + * Must not be null. |
|
| 121 | + * @param $value int |
|
| 122 | + */ |
|
| 123 | 123 | public function setId($value) |
| 124 | 124 | { |
| 125 | 125 | $this->_validateNotNull('Id', $value); |
@@ -135,11 +135,11 @@ discard block |
||
| 135 | 135 | } |
| 136 | 136 | |
| 137 | 137 | /** |
| 138 | - * Set the value of Title / title. |
|
| 139 | - * |
|
| 140 | - * Must not be null. |
|
| 141 | - * @param $value string |
|
| 142 | - */ |
|
| 138 | + * Set the value of Title / title. |
|
| 139 | + * |
|
| 140 | + * Must not be null. |
|
| 141 | + * @param $value string |
|
| 142 | + */ |
|
| 143 | 143 | public function setTitle($value) |
| 144 | 144 | { |
| 145 | 145 | $this->_validateNotNull('Title', $value); |
@@ -97,7 +97,7 @@ discard block |
||
| 97 | 97 | */ |
| 98 | 98 | public function getId() |
| 99 | 99 | { |
| 100 | - $rtn = $this->data['id']; |
|
| 100 | + $rtn = $this->data['id']; |
|
| 101 | 101 | |
| 102 | 102 | return $rtn; |
| 103 | 103 | } |
@@ -109,7 +109,7 @@ discard block |
||
| 109 | 109 | */ |
| 110 | 110 | public function getTitle() |
| 111 | 111 | { |
| 112 | - $rtn = $this->data['title']; |
|
| 112 | + $rtn = $this->data['title']; |
|
| 113 | 113 | |
| 114 | 114 | return $rtn; |
| 115 | 115 | } |
@@ -1,11 +1,11 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * PHPCI - Continuous Integration for PHP |
|
| 4 | - * |
|
| 5 | - * @copyright Copyright 2015, Block 8 Limited. |
|
| 6 | - * @license https://github.com/Block8/PHPCI/blob/master/LICENSE.md |
|
| 7 | - * @link https://www.phptesting.org/ |
|
| 8 | - */ |
|
| 3 | + * PHPCI - Continuous Integration for PHP |
|
| 4 | + * |
|
| 5 | + * @copyright Copyright 2015, Block 8 Limited. |
|
| 6 | + * @license https://github.com/Block8/PHPCI/blob/master/LICENSE.md |
|
| 7 | + * @link https://www.phptesting.org/ |
|
| 8 | + */ |
|
| 9 | 9 | |
| 10 | 10 | namespace PHPCI\Plugin; |
| 11 | 11 | |
@@ -49,8 +49,8 @@ discard block |
||
| 49 | 49 | } |
| 50 | 50 | |
| 51 | 51 | /** |
| 52 | - * Copies files from the root of the build directory into the target folder |
|
| 53 | - */ |
|
| 52 | + * Copies files from the root of the build directory into the target folder |
|
| 53 | + */ |
|
| 54 | 54 | public function execute() |
| 55 | 55 | { |
| 56 | 56 | if (empty($this->webhookUrl)) { |
@@ -45,7 +45,7 @@ |
||
| 45 | 45 | $this->reason = $options['reason']; |
| 46 | 46 | } |
| 47 | 47 | |
| 48 | - $this->updateOnly = isset($options['update_only']) ? (bool) $options['update_only'] : true; |
|
| 48 | + $this->updateOnly = isset($options['update_only']) ? (bool)$options['update_only'] : true; |
|
| 49 | 49 | } |
| 50 | 50 | |
| 51 | 51 | /** |
@@ -62,10 +62,10 @@ discard block |
||
| 62 | 62 | $this->directory = isset($options['directory']) ? $options['directory'] : $phpci->buildPath; |
| 63 | 63 | |
| 64 | 64 | $title = $phpci->getBuildProjectTitle(); |
| 65 | - $this->summary = $title . '-summary.xml'; |
|
| 66 | - $this->pyramid = $title . '-pyramid.svg'; |
|
| 67 | - $this->chart = $title . '-chart.svg'; |
|
| 68 | - $this->location = $this->phpci->buildPath . '..' . DIRECTORY_SEPARATOR . 'pdepend'; |
|
| 65 | + $this->summary = $title.'-summary.xml'; |
|
| 66 | + $this->pyramid = $title.'-pyramid.svg'; |
|
| 67 | + $this->chart = $title.'-chart.svg'; |
|
| 68 | + $this->location = $this->phpci->buildPath.'..'.DIRECTORY_SEPARATOR.'pdepend'; |
|
| 69 | 69 | } |
| 70 | 70 | |
| 71 | 71 | /** |
@@ -82,22 +82,22 @@ discard block |
||
| 82 | 82 | |
| 83 | 83 | $pdepend = $this->phpci->findBinary('pdepend'); |
| 84 | 84 | |
| 85 | - $cmd = $pdepend . ' --summary-xml="%s" --jdepend-chart="%s" --overview-pyramid="%s" %s "%s"'; |
|
| 85 | + $cmd = $pdepend.' --summary-xml="%s" --jdepend-chart="%s" --overview-pyramid="%s" %s "%s"'; |
|
| 86 | 86 | |
| 87 | 87 | $this->removeBuildArtifacts(); |
| 88 | 88 | |
| 89 | 89 | // If we need to ignore directories |
| 90 | 90 | if (count($this->phpci->ignore)) { |
| 91 | - $ignore = ' --ignore=' . implode(',', $this->phpci->ignore); |
|
| 91 | + $ignore = ' --ignore='.implode(',', $this->phpci->ignore); |
|
| 92 | 92 | } else { |
| 93 | 93 | $ignore = ''; |
| 94 | 94 | } |
| 95 | 95 | |
| 96 | 96 | $success = $this->phpci->executeCommand( |
| 97 | 97 | $cmd, |
| 98 | - $this->location . DIRECTORY_SEPARATOR . $this->summary, |
|
| 99 | - $this->location . DIRECTORY_SEPARATOR . $this->chart, |
|
| 100 | - $this->location . DIRECTORY_SEPARATOR . $this->pyramid, |
|
| 98 | + $this->location.DIRECTORY_SEPARATOR.$this->summary, |
|
| 99 | + $this->location.DIRECTORY_SEPARATOR.$this->chart, |
|
| 100 | + $this->location.DIRECTORY_SEPARATOR.$this->pyramid, |
|
| 101 | 101 | $ignore, |
| 102 | 102 | $this->directory |
| 103 | 103 | ); |
@@ -110,9 +110,9 @@ discard block |
||
| 110 | 110 | "Pdepend successful. You can use %s\n, \n |
| 111 | 111 | and \n |
| 112 | 112 | for inclusion in the readme.md file", |
| 113 | - $config['url'] . '/build/pdepend/' . $this->summary, |
|
| 114 | - $config['url'] . '/build/pdepend/' . $this->chart, |
|
| 115 | - $config['url'] . '/build/pdepend/' . $this->pyramid |
|
| 113 | + $config['url'].'/build/pdepend/'.$this->summary, |
|
| 114 | + $config['url'].'/build/pdepend/'.$this->chart, |
|
| 115 | + $config['url'].'/build/pdepend/'.$this->pyramid |
|
| 116 | 116 | ) |
| 117 | 117 | ); |
| 118 | 118 | } |
@@ -127,8 +127,8 @@ discard block |
||
| 127 | 127 | { |
| 128 | 128 | //Remove the created files first |
| 129 | 129 | foreach (array($this->summary, $this->chart, $this->pyramid) as $file) { |
| 130 | - if (file_exists($this->location . DIRECTORY_SEPARATOR . $file)) { |
|
| 131 | - unlink($this->location . DIRECTORY_SEPARATOR . $file); |
|
| 130 | + if (file_exists($this->location.DIRECTORY_SEPARATOR.$file)) { |
|
| 131 | + unlink($this->location.DIRECTORY_SEPARATOR.$file); |
|
| 132 | 132 | } |
| 133 | 133 | } |
| 134 | 134 | } |
@@ -10,7 +10,6 @@ |
||
| 10 | 10 | namespace PHPCI\Plugin; |
| 11 | 11 | |
| 12 | 12 | use PHPCI\Builder; |
| 13 | -use PHPCI\Helper\Lang; |
|
| 14 | 13 | use PHPCI\Model\Build; |
| 15 | 14 | |
| 16 | 15 | /** |
@@ -1,11 +1,11 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * PHPCI - Continuous Integration for PHP |
|
| 4 | - * |
|
| 5 | - * @copyright Copyright 2014, Block 8 Limited. |
|
| 6 | - * @license https://github.com/Block8/PHPCI/blob/master/LICENSE.md |
|
| 7 | - * @link https://www.phptesting.org/ |
|
| 8 | - */ |
|
| 3 | + * PHPCI - Continuous Integration for PHP |
|
| 4 | + * |
|
| 5 | + * @copyright Copyright 2014, Block 8 Limited. |
|
| 6 | + * @license https://github.com/Block8/PHPCI/blob/master/LICENSE.md |
|
| 7 | + * @link https://www.phptesting.org/ |
|
| 8 | + */ |
|
| 9 | 9 | |
| 10 | 10 | namespace PHPCI\Service; |
| 11 | 11 | |
@@ -1,11 +1,11 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * PHPCI - Continuous Integration for PHP |
|
| 4 | - * |
|
| 5 | - * @copyright Copyright 2014, Block 8 Limited. |
|
| 6 | - * @license https://github.com/Block8/PHPCI/blob/master/LICENSE.md |
|
| 7 | - * @link https://www.phptesting.org/ |
|
| 8 | - */ |
|
| 3 | + * PHPCI - Continuous Integration for PHP |
|
| 4 | + * |
|
| 5 | + * @copyright Copyright 2014, Block 8 Limited. |
|
| 6 | + * @license https://github.com/Block8/PHPCI/blob/master/LICENSE.md |
|
| 7 | + * @link https://www.phptesting.org/ |
|
| 8 | + */ |
|
| 9 | 9 | |
| 10 | 10 | namespace PHPCI\Plugin; |
| 11 | 11 | |
@@ -69,8 +69,8 @@ discard block |
||
| 69 | 69 | } |
| 70 | 70 | |
| 71 | 71 | /** |
| 72 | - * Executes gulp and runs a specified command (e.g. install / update) |
|
| 73 | - */ |
|
| 72 | + * Executes gulp and runs a specified command (e.g. install / update) |
|
| 73 | + */ |
|
| 74 | 74 | public function execute() |
| 75 | 75 | { |
| 76 | 76 | // if npm does not work, we cannot use gulp, so we return false |
@@ -52,7 +52,7 @@ discard block |
||
| 52 | 52 | |
| 53 | 53 | // Handle options: |
| 54 | 54 | if (isset($options['directory'])) { |
| 55 | - $this->directory = $path . DIRECTORY_SEPARATOR . $options['directory']; |
|
| 55 | + $this->directory = $path.DIRECTORY_SEPARATOR.$options['directory']; |
|
| 56 | 56 | } |
| 57 | 57 | |
| 58 | 58 | if (isset($options['task'])) { |
@@ -83,9 +83,9 @@ discard block |
||
| 83 | 83 | } |
| 84 | 84 | |
| 85 | 85 | // build the gulp command |
| 86 | - $cmd = 'cd %s && ' . $this->gulp; |
|
| 86 | + $cmd = 'cd %s && '.$this->gulp; |
|
| 87 | 87 | if (IS_WIN) { |
| 88 | - $cmd = 'cd /d %s && ' . $this->gulp; |
|
| 88 | + $cmd = 'cd /d %s && '.$this->gulp; |
|
| 89 | 89 | } |
| 90 | 90 | $cmd .= ' --no-color'; |
| 91 | 91 | $cmd .= ' --gulpfile %s'; |