@@ -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 | { |
@@ -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)) { |
@@ -428,7 +428,7 @@ discard block |
||
| 428 | 428 | * Set the value of CreatedDate / created_date. |
| 429 | 429 | * |
| 430 | 430 | * Must not be null. |
| 431 | - * @param $value \DateTime |
|
| 431 | + * @param \DateTime $value \DateTime |
|
| 432 | 432 | */ |
| 433 | 433 | public function setCreatedDate($value) |
| 434 | 434 | { |
@@ -473,7 +473,7 @@ discard block |
||
| 473 | 473 | /** |
| 474 | 474 | * Set Build - Accepts an ID, an array representing a Build or a Build model. |
| 475 | 475 | * |
| 476 | - * @param $value mixed |
|
| 476 | + * @param Model\Build $value mixed |
|
| 477 | 477 | */ |
| 478 | 478 | public function setBuild($value) |
| 479 | 479 | { |
@@ -15,23 +15,23 @@ discard block |
||
| 15 | 15 | class BuildErrorBase 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_error'; |
| 26 | 26 | |
| 27 | 27 | /** |
| 28 | - * @var string |
|
| 29 | - */ |
|
| 28 | + * @var string |
|
| 29 | + */ |
|
| 30 | 30 | protected $modelName = 'BuildError'; |
| 31 | 31 | |
| 32 | 32 | /** |
| 33 | - * @var array |
|
| 34 | - */ |
|
| 33 | + * @var array |
|
| 34 | + */ |
|
| 35 | 35 | protected $data = array( |
| 36 | 36 | 'id' => null, |
| 37 | 37 | 'build_id' => null, |
@@ -45,8 +45,8 @@ discard block |
||
| 45 | 45 | ); |
| 46 | 46 | |
| 47 | 47 | /** |
| 48 | - * @var array |
|
| 49 | - */ |
|
| 48 | + * @var array |
|
| 49 | + */ |
|
| 50 | 50 | protected $getters = array( |
| 51 | 51 | // Direct property getters: |
| 52 | 52 | 'id' => 'getId', |
@@ -64,8 +64,8 @@ discard block |
||
| 64 | 64 | ); |
| 65 | 65 | |
| 66 | 66 | /** |
| 67 | - * @var array |
|
| 68 | - */ |
|
| 67 | + * @var array |
|
| 68 | + */ |
|
| 69 | 69 | protected $setters = array( |
| 70 | 70 | // Direct property setters: |
| 71 | 71 | 'id' => 'setId', |
@@ -83,8 +83,8 @@ discard block |
||
| 83 | 83 | ); |
| 84 | 84 | |
| 85 | 85 | /** |
| 86 | - * @var array |
|
| 87 | - */ |
|
| 86 | + * @var array |
|
| 87 | + */ |
|
| 88 | 88 | public $columns = array( |
| 89 | 89 | 'id' => array( |
| 90 | 90 | 'type' => 'int', |
@@ -138,16 +138,16 @@ discard block |
||
| 138 | 138 | ); |
| 139 | 139 | |
| 140 | 140 | /** |
| 141 | - * @var array |
|
| 142 | - */ |
|
| 141 | + * @var array |
|
| 142 | + */ |
|
| 143 | 143 | public $indexes = array( |
| 144 | 144 | 'PRIMARY' => array('unique' => true, 'columns' => 'id'), |
| 145 | 145 | 'build_id' => array('columns' => 'build_id, created_date'), |
| 146 | 146 | ); |
| 147 | 147 | |
| 148 | 148 | /** |
| 149 | - * @var array |
|
| 150 | - */ |
|
| 149 | + * @var array |
|
| 150 | + */ |
|
| 151 | 151 | public $foreignKeys = array( |
| 152 | 152 | 'build_error_ibfk_1' => array( |
| 153 | 153 | 'local_col' => 'build_id', |
@@ -159,10 +159,10 @@ discard block |
||
| 159 | 159 | ); |
| 160 | 160 | |
| 161 | 161 | /** |
| 162 | - * Get the value of Id / id. |
|
| 163 | - * |
|
| 164 | - * @return int |
|
| 165 | - */ |
|
| 162 | + * Get the value of Id / id. |
|
| 163 | + * |
|
| 164 | + * @return int |
|
| 165 | + */ |
|
| 166 | 166 | public function getId() |
| 167 | 167 | { |
| 168 | 168 | $rtn = $this->data['id']; |
@@ -171,10 +171,10 @@ discard block |
||
| 171 | 171 | } |
| 172 | 172 | |
| 173 | 173 | /** |
| 174 | - * Get the value of BuildId / build_id. |
|
| 175 | - * |
|
| 176 | - * @return int |
|
| 177 | - */ |
|
| 174 | + * Get the value of BuildId / build_id. |
|
| 175 | + * |
|
| 176 | + * @return int |
|
| 177 | + */ |
|
| 178 | 178 | public function getBuildId() |
| 179 | 179 | { |
| 180 | 180 | $rtn = $this->data['build_id']; |
@@ -183,10 +183,10 @@ discard block |
||
| 183 | 183 | } |
| 184 | 184 | |
| 185 | 185 | /** |
| 186 | - * Get the value of Plugin / plugin. |
|
| 187 | - * |
|
| 188 | - * @return string |
|
| 189 | - */ |
|
| 186 | + * Get the value of Plugin / plugin. |
|
| 187 | + * |
|
| 188 | + * @return string |
|
| 189 | + */ |
|
| 190 | 190 | public function getPlugin() |
| 191 | 191 | { |
| 192 | 192 | $rtn = $this->data['plugin']; |
@@ -195,10 +195,10 @@ discard block |
||
| 195 | 195 | } |
| 196 | 196 | |
| 197 | 197 | /** |
| 198 | - * Get the value of File / file. |
|
| 199 | - * |
|
| 200 | - * @return string |
|
| 201 | - */ |
|
| 198 | + * Get the value of File / file. |
|
| 199 | + * |
|
| 200 | + * @return string |
|
| 201 | + */ |
|
| 202 | 202 | public function getFile() |
| 203 | 203 | { |
| 204 | 204 | $rtn = $this->data['file']; |
@@ -207,10 +207,10 @@ discard block |
||
| 207 | 207 | } |
| 208 | 208 | |
| 209 | 209 | /** |
| 210 | - * Get the value of LineStart / line_start. |
|
| 211 | - * |
|
| 212 | - * @return int |
|
| 213 | - */ |
|
| 210 | + * Get the value of LineStart / line_start. |
|
| 211 | + * |
|
| 212 | + * @return int |
|
| 213 | + */ |
|
| 214 | 214 | public function getLineStart() |
| 215 | 215 | { |
| 216 | 216 | $rtn = $this->data['line_start']; |
@@ -219,10 +219,10 @@ discard block |
||
| 219 | 219 | } |
| 220 | 220 | |
| 221 | 221 | /** |
| 222 | - * Get the value of LineEnd / line_end. |
|
| 223 | - * |
|
| 224 | - * @return int |
|
| 225 | - */ |
|
| 222 | + * Get the value of LineEnd / line_end. |
|
| 223 | + * |
|
| 224 | + * @return int |
|
| 225 | + */ |
|
| 226 | 226 | public function getLineEnd() |
| 227 | 227 | { |
| 228 | 228 | $rtn = $this->data['line_end']; |
@@ -231,10 +231,10 @@ discard block |
||
| 231 | 231 | } |
| 232 | 232 | |
| 233 | 233 | /** |
| 234 | - * Get the value of Severity / severity. |
|
| 235 | - * |
|
| 236 | - * @return int |
|
| 237 | - */ |
|
| 234 | + * Get the value of Severity / severity. |
|
| 235 | + * |
|
| 236 | + * @return int |
|
| 237 | + */ |
|
| 238 | 238 | public function getSeverity() |
| 239 | 239 | { |
| 240 | 240 | $rtn = $this->data['severity']; |
@@ -243,10 +243,10 @@ discard block |
||
| 243 | 243 | } |
| 244 | 244 | |
| 245 | 245 | /** |
| 246 | - * Get the value of Message / message. |
|
| 247 | - * |
|
| 248 | - * @return string |
|
| 249 | - */ |
|
| 246 | + * Get the value of Message / message. |
|
| 247 | + * |
|
| 248 | + * @return string |
|
| 249 | + */ |
|
| 250 | 250 | public function getMessage() |
| 251 | 251 | { |
| 252 | 252 | $rtn = $this->data['message']; |
@@ -255,10 +255,10 @@ discard block |
||
| 255 | 255 | } |
| 256 | 256 | |
| 257 | 257 | /** |
| 258 | - * Get the value of CreatedDate / created_date. |
|
| 259 | - * |
|
| 260 | - * @return \DateTime |
|
| 261 | - */ |
|
| 258 | + * Get the value of CreatedDate / created_date. |
|
| 259 | + * |
|
| 260 | + * @return \DateTime |
|
| 261 | + */ |
|
| 262 | 262 | public function getCreatedDate() |
| 263 | 263 | { |
| 264 | 264 | $rtn = $this->data['created_date']; |
@@ -271,11 +271,11 @@ discard block |
||
| 271 | 271 | } |
| 272 | 272 | |
| 273 | 273 | /** |
| 274 | - * Set the value of Id / id. |
|
| 275 | - * |
|
| 276 | - * Must not be null. |
|
| 277 | - * @param $value int |
|
| 278 | - */ |
|
| 274 | + * Set the value of Id / id. |
|
| 275 | + * |
|
| 276 | + * Must not be null. |
|
| 277 | + * @param $value int |
|
| 278 | + */ |
|
| 279 | 279 | public function setId($value) |
| 280 | 280 | { |
| 281 | 281 | $this->_validateNotNull('Id', $value); |
@@ -291,11 +291,11 @@ discard block |
||
| 291 | 291 | } |
| 292 | 292 | |
| 293 | 293 | /** |
| 294 | - * Set the value of BuildId / build_id. |
|
| 295 | - * |
|
| 296 | - * Must not be null. |
|
| 297 | - * @param $value int |
|
| 298 | - */ |
|
| 294 | + * Set the value of BuildId / build_id. |
|
| 295 | + * |
|
| 296 | + * Must not be null. |
|
| 297 | + * @param $value int |
|
| 298 | + */ |
|
| 299 | 299 | public function setBuildId($value) |
| 300 | 300 | { |
| 301 | 301 | $this->_validateNotNull('BuildId', $value); |
@@ -311,11 +311,11 @@ discard block |
||
| 311 | 311 | } |
| 312 | 312 | |
| 313 | 313 | /** |
| 314 | - * Set the value of Plugin / plugin. |
|
| 315 | - * |
|
| 316 | - * Must not be null. |
|
| 317 | - * @param $value string |
|
| 318 | - */ |
|
| 314 | + * Set the value of Plugin / plugin. |
|
| 315 | + * |
|
| 316 | + * Must not be null. |
|
| 317 | + * @param $value string |
|
| 318 | + */ |
|
| 319 | 319 | public function setPlugin($value) |
| 320 | 320 | { |
| 321 | 321 | $this->_validateNotNull('Plugin', $value); |
@@ -331,10 +331,10 @@ discard block |
||
| 331 | 331 | } |
| 332 | 332 | |
| 333 | 333 | /** |
| 334 | - * Set the value of File / file. |
|
| 335 | - * |
|
| 336 | - * @param $value string |
|
| 337 | - */ |
|
| 334 | + * Set the value of File / file. |
|
| 335 | + * |
|
| 336 | + * @param $value string |
|
| 337 | + */ |
|
| 338 | 338 | public function setFile($value) |
| 339 | 339 | { |
| 340 | 340 | $this->_validateString('File', $value); |
@@ -349,10 +349,10 @@ discard block |
||
| 349 | 349 | } |
| 350 | 350 | |
| 351 | 351 | /** |
| 352 | - * Set the value of LineStart / line_start. |
|
| 353 | - * |
|
| 354 | - * @param $value int |
|
| 355 | - */ |
|
| 352 | + * Set the value of LineStart / line_start. |
|
| 353 | + * |
|
| 354 | + * @param $value int |
|
| 355 | + */ |
|
| 356 | 356 | public function setLineStart($value) |
| 357 | 357 | { |
| 358 | 358 | $this->_validateInt('LineStart', $value); |
@@ -367,10 +367,10 @@ discard block |
||
| 367 | 367 | } |
| 368 | 368 | |
| 369 | 369 | /** |
| 370 | - * Set the value of LineEnd / line_end. |
|
| 371 | - * |
|
| 372 | - * @param $value int |
|
| 373 | - */ |
|
| 370 | + * Set the value of LineEnd / line_end. |
|
| 371 | + * |
|
| 372 | + * @param $value int |
|
| 373 | + */ |
|
| 374 | 374 | public function setLineEnd($value) |
| 375 | 375 | { |
| 376 | 376 | $this->_validateInt('LineEnd', $value); |
@@ -385,11 +385,11 @@ discard block |
||
| 385 | 385 | } |
| 386 | 386 | |
| 387 | 387 | /** |
| 388 | - * Set the value of Severity / severity. |
|
| 389 | - * |
|
| 390 | - * Must not be null. |
|
| 391 | - * @param $value int |
|
| 392 | - */ |
|
| 388 | + * Set the value of Severity / severity. |
|
| 389 | + * |
|
| 390 | + * Must not be null. |
|
| 391 | + * @param $value int |
|
| 392 | + */ |
|
| 393 | 393 | public function setSeverity($value) |
| 394 | 394 | { |
| 395 | 395 | $this->_validateNotNull('Severity', $value); |
@@ -405,11 +405,11 @@ discard block |
||
| 405 | 405 | } |
| 406 | 406 | |
| 407 | 407 | /** |
| 408 | - * Set the value of Message / message. |
|
| 409 | - * |
|
| 410 | - * Must not be null. |
|
| 411 | - * @param $value string |
|
| 412 | - */ |
|
| 408 | + * Set the value of Message / message. |
|
| 409 | + * |
|
| 410 | + * Must not be null. |
|
| 411 | + * @param $value string |
|
| 412 | + */ |
|
| 413 | 413 | public function setMessage($value) |
| 414 | 414 | { |
| 415 | 415 | $this->_validateNotNull('Message', $value); |
@@ -425,11 +425,11 @@ discard block |
||
| 425 | 425 | } |
| 426 | 426 | |
| 427 | 427 | /** |
| 428 | - * Set the value of CreatedDate / created_date. |
|
| 429 | - * |
|
| 430 | - * Must not be null. |
|
| 431 | - * @param $value \DateTime |
|
| 432 | - */ |
|
| 428 | + * Set the value of CreatedDate / created_date. |
|
| 429 | + * |
|
| 430 | + * Must not be null. |
|
| 431 | + * @param $value \DateTime |
|
| 432 | + */ |
|
| 433 | 433 | public function setCreatedDate($value) |
| 434 | 434 | { |
| 435 | 435 | $this->_validateNotNull('CreatedDate', $value); |
@@ -471,10 +471,10 @@ discard block |
||
| 471 | 471 | } |
| 472 | 472 | |
| 473 | 473 | /** |
| 474 | - * Set Build - Accepts an ID, an array representing a Build or a Build model. |
|
| 475 | - * |
|
| 476 | - * @param $value mixed |
|
| 477 | - */ |
|
| 474 | + * Set Build - Accepts an ID, an array representing a Build or a Build model. |
|
| 475 | + * |
|
| 476 | + * @param $value mixed |
|
| 477 | + */ |
|
| 478 | 478 | public function setBuild($value) |
| 479 | 479 | { |
| 480 | 480 | // Is this an instance of Build? |
@@ -492,10 +492,10 @@ discard block |
||
| 492 | 492 | } |
| 493 | 493 | |
| 494 | 494 | /** |
| 495 | - * Set Build - Accepts a Build model. |
|
| 496 | - * |
|
| 497 | - * @param $value \PHPCI\Model\Build |
|
| 498 | - */ |
|
| 495 | + * Set Build - Accepts a Build model. |
|
| 496 | + * |
|
| 497 | + * @param $value \PHPCI\Model\Build |
|
| 498 | + */ |
|
| 499 | 499 | public function setBuildObject(\PHPCI\Model\Build $value) |
| 500 | 500 | { |
| 501 | 501 | return $this->setBuildId($value->getId()); |
@@ -165,7 +165,7 @@ discard block |
||
| 165 | 165 | */ |
| 166 | 166 | public function getId() |
| 167 | 167 | { |
| 168 | - $rtn = $this->data['id']; |
|
| 168 | + $rtn = $this->data['id']; |
|
| 169 | 169 | |
| 170 | 170 | return $rtn; |
| 171 | 171 | } |
@@ -177,7 +177,7 @@ discard block |
||
| 177 | 177 | */ |
| 178 | 178 | public function getBuildId() |
| 179 | 179 | { |
| 180 | - $rtn = $this->data['build_id']; |
|
| 180 | + $rtn = $this->data['build_id']; |
|
| 181 | 181 | |
| 182 | 182 | return $rtn; |
| 183 | 183 | } |
@@ -189,7 +189,7 @@ discard block |
||
| 189 | 189 | */ |
| 190 | 190 | public function getPlugin() |
| 191 | 191 | { |
| 192 | - $rtn = $this->data['plugin']; |
|
| 192 | + $rtn = $this->data['plugin']; |
|
| 193 | 193 | |
| 194 | 194 | return $rtn; |
| 195 | 195 | } |
@@ -201,7 +201,7 @@ discard block |
||
| 201 | 201 | */ |
| 202 | 202 | public function getFile() |
| 203 | 203 | { |
| 204 | - $rtn = $this->data['file']; |
|
| 204 | + $rtn = $this->data['file']; |
|
| 205 | 205 | |
| 206 | 206 | return $rtn; |
| 207 | 207 | } |
@@ -213,7 +213,7 @@ discard block |
||
| 213 | 213 | */ |
| 214 | 214 | public function getLineStart() |
| 215 | 215 | { |
| 216 | - $rtn = $this->data['line_start']; |
|
| 216 | + $rtn = $this->data['line_start']; |
|
| 217 | 217 | |
| 218 | 218 | return $rtn; |
| 219 | 219 | } |
@@ -225,7 +225,7 @@ discard block |
||
| 225 | 225 | */ |
| 226 | 226 | public function getLineEnd() |
| 227 | 227 | { |
| 228 | - $rtn = $this->data['line_end']; |
|
| 228 | + $rtn = $this->data['line_end']; |
|
| 229 | 229 | |
| 230 | 230 | return $rtn; |
| 231 | 231 | } |
@@ -237,7 +237,7 @@ discard block |
||
| 237 | 237 | */ |
| 238 | 238 | public function getSeverity() |
| 239 | 239 | { |
| 240 | - $rtn = $this->data['severity']; |
|
| 240 | + $rtn = $this->data['severity']; |
|
| 241 | 241 | |
| 242 | 242 | return $rtn; |
| 243 | 243 | } |
@@ -249,7 +249,7 @@ discard block |
||
| 249 | 249 | */ |
| 250 | 250 | public function getMessage() |
| 251 | 251 | { |
| 252 | - $rtn = $this->data['message']; |
|
| 252 | + $rtn = $this->data['message']; |
|
| 253 | 253 | |
| 254 | 254 | return $rtn; |
| 255 | 255 | } |
@@ -261,10 +261,10 @@ discard block |
||
| 261 | 261 | */ |
| 262 | 262 | public function getCreatedDate() |
| 263 | 263 | { |
| 264 | - $rtn = $this->data['created_date']; |
|
| 264 | + $rtn = $this->data['created_date']; |
|
| 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; |
@@ -459,7 +459,7 @@ discard block |
||
| 459 | 459 | return null; |
| 460 | 460 | } |
| 461 | 461 | |
| 462 | - $cacheKey = 'Cache.Build.' . $key; |
|
| 462 | + $cacheKey = 'Cache.Build.'.$key; |
|
| 463 | 463 | $rtn = $this->cache->get($cacheKey, null); |
| 464 | 464 | |
| 465 | 465 | if (empty($rtn)) { |
@@ -350,7 +350,7 @@ discard block |
||
| 350 | 350 | * Set the value of Id / id. |
| 351 | 351 | * |
| 352 | 352 | * Must not be null. |
| 353 | - * @param $value int |
|
| 353 | + * @param integer $value int |
|
| 354 | 354 | */ |
| 355 | 355 | public function setId($value) |
| 356 | 356 | { |
@@ -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 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)) { |
@@ -74,6 +74,7 @@ discard block |
||
| 74 | 74 | |
| 75 | 75 | /** |
| 76 | 76 | * Store build metadata |
| 77 | + * @param string $key |
|
| 77 | 78 | */ |
| 78 | 79 | public function storeMeta($key, $value) |
| 79 | 80 | { |
@@ -181,7 +182,7 @@ discard block |
||
| 181 | 182 | |
| 182 | 183 | /** |
| 183 | 184 | * Return a value from the build's "extra" JSON array. |
| 184 | - * @param null $key |
|
| 185 | + * @param string $key |
|
| 185 | 186 | * @return mixed|null|string |
| 186 | 187 | */ |
| 187 | 188 | public function getExtra($key = null) |
@@ -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; |
| 11 | 11 | |
@@ -31,16 +31,16 @@ discard block |
||
| 31 | 31 | public $currentBuildPath; |
| 32 | 32 | |
| 33 | 33 | /** |
| 34 | - * Get link to commit from another source (i.e. Github) |
|
| 35 | - */ |
|
| 34 | + * Get link to commit from another source (i.e. Github) |
|
| 35 | + */ |
|
| 36 | 36 | public function getCommitLink() |
| 37 | 37 | { |
| 38 | 38 | return '#'; |
| 39 | 39 | } |
| 40 | 40 | |
| 41 | 41 | /** |
| 42 | - * Get link to branch from another source (i.e. Github) |
|
| 43 | - */ |
|
| 42 | + * Get link to branch from another source (i.e. Github) |
|
| 43 | + */ |
|
| 44 | 44 | public function getBranchLink() |
| 45 | 45 | { |
| 46 | 46 | return '#'; |
@@ -56,8 +56,8 @@ discard block |
||
| 56 | 56 | } |
| 57 | 57 | |
| 58 | 58 | /** |
| 59 | - * Send status updates to any relevant third parties (i.e. Github) |
|
| 60 | - */ |
|
| 59 | + * Send status updates to any relevant third parties (i.e. Github) |
|
| 60 | + */ |
|
| 61 | 61 | public function sendStatusPostback() |
| 62 | 62 | { |
| 63 | 63 | return; |
@@ -105,13 +105,13 @@ discard block |
||
| 105 | 105 | } |
| 106 | 106 | |
| 107 | 107 | // Try .phpci.yml |
| 108 | - if (is_file($buildPath . '/.phpci.yml')) { |
|
| 109 | - $build_config = file_get_contents($buildPath . '/.phpci.yml'); |
|
| 108 | + if (is_file($buildPath.'/.phpci.yml')) { |
|
| 109 | + $build_config = file_get_contents($buildPath.'/.phpci.yml'); |
|
| 110 | 110 | } |
| 111 | 111 | |
| 112 | 112 | // Try phpci.yml first: |
| 113 | - if (empty($build_config) && is_file($buildPath . '/phpci.yml')) { |
|
| 114 | - $build_config = file_get_contents($buildPath . '/phpci.yml'); |
|
| 113 | + if (empty($build_config) && is_file($buildPath.'/phpci.yml')) { |
|
| 114 | + $build_config = file_get_contents($buildPath.'/phpci.yml'); |
|
| 115 | 115 | } |
| 116 | 116 | |
| 117 | 117 | // Fall back to zero config plugins: |
@@ -135,7 +135,7 @@ discard block |
||
| 135 | 135 | */ |
| 136 | 136 | protected function getZeroConfigPlugins(Builder $builder) |
| 137 | 137 | { |
| 138 | - $pluginDir = PHPCI_DIR . 'PHPCI/Plugin/'; |
|
| 138 | + $pluginDir = PHPCI_DIR.'PHPCI/Plugin/'; |
|
| 139 | 139 | $dir = new \DirectoryIterator($pluginDir); |
| 140 | 140 | |
| 141 | 141 | $config = array( |
@@ -257,8 +257,8 @@ discard block |
||
| 257 | 257 | } |
| 258 | 258 | |
| 259 | 259 | if (empty($this->currentBuildPath)) { |
| 260 | - $buildDirectory = $this->getId() . '_' . substr(md5(microtime(true)), 0, 5); |
|
| 261 | - $this->currentBuildPath = PHPCI_BUILD_ROOT_DIR . $buildDirectory . DIRECTORY_SEPARATOR; |
|
| 260 | + $buildDirectory = $this->getId().'_'.substr(md5(microtime(true)), 0, 5); |
|
| 261 | + $this->currentBuildPath = PHPCI_BUILD_ROOT_DIR.$buildDirectory.DIRECTORY_SEPARATOR; |
|
| 262 | 262 | } |
| 263 | 263 | |
| 264 | 264 | return $this->currentBuildPath; |
@@ -160,7 +160,7 @@ |
||
| 160 | 160 | /** |
| 161 | 161 | * Create an SSH wrapper script for Git to use, to disable host key checking, etc. |
| 162 | 162 | * @param $cloneTo |
| 163 | - * @param $keyFile |
|
| 163 | + * @param string $keyFile |
|
| 164 | 164 | * @return string |
| 165 | 165 | */ |
| 166 | 166 | protected function writeSshWrapper($cloneTo, $keyFile) |
@@ -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,16 +21,16 @@ discard block |
||
| 21 | 21 | class RemoteGitBuild extends Build |
| 22 | 22 | { |
| 23 | 23 | /** |
| 24 | - * Get the URL to be used to clone this remote repository. |
|
| 25 | - */ |
|
| 24 | + * Get the URL to be used to clone this remote repository. |
|
| 25 | + */ |
|
| 26 | 26 | protected function getCloneUrl() |
| 27 | 27 | { |
| 28 | 28 | return $this->getProject()->getReference(); |
| 29 | 29 | } |
| 30 | 30 | |
| 31 | 31 | /** |
| 32 | - * Create a working copy by cloning, copying, or similar. |
|
| 33 | - */ |
|
| 32 | + * Create a working copy by cloning, copying, or similar. |
|
| 33 | + */ |
|
| 34 | 34 | public function createWorkingCopy(Builder $builder, $buildPath) |
| 35 | 35 | { |
| 36 | 36 | $key = trim($this->getProject()->getSshPrivateKey()); |
@@ -50,8 +50,8 @@ discard block |
||
| 50 | 50 | } |
| 51 | 51 | |
| 52 | 52 | /** |
| 53 | - * Use an HTTP-based git clone. |
|
| 54 | - */ |
|
| 53 | + * Use an HTTP-based git clone. |
|
| 54 | + */ |
|
| 55 | 55 | protected function cloneByHttp(Builder $builder, $cloneTo) |
| 56 | 56 | { |
| 57 | 57 | $cmd = 'git clone --recursive '; |
@@ -73,8 +73,8 @@ discard block |
||
| 73 | 73 | } |
| 74 | 74 | |
| 75 | 75 | /** |
| 76 | - * Use an SSH-based git clone. |
|
| 77 | - */ |
|
| 76 | + * Use an SSH-based git clone. |
|
| 77 | + */ |
|
| 78 | 78 | protected function cloneBySsh(Builder $builder, $cloneTo) |
| 79 | 79 | { |
| 80 | 80 | $keyFile = $this->writeSshKey($cloneTo); |
@@ -59,7 +59,7 @@ discard block |
||
| 59 | 59 | $depth = $builder->getConfig('clone_depth'); |
| 60 | 60 | |
| 61 | 61 | if (!is_null($depth)) { |
| 62 | - $cmd .= ' --depth ' . intval($depth) . ' '; |
|
| 62 | + $cmd .= ' --depth '.intval($depth).' '; |
|
| 63 | 63 | } |
| 64 | 64 | |
| 65 | 65 | $cmd .= ' -b %s %s "%s"'; |
@@ -89,13 +89,13 @@ discard block |
||
| 89 | 89 | $depth = $builder->getConfig('clone_depth'); |
| 90 | 90 | |
| 91 | 91 | if (!is_null($depth)) { |
| 92 | - $cmd .= ' --depth ' . intval($depth) . ' '; |
|
| 92 | + $cmd .= ' --depth '.intval($depth).' '; |
|
| 93 | 93 | } |
| 94 | 94 | |
| 95 | 95 | $cmd .= ' -b %s %s "%s"'; |
| 96 | 96 | |
| 97 | 97 | if (!IS_WIN) { |
| 98 | - $cmd = 'export GIT_SSH="'.$gitSshWrapper.'" && ' . $cmd; |
|
| 98 | + $cmd = 'export GIT_SSH="'.$gitSshWrapper.'" && '.$cmd; |
|
| 99 | 99 | } |
| 100 | 100 | |
| 101 | 101 | $success = $builder->executeCommand($cmd, $this->getBranch(), $this->getCloneUrl(), $cloneTo); |
@@ -127,12 +127,12 @@ discard block |
||
| 127 | 127 | $chdir = IS_WIN ? 'cd /d "%s"' : 'cd "%s"'; |
| 128 | 128 | |
| 129 | 129 | if (!empty($commit) && $commit != 'Manual') { |
| 130 | - $cmd = $chdir . ' && git checkout %s --quiet'; |
|
| 130 | + $cmd = $chdir.' && git checkout %s --quiet'; |
|
| 131 | 131 | $success = $builder->executeCommand($cmd, $cloneTo, $commit); |
| 132 | 132 | } |
| 133 | 133 | |
| 134 | 134 | // Always update the commit hash with the actual HEAD hash |
| 135 | - if ($builder->executeCommand($chdir . ' && git rev-parse HEAD', $cloneTo)) { |
|
| 135 | + if ($builder->executeCommand($chdir.' && git rev-parse HEAD', $cloneTo)) { |
|
| 136 | 136 | $this->setCommitId(trim($builder->getLastOutput())); |
| 137 | 137 | } |
| 138 | 138 | |
@@ -146,8 +146,8 @@ discard block |
||
| 146 | 146 | */ |
| 147 | 147 | protected function writeSshKey($cloneTo) |
| 148 | 148 | { |
| 149 | - $keyPath = dirname($cloneTo . '/temp'); |
|
| 150 | - $keyFile = $keyPath . '.key'; |
|
| 149 | + $keyPath = dirname($cloneTo.'/temp'); |
|
| 150 | + $keyFile = $keyPath.'.key'; |
|
| 151 | 151 | |
| 152 | 152 | // Write the contents of this project's git key to the file: |
| 153 | 153 | file_put_contents($keyFile, $this->getProject()->getSshPrivateKey()); |
@@ -165,8 +165,8 @@ discard block |
||
| 165 | 165 | */ |
| 166 | 166 | protected function writeSshWrapper($cloneTo, $keyFile) |
| 167 | 167 | { |
| 168 | - $path = dirname($cloneTo . '/temp'); |
|
| 169 | - $wrapperFile = $path . '.sh'; |
|
| 168 | + $path = dirname($cloneTo.'/temp'); |
|
| 169 | + $wrapperFile = $path.'.sh'; |
|
| 170 | 170 | |
| 171 | 171 | $sshFlags = '-o CheckHostIP=no -o IdentitiesOnly=yes -o StrictHostKeyChecking=no -o PasswordAuthentication=no'; |
| 172 | 172 | |
@@ -157,7 +157,7 @@ |
||
| 157 | 157 | /** |
| 158 | 158 | * Create an SSH wrapper script for Svn to use, to disable host key checking, etc. |
| 159 | 159 | * @param $cloneTo |
| 160 | - * @param $keyFile |
|
| 160 | + * @param string $keyFile |
|
| 161 | 161 | * @return string |
| 162 | 162 | */ |
| 163 | 163 | protected function writeSshWrapper($cloneTo, $keyFile) |
@@ -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\Model\Build; |
| 11 | 11 | |
@@ -38,7 +38,7 @@ discard block |
||
| 38 | 38 | if (empty($branch) || $branch == 'trunk') { |
| 39 | 39 | $url .= 'trunk'; |
| 40 | 40 | } else { |
| 41 | - $url .= 'branches/' . $branch; |
|
| 41 | + $url .= 'branches/'.$branch; |
|
| 42 | 42 | } |
| 43 | 43 | |
| 44 | 44 | return $url; |
@@ -63,7 +63,7 @@ discard block |
||
| 63 | 63 | $depth = $builder->getConfig('clone_depth'); |
| 64 | 64 | |
| 65 | 65 | if (!is_null($depth)) { |
| 66 | - $cmd .= ' --depth ' . intval($depth) . ' '; |
|
| 66 | + $cmd .= ' --depth '.intval($depth).' '; |
|
| 67 | 67 | } |
| 68 | 68 | |
| 69 | 69 | $this->svnCommand = $cmd; |
@@ -117,12 +117,12 @@ discard block |
||
| 117 | 117 | */ |
| 118 | 118 | protected function cloneBySsh(Builder $builder, $cloneTo) |
| 119 | 119 | { |
| 120 | - $cmd = $this->svnCommand . ' %s "%s"'; |
|
| 120 | + $cmd = $this->svnCommand.' %s "%s"'; |
|
| 121 | 121 | |
| 122 | 122 | if (!IS_WIN) { |
| 123 | 123 | $keyFile = $this->writeSshKey($cloneTo); |
| 124 | 124 | $sshWrapper = $this->writeSshWrapper($cloneTo, $keyFile); |
| 125 | - $cmd = 'export SVN_SSH="' . $sshWrapper . '" && ' . $cmd; |
|
| 125 | + $cmd = 'export SVN_SSH="'.$sshWrapper.'" && '.$cmd; |
|
| 126 | 126 | } |
| 127 | 127 | |
| 128 | 128 | $success = $builder->executeCommand($cmd, $this->getCloneUrl(), $cloneTo); |
@@ -143,8 +143,8 @@ discard block |
||
| 143 | 143 | */ |
| 144 | 144 | protected function writeSshKey($cloneTo) |
| 145 | 145 | { |
| 146 | - $keyPath = dirname($cloneTo . '/temp'); |
|
| 147 | - $keyFile = $keyPath . '.key'; |
|
| 146 | + $keyPath = dirname($cloneTo.'/temp'); |
|
| 147 | + $keyFile = $keyPath.'.key'; |
|
| 148 | 148 | |
| 149 | 149 | // Write the contents of this project's svn key to the file: |
| 150 | 150 | file_put_contents($keyFile, $this->getProject()->getSshPrivateKey()); |
@@ -162,8 +162,8 @@ discard block |
||
| 162 | 162 | */ |
| 163 | 163 | protected function writeSshWrapper($cloneTo, $keyFile) |
| 164 | 164 | { |
| 165 | - $path = dirname($cloneTo . '/temp'); |
|
| 166 | - $wrapperFile = $path . '.sh'; |
|
| 165 | + $path = dirname($cloneTo.'/temp'); |
|
| 166 | + $wrapperFile = $path.'.sh'; |
|
| 167 | 167 | |
| 168 | 168 | $sshFlags = '-o CheckHostIP=no -o IdentitiesOnly=yes -o StrictHostKeyChecking=no -o PasswordAuthentication=no'; |
| 169 | 169 | |
@@ -175,7 +175,7 @@ discard block |
||
| 175 | 175 | OUT; |
| 176 | 176 | |
| 177 | 177 | file_put_contents($wrapperFile, $script); |
| 178 | - shell_exec('chmod +x "' . $wrapperFile . '"'); |
|
| 178 | + shell_exec('chmod +x "'.$wrapperFile.'"'); |
|
| 179 | 179 | |
| 180 | 180 | return $wrapperFile; |
| 181 | 181 | } |
@@ -114,7 +114,7 @@ |
||
| 114 | 114 | |
| 115 | 115 | /** |
| 116 | 116 | * Make a request to Campfire. |
| 117 | - * @param $page |
|
| 117 | + * @param string $page |
|
| 118 | 118 | * @param null $data |
| 119 | 119 | * @return bool|mixed |
| 120 | 120 | */ |
@@ -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\Plugin; |
| 11 | 11 | |
@@ -63,7 +63,7 @@ discard block |
||
| 63 | 63 | */ |
| 64 | 64 | public function execute() |
| 65 | 65 | { |
| 66 | - $url = PHPCI_URL . "build/view/" . $this->build->getId(); |
|
| 66 | + $url = PHPCI_URL."build/view/".$this->build->getId(); |
|
| 67 | 67 | $message = str_replace("%buildurl%", $url, $this->message); |
| 68 | 68 | $this->joinRoom($this->roomId); |
| 69 | 69 | $status = $this->speak($message, $this->roomId); |
@@ -120,7 +120,7 @@ discard block |
||
| 120 | 120 | */ |
| 121 | 121 | private function getPageByPost($page, $data = null) |
| 122 | 122 | { |
| 123 | - $url = $this->url . $page; |
|
| 123 | + $url = $this->url.$page; |
|
| 124 | 124 | // The new API allows JSON, so we can pass |
| 125 | 125 | // PHP data structures instead of old school POST |
| 126 | 126 | $json = json_encode($data); |
@@ -133,7 +133,7 @@ discard block |
||
| 133 | 133 | curl_setopt($handle, CURLOPT_USERAGENT, $this->userAgent); |
| 134 | 134 | curl_setopt($handle, CURLOPT_VERBOSE, $this->verbose); |
| 135 | 135 | curl_setopt($handle, CURLOPT_FOLLOWLOCATION, 1); |
| 136 | - curl_setopt($handle, CURLOPT_USERPWD, $this->authToken . ':x'); |
|
| 136 | + curl_setopt($handle, CURLOPT_USERPWD, $this->authToken.':x'); |
|
| 137 | 137 | curl_setopt($handle, CURLOPT_HTTPHEADER, array("Content-type: application/json")); |
| 138 | 138 | curl_setopt($handle, CURLOPT_COOKIEFILE, $this->cookie); |
| 139 | 139 | |
@@ -57,7 +57,7 @@ discard block |
||
| 57 | 57 | |
| 58 | 58 | /** |
| 59 | 59 | * Try and find the codeception YML config file. |
| 60 | - * @param $buildPath |
|
| 60 | + * @param string $buildPath |
|
| 61 | 61 | * @return null|string |
| 62 | 62 | */ |
| 63 | 63 | public static function findConfigFile($buildPath) |
@@ -113,8 +113,8 @@ discard block |
||
| 113 | 113 | |
| 114 | 114 | /** |
| 115 | 115 | * Run tests from a Codeception config file. |
| 116 | - * @param $configPath |
|
| 117 | - * @return bool|mixed |
|
| 116 | + * @param string $configPath |
|
| 117 | + * @return boolean |
|
| 118 | 118 | * @throws \Exception |
| 119 | 119 | */ |
| 120 | 120 | protected function runConfigFile($configPath) |
@@ -13,7 +13,6 @@ |
||
| 13 | 13 | use PHPCI\Helper\Lang; |
| 14 | 14 | use PHPCI\Model\Build; |
| 15 | 15 | use PHPCI\Plugin\Util\TestResultParsers\Codeception as Parser; |
| 16 | -use Psr\Log\LogLevel; |
|
| 17 | 16 | |
| 18 | 17 | /** |
| 19 | 18 | * Codeception Plugin - Enables full acceptance, unit, and functional testing. |
@@ -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\Plugin; |
| 11 | 11 | |
@@ -62,11 +62,11 @@ discard block |
||
| 62 | 62 | */ |
| 63 | 63 | public static function findConfigFile($buildPath) |
| 64 | 64 | { |
| 65 | - if (file_exists($buildPath . 'codeception.yml')) { |
|
| 65 | + if (file_exists($buildPath.'codeception.yml')) { |
|
| 66 | 66 | return 'codeception.yml'; |
| 67 | 67 | } |
| 68 | 68 | |
| 69 | - if (file_exists($buildPath . 'codeception.dist.yml')) { |
|
| 69 | + if (file_exists($buildPath.'codeception.dist.yml')) { |
|
| 70 | 70 | return 'codeception.dist.yml'; |
| 71 | 71 | } |
| 72 | 72 | |
@@ -83,7 +83,7 @@ discard block |
||
| 83 | 83 | { |
| 84 | 84 | $this->phpci = $phpci; |
| 85 | 85 | $this->build = $build; |
| 86 | - $this->path = 'tests' . DIRECTORY_SEPARATOR . '_output' . DIRECTORY_SEPARATOR; |
|
| 86 | + $this->path = 'tests'.DIRECTORY_SEPARATOR.'_output'.DIRECTORY_SEPARATOR; |
|
| 87 | 87 | |
| 88 | 88 | if (empty($options['config'])) { |
| 89 | 89 | $this->ymlConfigFile = self::findConfigFile($this->phpci->buildPath); |
@@ -91,7 +91,7 @@ discard block |
||
| 91 | 91 | $this->ymlConfigFile = $options['config']; |
| 92 | 92 | } |
| 93 | 93 | if (isset($options['args'])) { |
| 94 | - $this->args = (string) $options['args']; |
|
| 94 | + $this->args = (string)$options['args']; |
|
| 95 | 95 | } |
| 96 | 96 | if (isset($options['path'])) { |
| 97 | 97 | $this->path = $options['path']; |
@@ -129,21 +129,21 @@ discard block |
||
| 129 | 129 | return false; |
| 130 | 130 | } |
| 131 | 131 | |
| 132 | - $cmd = 'cd "%s" && ' . $codecept . ' run -c "%s" --xml ' . $this->args; |
|
| 132 | + $cmd = 'cd "%s" && '.$codecept.' run -c "%s" --xml '.$this->args; |
|
| 133 | 133 | |
| 134 | 134 | if (IS_WIN) { |
| 135 | - $cmd = 'cd /d "%s" && ' . $codecept . ' run -c "%s" --xml ' . $this->args; |
|
| 135 | + $cmd = 'cd /d "%s" && '.$codecept.' run -c "%s" --xml '.$this->args; |
|
| 136 | 136 | } |
| 137 | 137 | |
| 138 | - $configPath = $this->phpci->buildPath . $configPath; |
|
| 138 | + $configPath = $this->phpci->buildPath.$configPath; |
|
| 139 | 139 | $success = $this->phpci->executeCommand($cmd, $this->phpci->buildPath, $configPath); |
| 140 | 140 | |
| 141 | 141 | $this->phpci->log( |
| 142 | - 'Codeception XML path: '. $this->phpci->buildPath . $this->path . 'report.xml', |
|
| 142 | + 'Codeception XML path: '.$this->phpci->buildPath.$this->path.'report.xml', |
|
| 143 | 143 | Loglevel::DEBUG |
| 144 | 144 | ); |
| 145 | 145 | |
| 146 | - $xml = file_get_contents($this->phpci->buildPath . $this->path . 'report.xml', false); |
|
| 146 | + $xml = file_get_contents($this->phpci->buildPath.$this->path.'report.xml', false); |
|
| 147 | 147 | $parser = new Parser($this->phpci, $xml); |
| 148 | 148 | $output = $parser->parse(); |
| 149 | 149 | |
@@ -12,7 +12,6 @@ |
||
| 12 | 12 | use PHPCI; |
| 13 | 13 | use PHPCI\Builder; |
| 14 | 14 | use PHPCI\Model\Build; |
| 15 | -use PHPCI\Helper\Lang; |
|
| 16 | 15 | |
| 17 | 16 | /** |
| 18 | 17 | * Composer Plugin - Provides access to Composer functionality. |
@@ -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 | |
@@ -81,8 +81,8 @@ discard block |
||
| 81 | 81 | } |
| 82 | 82 | |
| 83 | 83 | /** |
| 84 | - * Executes Composer and runs a specified command (e.g. install / update) |
|
| 85 | - */ |
|
| 84 | + * Executes Composer and runs a specified command (e.g. install / update) |
|
| 85 | + */ |
|
| 86 | 86 | public function execute() |
| 87 | 87 | { |
| 88 | 88 | $composerLocation = $this->phpci->findBinary(array('composer', 'composer.phar')); |
@@ -38,7 +38,7 @@ discard block |
||
| 38 | 38 | */ |
| 39 | 39 | public static function canExecute($stage, Builder $builder, Build $build) |
| 40 | 40 | { |
| 41 | - $path = $builder->buildPath . DIRECTORY_SEPARATOR . 'composer.json'; |
|
| 41 | + $path = $builder->buildPath.DIRECTORY_SEPARATOR.'composer.json'; |
|
| 42 | 42 | |
| 43 | 43 | if (file_exists($path) && $stage == 'setup') { |
| 44 | 44 | return true; |
@@ -64,7 +64,7 @@ discard block |
||
| 64 | 64 | $this->nodev = false; |
| 65 | 65 | |
| 66 | 66 | if (array_key_exists('directory', $options)) { |
| 67 | - $this->directory = $path . DIRECTORY_SEPARATOR . $options['directory']; |
|
| 67 | + $this->directory = $path.DIRECTORY_SEPARATOR.$options['directory']; |
|
| 68 | 68 | } |
| 69 | 69 | |
| 70 | 70 | if (array_key_exists('action', $options)) { |
@@ -93,7 +93,7 @@ discard block |
||
| 93 | 93 | $cmd = 'php '; |
| 94 | 94 | } |
| 95 | 95 | |
| 96 | - $cmd .= $composerLocation . ' --no-ansi --no-interaction '; |
|
| 96 | + $cmd .= $composerLocation.' --no-ansi --no-interaction '; |
|
| 97 | 97 | |
| 98 | 98 | if ($this->preferDist) { |
| 99 | 99 | $this->phpci->log('Using --prefer-dist flag'); |