@@ -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,24 +21,24 @@ discard block |
||
| 21 | 21 | class BitbucketBuild extends RemoteGitBuild |
| 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 | return 'https://bitbucket.org/' . $this->getProject()->getReference() . '/commits/' . $this->getCommitId(); |
| 29 | 29 | } |
| 30 | 30 | |
| 31 | 31 | /** |
| 32 | - * Get link to branch from another source (i.e. Github) |
|
| 33 | - */ |
|
| 32 | + * Get link to branch from another source (i.e. Github) |
|
| 33 | + */ |
|
| 34 | 34 | public function getBranchLink() |
| 35 | 35 | { |
| 36 | 36 | return 'https://bitbucket.org/' . $this->getProject()->getReference() . '/src/?at=' . $this->getBranch(); |
| 37 | 37 | } |
| 38 | 38 | |
| 39 | 39 | /** |
| 40 | - * Get the URL to be used to clone this remote repository. |
|
| 41 | - */ |
|
| 40 | + * Get the URL to be used to clone this remote repository. |
|
| 41 | + */ |
|
| 42 | 42 | protected function getCloneUrl() |
| 43 | 43 | { |
| 44 | 44 | $key = trim($this->getProject()->getSshPrivateKey()); |
@@ -25,7 +25,7 @@ discard block |
||
| 25 | 25 | */ |
| 26 | 26 | public function getCommitLink() |
| 27 | 27 | { |
| 28 | - return 'https://bitbucket.org/' . $this->getProject()->getReference() . '/commits/' . $this->getCommitId(); |
|
| 28 | + return 'https://bitbucket.org/'.$this->getProject()->getReference().'/commits/'.$this->getCommitId(); |
|
| 29 | 29 | } |
| 30 | 30 | |
| 31 | 31 | /** |
@@ -33,7 +33,7 @@ discard block |
||
| 33 | 33 | */ |
| 34 | 34 | public function getBranchLink() |
| 35 | 35 | { |
| 36 | - return 'https://bitbucket.org/' . $this->getProject()->getReference() . '/src/?at=' . $this->getBranch(); |
|
| 36 | + return 'https://bitbucket.org/'.$this->getProject()->getReference().'/src/?at='.$this->getBranch(); |
|
| 37 | 37 | } |
| 38 | 38 | |
| 39 | 39 | /** |
@@ -44,9 +44,9 @@ discard block |
||
| 44 | 44 | $key = trim($this->getProject()->getSshPrivateKey()); |
| 45 | 45 | |
| 46 | 46 | if (!empty($key)) { |
| 47 | - return '[email protected]:' . $this->getProject()->getReference() . '.git'; |
|
| 47 | + return '[email protected]:'.$this->getProject()->getReference().'.git'; |
|
| 48 | 48 | } else { |
| 49 | - return 'https://bitbucket.org/' . $this->getProject()->getReference() . '.git'; |
|
| 49 | + return 'https://bitbucket.org/'.$this->getProject()->getReference().'.git'; |
|
| 50 | 50 | } |
| 51 | 51 | } |
| 52 | 52 | } |
@@ -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 | |
@@ -23,24 +23,24 @@ discard block |
||
| 23 | 23 | class GithubBuild extends RemoteGitBuild |
| 24 | 24 | { |
| 25 | 25 | /** |
| 26 | - * Get link to commit from another source (i.e. Github) |
|
| 27 | - */ |
|
| 26 | + * Get link to commit from another source (i.e. Github) |
|
| 27 | + */ |
|
| 28 | 28 | public function getCommitLink() |
| 29 | 29 | { |
| 30 | 30 | return 'https://github.com/' . $this->getProject()->getReference() . '/commit/' . $this->getCommitId(); |
| 31 | 31 | } |
| 32 | 32 | |
| 33 | 33 | /** |
| 34 | - * Get link to branch from another source (i.e. Github) |
|
| 35 | - */ |
|
| 34 | + * Get link to branch from another source (i.e. Github) |
|
| 35 | + */ |
|
| 36 | 36 | public function getBranchLink() |
| 37 | 37 | { |
| 38 | 38 | return 'https://github.com/' . $this->getProject()->getReference() . '/tree/' . $this->getBranch(); |
| 39 | 39 | } |
| 40 | 40 | |
| 41 | 41 | /** |
| 42 | - * Send status updates to any relevant third parties (i.e. Github) |
|
| 43 | - */ |
|
| 42 | + * Send status updates to any relevant third parties (i.e. Github) |
|
| 43 | + */ |
|
| 44 | 44 | public function sendStatusPostback() |
| 45 | 45 | { |
| 46 | 46 | $token = \b8\Config::getInstance()->get('phpci.github.token'); |
@@ -97,8 +97,8 @@ discard block |
||
| 97 | 97 | } |
| 98 | 98 | |
| 99 | 99 | /** |
| 100 | - * Get the URL to be used to clone this remote repository. |
|
| 101 | - */ |
|
| 100 | + * Get the URL to be used to clone this remote repository. |
|
| 101 | + */ |
|
| 102 | 102 | protected function getCloneUrl() |
| 103 | 103 | { |
| 104 | 104 | $key = trim($this->getProject()->getSshPrivateKey()); |
@@ -27,7 +27,7 @@ discard block |
||
| 27 | 27 | */ |
| 28 | 28 | public function getCommitLink() |
| 29 | 29 | { |
| 30 | - return 'https://github.com/' . $this->getProject()->getReference() . '/commit/' . $this->getCommitId(); |
|
| 30 | + return 'https://github.com/'.$this->getProject()->getReference().'/commit/'.$this->getCommitId(); |
|
| 31 | 31 | } |
| 32 | 32 | |
| 33 | 33 | /** |
@@ -35,7 +35,7 @@ discard block |
||
| 35 | 35 | */ |
| 36 | 36 | public function getBranchLink() |
| 37 | 37 | { |
| 38 | - return 'https://github.com/' . $this->getProject()->getReference() . '/tree/' . $this->getBranch(); |
|
| 38 | + return 'https://github.com/'.$this->getProject()->getReference().'/tree/'.$this->getBranch(); |
|
| 39 | 39 | } |
| 40 | 40 | |
| 41 | 41 | /** |
@@ -49,7 +49,7 @@ discard block |
||
| 49 | 49 | return; |
| 50 | 50 | } |
| 51 | 51 | |
| 52 | - $project = $this->getProject(); |
|
| 52 | + $project = $this->getProject(); |
|
| 53 | 53 | |
| 54 | 54 | if (empty($project)) { |
| 55 | 55 | return; |
@@ -82,13 +82,13 @@ discard block |
||
| 82 | 82 | |
| 83 | 83 | $params = array( |
| 84 | 84 | 'state' => $status, |
| 85 | - 'target_url' => $phpciUrl . '/build/view/' . $this->getId(), |
|
| 85 | + 'target_url' => $phpciUrl.'/build/view/'.$this->getId(), |
|
| 86 | 86 | 'description' => $description, |
| 87 | 87 | 'context' => 'PHPCI', |
| 88 | 88 | ); |
| 89 | 89 | |
| 90 | 90 | $headers = array( |
| 91 | - 'Authorization: token ' . $token, |
|
| 91 | + 'Authorization: token '.$token, |
|
| 92 | 92 | 'Content-Type: application/x-www-form-urlencoded' |
| 93 | 93 | ); |
| 94 | 94 | |
@@ -104,9 +104,9 @@ discard block |
||
| 104 | 104 | $key = trim($this->getProject()->getSshPrivateKey()); |
| 105 | 105 | |
| 106 | 106 | if (!empty($key)) { |
| 107 | - return '[email protected]:' . $this->getProject()->getReference() . '.git'; |
|
| 107 | + return '[email protected]:'.$this->getProject()->getReference().'.git'; |
|
| 108 | 108 | } else { |
| 109 | - return 'https://github.com/' . $this->getProject()->getReference() . '.git'; |
|
| 109 | + return 'https://github.com/'.$this->getProject()->getReference().'.git'; |
|
| 110 | 110 | } |
| 111 | 111 | } |
| 112 | 112 | |
@@ -122,7 +122,7 @@ discard block |
||
| 122 | 122 | |
| 123 | 123 | if (!is_null($project)) { |
| 124 | 124 | $reference = $project->getReference(); |
| 125 | - $commitLink = '<a target="_blank" href="https://github.com/' . $reference . '/issues/$1">#$1</a>'; |
|
| 125 | + $commitLink = '<a target="_blank" href="https://github.com/'.$reference.'/issues/$1">#$1</a>'; |
|
| 126 | 126 | $rtn = preg_replace('/\#([0-9]+)/', $commitLink, $rtn); |
| 127 | 127 | $rtn = preg_replace('/\@([a-zA-Z0-9_]+)/', '<a target="_blank" href="https://github.com/$1">@$1</a>', $rtn); |
| 128 | 128 | } |
@@ -148,8 +148,8 @@ discard block |
||
| 148 | 148 | $branch = $this->getExtra('remote_branch'); |
| 149 | 149 | } |
| 150 | 150 | |
| 151 | - $link = 'https://github.com/' . $reference . '/'; |
|
| 152 | - $link .= 'blob/' . $branch . '/'; |
|
| 151 | + $link = 'https://github.com/'.$reference.'/'; |
|
| 152 | + $link .= 'blob/'.$branch.'/'; |
|
| 153 | 153 | $link .= '{FILE}'; |
| 154 | 154 | $link .= '#L{LINE}-L{LINE_END}'; |
| 155 | 155 | |
@@ -173,7 +173,7 @@ discard block |
||
| 173 | 173 | $remoteUrl = $this->getExtra('remote_url'); |
| 174 | 174 | $remoteBranch = $this->getExtra('remote_branch'); |
| 175 | 175 | |
| 176 | - $cmd = 'cd "%s" && git checkout -b phpci/' . $this->getId() . ' %s && git pull -q --no-edit %s %s'; |
|
| 176 | + $cmd = 'cd "%s" && git checkout -b phpci/'.$this->getId().' %s && git pull -q --no-edit %s %s'; |
|
| 177 | 177 | $success = $builder->executeCommand($cmd, $cloneTo, $this->getBranch(), $remoteUrl, $remoteBranch); |
| 178 | 178 | } |
| 179 | 179 | } catch (\Exception $ex) { |
@@ -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 | |
@@ -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 | class LocalBuild extends Build |
| 22 | 22 | { |
| 23 | 23 | /** |
| 24 | - * Create a working copy by cloning, copying, or similar. |
|
| 25 | - */ |
|
| 24 | + * Create a working copy by cloning, copying, or similar. |
|
| 25 | + */ |
|
| 26 | 26 | public function createWorkingCopy(Builder $builder, $buildPath) |
| 27 | 27 | { |
| 28 | 28 | $reference = $this->getProject()->getReference(); |
@@ -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 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,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 @@ |
||
| 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; |
| 11 | 11 | |