@@ -981,8 +981,8 @@ discard block |
||
| 981 | 981 | $stmt->bindValue(':OID', $this->BO->getOID(), SQLITE3_INTEGER); |
| 982 | 982 | |
| 983 | 983 | $temp = $this->BO->getVersionNumber()->getValue(); |
| 984 | - $this->BO->set('version_num', $temp + 1); |
|
| 985 | - $stmt->bindValue(':version_num', $temp + 1, SQLITE3_INTEGER); |
|
| 984 | + $this->BO->set('version_num', $temp+1); |
|
| 985 | + $stmt->bindValue(':version_num', $temp+1, SQLITE3_INTEGER); |
|
| 986 | 986 | |
| 987 | 987 | $stmt->execute(); |
| 988 | 988 | } else { |
@@ -1065,7 +1065,7 @@ discard block |
||
| 1065 | 1065 | } else { |
| 1066 | 1066 | // there has been an error, so decrement the version number back |
| 1067 | 1067 | $temp = $this->BO->getVersionNumber()->getValue(); |
| 1068 | - $this->BO->set('version_num', $temp - 1); |
|
| 1068 | + $this->BO->set('version_num', $temp-1); |
|
| 1069 | 1069 | |
| 1070 | 1070 | throw new FailedSaveException('Failed to save object, SQLite error is ['.self::getLastDatabaseError().'], query ['.$this->BO->getLastQuery().']'); |
| 1071 | 1071 | } |
@@ -1090,7 +1090,7 @@ discard block |
||
| 1090 | 1090 | $this->BO->setLastQuery($sqlQuery); |
| 1091 | 1091 | $stmt = self::getConnection()->prepare($sqlQuery); |
| 1092 | 1092 | |
| 1093 | - $newVersionNumber = $this->BO->getVersionNumber()->getValue() + 1; |
|
| 1093 | + $newVersionNumber = $this->BO->getVersionNumber()->getValue()+1; |
|
| 1094 | 1094 | |
| 1095 | 1095 | if ($stmt instanceof SQLite3Stmt) { |
| 1096 | 1096 | if ($this->BO->getPropObject($attribute) instanceof Integer) { |
@@ -84,7 +84,7 @@ |
||
| 84 | 84 | * |
| 85 | 85 | * @since 1.0 |
| 86 | 86 | */ |
| 87 | - protected $dataLabels = array('OID' => 'Article Vote ID#','articleOID' => 'Article','personOID' => 'Voter','score' => 'Article Score'); |
|
| 87 | + protected $dataLabels = array('OID' => 'Article Vote ID#', 'articleOID' => 'Article', 'personOID' => 'Voter', 'score' => 'Article Score'); |
|
| 88 | 88 | |
| 89 | 89 | /** |
| 90 | 90 | * The name of the database table for the class. |
@@ -114,7 +114,7 @@ discard block |
||
| 114 | 114 | 'state' => 'Account state', |
| 115 | 115 | 'URL' => 'Your site address', |
| 116 | 116 | 'rights' => 'Rights Group Membership', |
| 117 | - 'actions' => 'Actions', ); |
|
| 117 | + 'actions' => 'Actions',); |
|
| 118 | 118 | |
| 119 | 119 | /** |
| 120 | 120 | * The name of the database table for the class. |
@@ -178,7 +178,7 @@ discard block |
||
| 178 | 178 | $this->password->isPassword(true); |
| 179 | 179 | $this->state = new Enum(array( |
| 180 | 180 | 'Active', |
| 181 | - 'Disabled', )); |
|
| 181 | + 'Disabled',)); |
|
| 182 | 182 | $this->state->setValue('Active'); |
| 183 | 183 | $this->URL = new String(); |
| 184 | 184 | $this->URL->setRule(Validator::OPTIONAL_HTTP_URL); |
@@ -421,7 +421,7 @@ discard block |
||
| 421 | 421 | */ |
| 422 | 422 | public function generatePassword() |
| 423 | 423 | { |
| 424 | - $alphabet = array('a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'); |
|
| 424 | + $alphabet = array('a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'); |
|
| 425 | 425 | // the password will be 7 random characters and 2 numbers |
| 426 | 426 | $newPassword = ''; |
| 427 | 427 | for ($i = 0; $i < 7; ++$i) { |
@@ -75,7 +75,7 @@ |
||
| 75 | 75 | * |
| 76 | 76 | * @since 1.0 |
| 77 | 77 | */ |
| 78 | - protected $dataLabels = array('OID' => 'Rights Group ID#','name' => 'Rights Group Name','members' => 'Rights Group Members'); |
|
| 78 | + protected $dataLabels = array('OID' => 'Rights Group ID#', 'name' => 'Rights Group Name', 'members' => 'Rights Group Members'); |
|
| 79 | 79 | |
| 80 | 80 | /** |
| 81 | 81 | * The name of the database table for the class. |
@@ -98,7 +98,7 @@ |
||
| 98 | 98 | * |
| 99 | 99 | * @since 1.0 |
| 100 | 100 | */ |
| 101 | - protected $dataLabels = array('OID' => 'DEnum ID#','name' => 'Name'); |
|
| 101 | + protected $dataLabels = array('OID' => 'DEnum ID#', 'name' => 'Name'); |
|
| 102 | 102 | |
| 103 | 103 | /** |
| 104 | 104 | * The message to display to the user when validation fails. |
@@ -86,7 +86,7 @@ discard block |
||
| 86 | 86 | * |
| 87 | 87 | * @since 1.0 |
| 88 | 88 | */ |
| 89 | - protected $dataLabels = array('OID' => 'Sequence ID#','prefix' => 'Sequence prefix','sequence' => 'Sequence number'); |
|
| 89 | + protected $dataLabels = array('OID' => 'Sequence ID#', 'prefix' => 'Sequence prefix', 'sequence' => 'Sequence number'); |
|
| 90 | 90 | |
| 91 | 91 | /** |
| 92 | 92 | * The message to display to the user when validation fails. |
@@ -174,7 +174,7 @@ discard block |
||
| 174 | 174 | $this->set('sequence', 0); |
| 175 | 175 | } |
| 176 | 176 | |
| 177 | - $this->set('sequence', $this->get('sequence') + 1); |
|
| 177 | + $this->set('sequence', $this->get('sequence')+1); |
|
| 178 | 178 | $this->save(); |
| 179 | 179 | } |
| 180 | 180 | |
@@ -88,7 +88,7 @@ |
||
| 88 | 88 | * |
| 89 | 89 | * @since 1.0 |
| 90 | 90 | */ |
| 91 | - protected $dataLabels = array('OID' => 'DEnumItem ID#','value' => 'Dropdown value'); |
|
| 91 | + protected $dataLabels = array('OID' => 'DEnumItem ID#', 'value' => 'Dropdown value'); |
|
| 92 | 92 | |
| 93 | 93 | /** |
| 94 | 94 | * The message to display to the user when validation fails. |
@@ -108,7 +108,7 @@ |
||
| 108 | 108 | * |
| 109 | 109 | * @since 1.0 |
| 110 | 110 | */ |
| 111 | - protected $dataLabels = array('OID' => 'RelationLookup ID#','leftID' => 'Left BO ID#','rightID' => 'Right BO ID#'); |
|
| 111 | + protected $dataLabels = array('OID' => 'RelationLookup ID#', 'leftID' => 'Left BO ID#', 'rightID' => 'Right BO ID#'); |
|
| 112 | 112 | |
| 113 | 113 | /** |
| 114 | 114 | * The message to display to the user when validation fails. |
@@ -91,7 +91,7 @@ discard block |
||
| 91 | 91 | * |
| 92 | 92 | * @param Alpha\Util\Http\Request $request |
| 93 | 93 | * |
| 94 | - * @return Alpha\Util\Http\Response |
|
| 94 | + * @return Response |
|
| 95 | 95 | * |
| 96 | 96 | * @since 1.0 |
| 97 | 97 | */ |
@@ -115,7 +115,7 @@ discard block |
||
| 115 | 115 | * |
| 116 | 116 | * @param Alpha\Util\Http\Request $request |
| 117 | 117 | * |
| 118 | - * @return Alpha\Util\Http\Response |
|
| 118 | + * @return Response |
|
| 119 | 119 | * |
| 120 | 120 | * @since 1.0 |
| 121 | 121 | */ |