Passed
Push — develop ( 319bd8...330c7a )
by Neill
16:41 queued 15s
created
neon/install/controllers/ConfigController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
53 53
 					InstallHelper::createConfigFile($installer);
54 54
 					return $this->render('_created');
55 55
 				}
56
-				return $this->render('_show', [ 'config' => InstallHelper::createConfigFileContents($installer) ]);
56
+				return $this->render('_show', ['config' => InstallHelper::createConfigFileContents($installer)]);
57 57
 			}
58 58
 		}
59 59
 		return $this->render('index', ['model'=>$installer]);
Please login to merge, or discard this patch.
neon/install/forms/InstallUser.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -43,8 +43,9 @@
 block discarded – undo
43 43
 	 */
44 44
 	public function createUser(&$user)
45 45
 	{
46
-		if (!$this->validate())
47
-			return false;
46
+		if (!$this->validate()) {
47
+					return false;
48
+		}
48 49
 		$user = new User();
49 50
 		$user->username = $this->username;
50 51
 		$user->email = $this->email;
Please login to merge, or discard this patch.
neon/daedalus/interfaces/IDdsChangeLogManagement.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
 	 * @param \neon\core\helpers\Iterator $iterator  Iterate over the results.
64 64
 	 * @return array  the change log data
65 65
 	 */
66
-	public function listChangeLog($fromDate=null, Iterator $iterator=null);
66
+	public function listChangeLog($fromDate = null, Iterator $iterator = null);
67 67
 
68 68
 	/**
69 69
 	 * List an object's change log, if the object's class has been set up to store changes
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
 	 * @return If the object's class is set to have a change log, this will return the
74 74
 	 *   change log for this object. Otherwise it will return a blank array.
75 75
 	 */
76
-	public function listObjectChangeLog($uuid, $fromDate=null, Iterator $iterator=null);
76
+	public function listObjectChangeLog($uuid, $fromDate = null, Iterator $iterator = null);
77 77
 
78 78
 	/**
79 79
 	 * List the history of an object, if the object's class has been set up to store changes.
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
 	 * @return If the object's class is set to have a change log, this will return the
85 85
 	 *   history for this object. Otherwise it will return a blank array.
86 86
 	 */
87
-	public function listObjectHistory($uuid, $fromDate=null, Iterator $iterator=null);
87
+	public function listObjectHistory($uuid, $fromDate = null, Iterator $iterator = null);
88 88
 
89 89
 	/**
90 90
 	 * Clear change log to a certain date and optionally for particular class types
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
 	 *   then the $classList is the set of log items to be preserved and all
99 99
 	 *   others are cleared.
100 100
 	 */
101
-	public function clearChangeLog($toDate, $classList=[], $clearClassList=true);
101
+	public function clearChangeLog($toDate, $classList = [], $clearClassList = true);
102 102
 
103 103
 	/**
104 104
 	 * Clear an object's change log
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
 	 *   This can be empty, if the item was deleted or destroyed for example.
125 125
 	 * @return string  the uuid of the created log entry
126 126
 	 */
127
-	public function addLogEntry($objectUuid, $class, $changeKey, $before=[], $after=[]);
127
+	public function addLogEntry($objectUuid, $class, $changeKey, $before = [], $after = []);
128 128
 
129 129
 	/**
130 130
 	 * Get the log entry
@@ -163,7 +163,7 @@  discard block
 block discarded – undo
163 163
 	 * @param array $associateObjectUuids  any associated objects that are related to the principal one.
164 164
 	 * @return string  the uuid of the created log entry
165 165
 	 */
166
-	public function addGeneralComment($module, $classType, $comment, $objectUuid=null, array $associateObjectUuids=[]);
166
+	public function addGeneralComment($module, $classType, $comment, $objectUuid = null, array $associateObjectUuids = []);
167 167
 
168 168
 	/**
169 169
 	 * Get an object's value at a particular log point.
Please login to merge, or discard this patch.
neon/daedalus/interfaces/IDdsObjectMapManagement.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
 	 * @throw \InvalidArgumentException  if the class type does not exist
72 72
 	 * @throw \RuntimeException  if the map field does not exist
73 73
 	 */
74
-	public function getObjectMap($classType, $filters=[], $mapFields=[], $start=0, $length=1000, $includeDeleted=false);
74
+	public function getObjectMap($classType, $filters = [], $mapFields = [], $start = 0, $length = 1000, $includeDeleted = false);
75 75
 
76 76
 
77 77
 	/**
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
 	 * @return string $requestKey  returns a unique request key so the results can be
92 92
 	 *   found after committing.
93 93
 	 */
94
-	public function makeMapLookupRequest($objectUuids, $mapFields=[], $classType=null);
94
+	public function makeMapLookupRequest($objectUuids, $mapFields = [], $classType = null);
95 95
 
96 96
 	/**
97 97
 	 * Get hold of the requested map lookup
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
 	 *   found after committing. @see getMapChainLookupResult for the data structure
134 134
 	 *   returned
135 135
 	 */
136
-	public function makeMapChainLookupRequest($objectUuids, $chainMembers=[], $chainMapFields=[], $inReverse=false);
136
+	public function makeMapChainLookupRequest($objectUuids, $chainMembers = [], $chainMapFields = [], $inReverse = false);
137 137
 
138 138
 	/**
139 139
 	 * Commit the map requests stored so that all object chains are resolved
Please login to merge, or discard this patch.
neon/daedalus/interfaces/IDdsAppMigrator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,6 +52,6 @@
 block discarded – undo
52 52
 	 * @param boolean $delete  if set to true, then the migration is deleted
53 53
 	 *   regardless of whether or not any migrations were stored
54 54
 	 */
55
-	public function closeMigrationFile($delete=false);
55
+	public function closeMigrationFile($delete = false);
56 56
 
57 57
 }
58 58
\ No newline at end of file
Please login to merge, or discard this patch.
neon/daedalus/interfaces/IDdsObjectManagement.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -301,10 +301,10 @@
 block discarded – undo
301 301
 	public function commitRequests();
302 302
 
303 303
  	/**
304
-	 * Extract data from the last committed requests
305
-	 * @param string $requestKey  the request key you want to extract for
306
-	 * @return array  the requested data or [] if none
307
-	 */
304
+ 	 * Extract data from the last committed requests
305
+ 	 * @param string $requestKey  the request key you want to extract for
306
+ 	 * @return array  the requested data or [] if none
307
+ 	 */
308 308
 	public function getLastCommitData($requestKey);
309 309
 
310 310
 
Please login to merge, or discard this patch.
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -231,7 +231,7 @@  discard block
 block discarded – undo
231 231
 	 * @return array  a single result set as ['start', 'length', 'total', 'rows']
232 232
 	 *   @see commitRequests for more details
233 233
 	 */
234
-	public function runSingleObjectRequest($classType, array $filters=[], array $order=[], array $limit=[], $includeDeleted=false);
234
+	public function runSingleObjectRequest($classType, array $filters = [], array $order = [], array $limit = [], $includeDeleted = false);
235 235
 
236 236
 	/**
237 237
 	 * Add an object request to the list of pending requests. Database queries can
@@ -262,7 +262,7 @@  discard block
 block discarded – undo
262 262
 	 *   or the resultKey has already been used. These indicate bugs in the
263 263
 	 *   calling code so better not to catch it but deal with the bugs
264 264
 	 */
265
-	public function addObjectRequest($classType, array $filters=[], array $order=[], array $limit=[], $resultKey=null, $includeDeleted=false);
265
+	public function addObjectRequest($classType, array $filters = [], array $order = [], array $limit = [], $resultKey = null, $includeDeleted = false);
266 266
 
267 267
 	/**
268 268
 	 * Return the set of object requests currently queued
@@ -333,7 +333,7 @@  discard block
 block discarded – undo
333 333
 	 *   [ _uuid, _class_type, _deleted, [{$data}]]
334 334
 	 *   where 'data' is set if $inFull is true
335 335
 	 */
336
-	public function listObjects($classType, &$total=null, $includeDeleted=false, $inFull=true, $start=0, $length=100, $order=null);
336
+	public function listObjects($classType, &$total = null, $includeDeleted = false, $inFull = true, $start = 0, $length = 100, $order = null);
337 337
 
338 338
 	/**
339 339
 	 * Create a new object
@@ -347,7 +347,7 @@  discard block
 block discarded – undo
347 347
 	 * @return string   the uuid for the object
348 348
 	 * @throws exception  if anything went wrong with creating the object
349 349
 	 */
350
-	public function addObject($classType, array $data, &$changeLogId=null);
350
+	public function addObject($classType, array $data, &$changeLogId = null);
351 351
 
352 352
 	/**
353 353
 	 * Add multiple objects in bulk
@@ -363,7 +363,7 @@  discard block
 block discarded – undo
363 363
 	 *   for one batch (rows of the number defined by chunkSize). MAX_ALLOWED_PACKET refers to the total size
364 364
 	 *   of the raw SQL text sent to MySQL server.
365 365
 	 */
366
-	public function addObjects($classType, array $data, $chunkSize=1000);
366
+	public function addObjects($classType, array $data, $chunkSize = 1000);
367 367
 
368 368
 	/**
369 369
 	 * Get an object's details
@@ -390,7 +390,7 @@  discard block
 block discarded – undo
390 390
 	 * @return bool|array  returns true on successful save and
391 391
 	 *   an array of errors if it couldn't save the object
392 392
 	 */
393
-	public function editObject($uuid, array $changes, &$changeLogId=null);
393
+	public function editObject($uuid, array $changes, &$changeLogId = null);
394 394
 
395 395
 	/**
396 396
 	 * Edit a series of objects with the *same* changes
@@ -422,7 +422,7 @@  discard block
 block discarded – undo
422 422
 	 * @param string $changeLogId  if the class has a change log, this will be set
423 423
 	 *   to the change log entry uuid
424 424
 	 */
425
-	public function deleteObject($uuid, &$changeLogId=null);
425
+	public function deleteObject($uuid, &$changeLogId = null);
426 426
 
427 427
 	/**
428 428
 	 * Soft delete a set of objects.
@@ -438,7 +438,7 @@  discard block
 block discarded – undo
438 438
 	 * @param string $changeLogId  if the class has a change log, this will be set
439 439
 	 *   to the change log entry uuid
440 440
 	 */
441
-	public function undeleteObject($uuid, &$changeLogId=null);
441
+	public function undeleteObject($uuid, &$changeLogId = null);
442 442
 
443 443
 	/**
444 444
 	 * Destroy an object - this removes the data from the database can
@@ -448,7 +448,7 @@  discard block
 block discarded – undo
448 448
 	 * @param string $changeLogId  if the class has a change log, this will be set
449 449
 	 *   to the change log entry uuid
450 450
 	 */
451
-	public function destroyObject($uuid, &$changeLogId=null);
451
+	public function destroyObject($uuid, &$changeLogId = null);
452 452
 
453 453
 	/**
454 454
 	 * Destroy a set of objects. This cannot be undone
Please login to merge, or discard this patch.
neon/daedalus/interfaces/IDdsDataTypeManagement.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
 	 *   any deleted datatyes
26 26
 	 * @return an array data types
27 27
 	 */
28
-	public function listDataTypes($includeDeleted=false);
28
+	public function listDataTypes($includeDeleted = false);
29 29
 
30 30
 	/**
31 31
 	 * Create a datatype.
Please login to merge, or discard this patch.
neon/daedalus/interfaces/IDdsQueryHelpers.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,5 +17,5 @@
 block discarded – undo
17 17
 	 *   does and has been deleted.
18 18
 	 * @return mixed
19 19
 	 */
20
-	public function addObjectDeletionChecksOnJoin(\yii\db\Query $query, $tables, $join='innerJoin');
20
+	public function addObjectDeletionChecksOnJoin(\yii\db\Query $query, $tables, $join = 'innerJoin');
21 21
 }
22 22
\ No newline at end of file
Please login to merge, or discard this patch.
neon/daedalus/grid/ChangeLogGrid.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
 		$this->addDateColumn('when')->setWidth("10em");
46 46
 
47 47
 		$this->addButtonColumn('View')
48
-			->addButton('view', ['/daedalus/change-log/view-object' , 'uuid' => '{{object_uuid}}', 'logUuid' => '{{log_uuid}}'], '', 'fa fa-eye', '', ['data-toggle' => 'tooltip', 'title'=>'View Object']);
48
+			->addButton('view', ['/daedalus/change-log/view-object', 'uuid' => '{{object_uuid}}', 'logUuid' => '{{log_uuid}}'], '', 'fa fa-eye', '', ['data-toggle' => 'tooltip', 'title'=>'View Object']);
49 49
 
50 50
 		$this->setPageSize(100);
51 51
 	}
Please login to merge, or discard this patch.
Braces   +14 added lines, -10 removed lines patch added patch discarded remove patch
@@ -23,19 +23,23 @@
 block discarded – undo
23 23
 	{
24 24
 		$this->query = (new \yii\db\Query())
25 25
 			->from('{{dds_change_log}}');
26
-		if ($this->classType)
27
-			$this->query->where(['class_type'=>$this->classType]);
28
-		if ($this->objectUuid)
29
-			$this->query->andWhere(['object_uuid'=>$this->objectUuid]);
26
+		if ($this->classType) {
27
+					$this->query->where(['class_type'=>$this->classType]);
28
+		}
29
+		if ($this->objectUuid) {
30
+					$this->query->andWhere(['object_uuid'=>$this->objectUuid]);
31
+		}
30 32
 		$this->query->orderBy(['when'=>SORT_DESC, 'log_id'=>SORT_DESC]);
31 33
 
32
-		if (!$this->classType)
33
-			$this->title = 'Full Change Log';
34
-		else
35
-			$this->title = 'Change Log for class '.$this->classType;
34
+		if (!$this->classType) {
35
+					$this->title = 'Full Change Log';
36
+		} else {
37
+					$this->title = 'Change Log for class '.$this->classType;
38
+		}
36 39
 
37
-		if ($this->objectUuid)
38
-			$this->title .= " and object '$this->objectUuid'";
40
+		if ($this->objectUuid) {
41
+					$this->title .= " and object '$this->objectUuid'";
42
+		}
39 43
 
40 44
 		$this->addTextColumn('log_uuid')->setWidth("10em");
41 45
 		$this->addTextColumn('object_uuid')->setWidth("10em");
Please login to merge, or discard this patch.