Completed
Branch develop (815a4e)
by John
07:49
created
Alpha/Controller/TagController.php 2 patches
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
      *
103 103
      * @param Alpha\Util\Http\Request $request
104 104
      *
105
-     * @return Alpha\Util\Http\Response
105
+     * @return Response
106 106
      *
107 107
      * @throws Alpha\Exception\IllegalArguementException
108 108
      * @throws Alpha\Exception\FileNotFoundException
@@ -277,7 +277,7 @@  discard block
 block discarded – undo
277 277
      *
278 278
      * @param Alpha\Util\Http\Request $request
279 279
      *
280
-     * @return Alpha\Util\Http\Response
280
+     * @return Response|null
281 281
      *
282 282
      * @throws Alpha\Exception\SecurityException
283 283
      * @throws Alpha\Exception\IllegalArguementException
@@ -403,7 +403,7 @@  discard block
 block discarded – undo
403 403
      *
404 404
      * @param Alpha\Util\Http\Request $request
405 405
      *
406
-     * @return Alpha\Util\Http\Response
406
+     * @return Response
407 407
      *
408 408
      * @throws Alpha\Exception\SecurityException
409 409
      * @throws Alpha\Exception\IllegalArguementException
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -302,17 +302,17 @@
 block discarded – undo
302 302
                     $startTime = microtime(true);
303 303
                     $record = new $params['clearTaggedClass']();
304 304
                     $records = $record->loadAll();
305
-                    self::$logger->info('Loaded all of the active records (elapsed time ['.round(microtime(true) - $startTime, 5).'] seconds)');
305
+                    self::$logger->info('Loaded all of the active records (elapsed time ['.round(microtime(true)-$startTime, 5).'] seconds)');
306 306
                     ActiveRecord::begin();
307 307
                     $tag = new Tag();
308 308
                     $tag->deleteAllByAttribute('taggedClass', $params['clearTaggedClass']);
309
-                    self::$logger->info('Deleted all of the old tags (elapsed time ['.round(microtime(true) - $startTime, 5).'] seconds)');
309
+                    self::$logger->info('Deleted all of the old tags (elapsed time ['.round(microtime(true)-$startTime, 5).'] seconds)');
310 310
                     $this->regenerateTagsOnRecords($records);
311
-                    self::$logger->info('Saved all of the new tags (elapsed time ['.round(microtime(true) - $startTime, 5).'] seconds)');
311
+                    self::$logger->info('Saved all of the new tags (elapsed time ['.round(microtime(true)-$startTime, 5).'] seconds)');
312 312
                     self::$logger->action('Tags recreated on the ['.$params['clearTaggedClass'].'] class');
313 313
                     ActiveRecord::commit();
314 314
                     $this->setStatusMessage(View::displayUpdateMessage('Tags recreated on the '.$record->getFriendlyClassName().' class.'));
315
-                    self::$logger->info('Tags recreated on the ['.$params['clearTaggedClass'].'] class (time taken ['.round(microtime(true) - $startTime, 5).'] seconds).');
315
+                    self::$logger->info('Tags recreated on the ['.$params['clearTaggedClass'].'] class (time taken ['.round(microtime(true)-$startTime, 5).'] seconds).');
316 316
                 } catch (AlphaException $e) {
317 317
                     self::$logger->error($e->getMessage());
318 318
                     ActiveRecord::rollback();
Please login to merge, or discard this patch.
Alpha/Model/ActiveRecord.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,6 @@
 block discarded – undo
4 4
 
5 5
 use Alpha\Model\Type\Integer;
6 6
 use Alpha\Model\Type\Timestamp;
7
-use Alpha\Model\Type\Enum;
8 7
 use Alpha\Model\Type\Relation;
9 8
 use Alpha\Util\Config\ConfigProvider;
10 9
 use Alpha\Util\Logging\Logger;
Please login to merge, or discard this patch.
Doc Comments   +6 added lines, -7 removed lines patch added patch discarded remove patch
@@ -316,7 +316,7 @@  discard block
 block discarded – undo
316 316
     /**
317 317
      * Populates the child object from the database table by the given attribute value.
318 318
      *
319
-     * @param string $atribute        The name of the attribute to load the object by.
319
+     * @param string $attribute        The name of the attribute to load the object by.
320 320
      * @param string $value           The value of the attribute to load the object by.
321 321
      * @param bool   $ignoreClassType Default is false, set to true if you want to load from overloaded tables and ignore the class type
322 322
      * @param array  $loadAttributes  The attributes to load from the database to this object (leave blank to load all attributes)
@@ -392,7 +392,7 @@  discard block
 block discarded – undo
392 392
     /**
393 393
      * Loads all of the objects of this class by the specified attribute into an array which is returned.
394 394
      *
395
-     * @param string $atribute        The attribute to load the objects by.
395
+     * @param string $attribute        The attribute to load the objects by.
396 396
      * @param string $value           The value of the attribute to load the objects by.
397 397
      * @param int    $start           The start of the SQL LIMIT clause, useful for pagination.
398 398
      * @param int    $limit           The amount (limit) of objects to load, useful for pagination.
@@ -433,7 +433,7 @@  discard block
 block discarded – undo
433 433
     /**
434 434
      * Loads all of the objects of this class by the specified attributes into an array which is returned.
435 435
      *
436
-     * @param array  $atributes       The attributes to load the objects by.
436
+     * @param array  $attributes       The attributes to load the objects by.
437 437
      * @param array  $values          The values of the attributes to load the objects by.
438 438
      * @param int    $start           The start of the SQL LIMIT clause, useful for pagination.
439 439
      * @param int    $limit           The amount (limit) of objects to load, useful for pagination.
@@ -1101,7 +1101,7 @@  discard block
 block discarded – undo
1101 1101
     /**
1102 1102
      * Gets the count from the database for the amount of objects of this class.
1103 1103
      *
1104
-     * @param array $atributes The attributes to count the objects by (optional).
1104
+     * @param array $attributes The attributes to count the objects by (optional).
1105 1105
      * @param array $values    The values of the attributes to count the objects by (optional).
1106 1106
      *
1107 1107
      * @return int
@@ -1174,7 +1174,7 @@  discard block
 block discarded – undo
1174 1174
      * to be overridden in case you want to do something different with the ID of your objects outside
1175 1175
      * of the standard 11 digit OID sequence used internally in Alpha.
1176 1176
      *
1177
-     * @return int 11 digit zero-padded OID value.
1177
+     * @return string 11 digit zero-padded OID value.
1178 1178
      *
1179 1179
      * @since 1.0
1180 1180
      */
@@ -1191,7 +1191,7 @@  discard block
 block discarded – undo
1191 1191
      * Gets the OID for the object in zero-padded format (same as getID()).  This version is final so cannot
1192 1192
      * be overridden.
1193 1193
      *
1194
-     * @return int 11 digit zero-padded OID value.
1194
+     * @return string 11 digit zero-padded OID value.
1195 1195
      *
1196 1196
      * @since 1.0
1197 1197
      */
@@ -1756,7 +1756,6 @@  discard block
 block discarded – undo
1756 1756
      * @param string $attributeName         The name of the attribute to apply the index on.
1757 1757
      * @param string $relatedClass          The name of the related class in the format "NameObject".
1758 1758
      * @param string $relatedClassAttribute The name of the field to relate to on the related class.
1759
-     * @param bool   $allowNullValues       For foreign key indexes that don't allow null values, set this to false (default is true).
1760 1759
      *
1761 1760
      * @since 1.0
1762 1761
      *
Please login to merge, or discard this patch.
Alpha/Model/ActiveRecordProviderFactory.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@
 block discarded – undo
72 72
      *
73 73
      * @throws Alpha\Exception\IllegalArguementException
74 74
      *
75
-     * @return Alpha\Model\ActiveRecordProviderInterface
75
+     * @return ActiveRecordProviderInterface|null
76 76
      *
77 77
      * @since 1.1
78 78
      */
Please login to merge, or discard this patch.
Alpha/Model/ActiveRecordProviderInterface.php 1 patch
Doc Comments   +26 added lines, -8 removed lines patch added patch discarded remove patch
@@ -60,6 +60,7 @@  discard block
 block discarded – undo
60 60
      * Disconnects the current database connection if one exists (self::$connection is set).
61 61
      *
62 62
      * @since 1.1
63
+     * @return void
63 64
      */
64 65
     public static function disconnect();
65 66
 
@@ -100,7 +101,7 @@  discard block
 block discarded – undo
100 101
     /**
101 102
      * Populates the record object from the database table by the given attribute value.
102 103
      *
103
-     * @param string $atribute        The name of the attribute to load the record by.
104
+     * @param string $attribute        The name of the attribute to load the record by.
104 105
      * @param string $value           The value of the attribute to load the record by.
105 106
      * @param bool   $ignoreClassType Default is false, set to true if you want to load from overloaded tables and ignore the class type
106 107
      * @param array  $loadAttributes  The attributes to load from the database to this object (leave blank to load all attributes)
@@ -131,14 +132,14 @@  discard block
 block discarded – undo
131 132
     /**
132 133
      * Loads all of the objects of this class by the specified attribute into an array which is returned.
133 134
      *
134
-     * @param string $atribute        The attribute to load the objects by.
135
+     * @param string $attribute        The attribute to load the objects by.
135 136
      * @param string $value           The value of the attribute to load the objects by.
136 137
      * @param int    $start           The start of the SQL LIMIT clause, useful for pagination.
137 138
      * @param int    $limit           The amount (limit) of objects to load, useful for pagination.
138 139
      * @param string $orderBy         The name of the field to sort the objects by.
139 140
      * @param string $order           The order to sort the objects by.
140 141
      * @param bool   $ignoreClassType Default is false, set to true if you want to load from overloaded tables and ignore the class type.
141
-     * @param array  $constructorArgs An optional array of contructor arguements to pass to the BOs that will be generated and returned.  Supports a maximum of 5 arguements.
142
+     * @param string[]  $constructorArgs An optional array of contructor arguements to pass to the BOs that will be generated and returned.  Supports a maximum of 5 arguements.
142 143
      *
143 144
      * @return array An array containing objects of this type of business object.
144 145
      *
@@ -152,14 +153,14 @@  discard block
 block discarded – undo
152 153
     /**
153 154
      * Loads all of the record objects of this class by the specified attributes into an array which is returned.
154 155
      *
155
-     * @param array  $atributes       The attributes to load the records by.
156
+     * @param array  $attributes       The attributes to load the records by.
156 157
      * @param array  $values          The values of the attributes to load the records by.
157 158
      * @param int    $start           The start of the SQL LIMIT clause, useful for pagination.
158 159
      * @param int    $limit           The amount (limit) of records to load, useful for pagination.
159 160
      * @param string $orderBy         The name of the field to sort the records by.
160 161
      * @param string $order           The order to sort the records by.
161 162
      * @param bool   $ignoreClassType Default is false, set to true if you want to load from overloaded tables and ignore the class type
162
-     * @param array  $constructorArgs An optional array of contructor arguements to pass to the BOs that will be generated and returned.  Supports a maximum of 5 arguements.
163
+     * @param string[]  $constructorArgs An optional array of contructor arguements to pass to the BOs that will be generated and returned.  Supports a maximum of 5 arguements.
163 164
      *
164 165
      * @return array An array containing objects of this type of record object.
165 166
      *
@@ -228,6 +229,7 @@  discard block
 block discarded – undo
228 229
      *
229 230
      * @throws Alpha\Exception\IllegalArguementException
230 231
      * @throws Alpha\Exception\FailedSaveException
232
+     * @return void
231 233
      */
232 234
     public function saveAttribute($attribute, $value);
233 235
 
@@ -237,6 +239,7 @@  discard block
 block discarded – undo
237 239
      * @since 1.2
238 240
      *
239 241
      * @throws Alpha\Exception\FailedSaveException
242
+     * @return void
240 243
      */
241 244
     public function saveHistory();
242 245
 
@@ -246,6 +249,7 @@  discard block
 block discarded – undo
246 249
      * @since 1.1
247 250
      *
248 251
      * @throws Alpha\Exception\FailedDeleteException
252
+     * @return void
249 253
      */
250 254
     public function delete();
251 255
 
@@ -266,6 +270,7 @@  discard block
 block discarded – undo
266 270
      * @since 1.1
267 271
      *
268 272
      * @throws Alpha\Exception\AlphaException
273
+     * @return void
269 274
      */
270 275
     public function makeTable();
271 276
 
@@ -275,6 +280,7 @@  discard block
 block discarded – undo
275 280
      * @since 1.2
276 281
      *
277 282
      * @throws AlphaException
283
+     * @return void
278 284
      */
279 285
     public function makeHistoryTable();
280 286
 
@@ -284,6 +290,7 @@  discard block
 block discarded – undo
284 290
      * @since 1.1
285 291
      *
286 292
      * @throws Alpha\Exception\AlphaException
293
+     * @return void
287 294
      */
288 295
     public function rebuildTable();
289 296
 
@@ -295,6 +302,7 @@  discard block
 block discarded – undo
295 302
      * @param string $tableName Optional table name, leave blank for the defined table for this class to be dropped
296 303
      *
297 304
      * @throws Alpha\Exception\AlphaException
305
+     * @return void
298 306
      */
299 307
     public function dropTable($tableName = null);
300 308
 
@@ -307,6 +315,7 @@  discard block
 block discarded – undo
307 315
      * @since 1.1
308 316
      *
309 317
      * @throws Alpha\Exception\AlphaException
318
+     * @return void
310 319
      */
311 320
     public function addProperty($propName);
312 321
 
@@ -324,7 +333,7 @@  discard block
 block discarded – undo
324 333
     /**
325 334
      * Gets the count from the database for the amount of objects of this class.
326 335
      *
327
-     * @param array $atributes The attributes to count the objects by (optional).
336
+     * @param array $attributes The attributes to count the objects by (optional).
328 337
      * @param array $values    The values of the attributes to count the objects by (optional).
329 338
      *
330 339
      * @return int
@@ -353,6 +362,7 @@  discard block
 block discarded – undo
353 362
      * @since 1.1
354 363
      *
355 364
      * @throws Alpha\Exception\AlphaException
365
+     * @return void
356 366
      */
357 367
     public function setEnumOptions();
358 368
 
@@ -426,11 +436,11 @@  discard block
 block discarded – undo
426 436
      * @param string $attributeName         The name of the attribute to apply the index on.
427 437
      * @param string $relatedClass          The fully-qualified name of the related class.
428 438
      * @param string $relatedClassAttribute The name of the field to relate to on the related class.
429
-     * @param bool   $allowNullValues       For foreign key indexes that don't allow null values, set this to false (default is true).
430 439
      *
431 440
      * @since 1.1
432 441
      *
433 442
      * @throws Alpha\Exception\FailedIndexCreateException
443
+     * @return void
434 444
      */
435 445
     public function createForeignIndex($attributeName, $relatedClass, $relatedClassAttribute);
436 446
 
@@ -444,6 +454,7 @@  discard block
 block discarded – undo
444 454
      * @since 1.1
445 455
      *
446 456
      * @throws Alpha\Exception\FailedIndexCreateException
457
+     * @return void
447 458
      */
448 459
     public function createUniqueIndex($attribute1Name, $attribute2Name = '', $attribute3Name = '');
449 460
 
@@ -453,6 +464,7 @@  discard block
 block discarded – undo
453 464
      * @since 1.1
454 465
      *
455 466
      * @throws Alpha\Exception\AlphaException
467
+     * @return void
456 468
      */
457 469
     public function reload();
458 470
 
@@ -488,6 +500,7 @@  discard block
 block discarded – undo
488 500
      * @since 1.1
489 501
      *
490 502
      * @throws Alpha\Exception\AlphaException
503
+     * @return void
491 504
      */
492 505
     public static function begin();
493 506
 
@@ -497,6 +510,7 @@  discard block
 block discarded – undo
497 510
      * @since 1.1
498 511
      *
499 512
      * @throws Alpha\Exception\FailedSaveException
513
+     * @return void
500 514
      */
501 515
     public static function commit();
502 516
 
@@ -506,15 +520,17 @@  discard block
 block discarded – undo
506 520
      * @since 1.1
507 521
      *
508 522
      * @throws Alpha\Exception\AlphaException
523
+     * @return void
509 524
      */
510 525
     public static function rollback();
511 526
 
512 527
     /**
513 528
      * Provide the BO that we are going to map the data to from this provider.
514 529
      *
515
-     * @param Alpha\Model\ActiveRecord $BO
530
+     * @param ActiveRecord $BO
516 531
      *
517 532
      * @since 1.1
533
+     * @return void
518 534
      */
519 535
     public function setBO($BO);
520 536
 
@@ -547,6 +563,7 @@  discard block
 block discarded – undo
547 563
      * @throws Alpha\Exception\AlphaException
548 564
      *
549 565
      * @since 2.0
566
+     * @return void
550 567
      */
551 568
     public static function createDatabase();
552 569
 
@@ -556,6 +573,7 @@  discard block
 block discarded – undo
556 573
      * @throws Alpha\Exception\AlphaException
557 574
      *
558 575
      * @since 2.0
576
+     * @return void
559 577
      */
560 578
     public static function dropDatabase();
561 579
 }
Please login to merge, or discard this patch.
Alpha/Model/ActiveRecordProviderMySQL.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2383,7 +2383,7 @@
 block discarded – undo
2383 2383
      * parameters.  If arrays of attribute names and values are provided, only those will be bound to
2384 2384
      * the supplied statement.
2385 2385
      *
2386
-     * @param mysqli_stmt $stmt The SQL statement to bind to.
2386
+     * @param \mysqli_stmt $stmt The SQL statement to bind to.
2387 2387
      * @param array Optional array of BO attributes.
2388 2388
      * @param array Optional array of BO values.
2389 2389
      *
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1033,7 +1033,7 @@  discard block
 block discarded – undo
1033 1033
         } else {
1034 1034
             // there has been an error, so decrement the version number back
1035 1035
             $temp = $this->BO->getVersionNumber()->getValue();
1036
-            $this->BO->set('version_num', $temp - 1);
1036
+            $this->BO->set('version_num', $temp-1);
1037 1037
 
1038 1038
             // check for unique violations
1039 1039
             if (self::getConnection()->errno == '1062') {
@@ -1065,7 +1065,7 @@  discard block
 block discarded – undo
1065 1065
         $this->BO->setLastQuery($sqlQuery);
1066 1066
         $stmt = self::getConnection()->stmt_init();
1067 1067
 
1068
-        $newVersionNumber = $this->BO->getVersionNumber()->getValue() + 1;
1068
+        $newVersionNumber = $this->BO->getVersionNumber()->getValue()+1;
1069 1069
 
1070 1070
         if ($stmt->prepare($sqlQuery)) {
1071 1071
             if ($this->BO->getPropObject($attribute) instanceof Integer) {
@@ -2441,7 +2441,7 @@  discard block
 block discarded – undo
2441 2441
 
2442 2442
                     if ($propName == 'version_num') {
2443 2443
                         $temp = $this->BO->getVersionNumber()->getValue();
2444
-                        $this->BO->set('version_num', $temp + 1);
2444
+                        $this->BO->set('version_num', $temp+1);
2445 2445
                         $bindingsTypes .= 'i';
2446 2446
                         array_push($params, $this->BO->getVersionNumber()->getValue());
2447 2447
                     }
@@ -2542,7 +2542,7 @@  discard block
 block discarded – undo
2542 2542
         $singleQuote1 = mb_strpos($error, "'");
2543 2543
         $singleQuote2 = mb_strrpos($error, "'");
2544 2544
 
2545
-        $value = mb_substr($error, $singleQuote1, ($singleQuote2 - $singleQuote1) + 1);
2545
+        $value = mb_substr($error, $singleQuote1, ($singleQuote2-$singleQuote1)+1);
2546 2546
         self::$logger->debug('<<findOffendingValue ['.$value.'])');
2547 2547
 
2548 2548
         return $value;
Please login to merge, or discard this patch.
Alpha/Model/Article.php 3 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -435,7 +435,7 @@
 block discarded – undo
435 435
     /**
436 436
      * Method for returning the calculated score for this article.
437 437
      *
438
-     * @return float
438
+     * @return string
439 439
      *
440 440
      * @since 1.0
441 441
      */
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,6 @@
 block discarded – undo
8 8
 use Alpha\Model\Type\Boolean;
9 9
 use Alpha\Model\Type\Relation;
10 10
 use Alpha\Util\Logging\Logger;
11
-use Alpha\Util\Config\Configprovider;
12 11
 use Alpha\Util\Http\Session\SessionProviderFactory;
13 12
 use Alpha\Exception\ValidationException;
14 13
 use Alpha\Exception\FileNotFoundException;
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -452,7 +452,7 @@
 block discarded – undo
452 452
         }
453 453
 
454 454
         if ($vote_count > 0) {
455
-            $score = $total_score / $vote_count;
455
+            $score = $total_score/$vote_count;
456 456
         }
457 457
 
458 458
         return sprintf('%01.2f', $score);
Please login to merge, or discard this patch.
Alpha/Model/Type/Relation.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -262,7 +262,6 @@
 block discarded – undo
262 262
     /**
263 263
      * Get the name of the business object class that this class is related to.
264 264
      *
265
-     * @param string $RC
266 265
      *
267 266
      * @return string
268 267
      *
Please login to merge, or discard this patch.
Alpha/Model/Type/Timestamp.php 2 patches
Doc Comments   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -338,7 +338,7 @@  discard block
 block discarded – undo
338 338
     /**
339 339
      * Getter for the year part.
340 340
      *
341
-     * @return string
341
+     * @return integer
342 342
      *
343 343
      * @since 1.0
344 344
      */
@@ -350,7 +350,7 @@  discard block
 block discarded – undo
350 350
     /**
351 351
      * Getter for the month part.
352 352
      *
353
-     * @return string
353
+     * @return integer
354 354
      *
355 355
      * @since 1.0
356 356
      */
@@ -362,7 +362,7 @@  discard block
 block discarded – undo
362 362
     /**
363 363
      * Getter for the day part.
364 364
      *
365
-     * @return string
365
+     * @return integer
366 366
      *
367 367
      * @since 1.0
368 368
      */
@@ -386,7 +386,7 @@  discard block
 block discarded – undo
386 386
     /**
387 387
      * Getter for the hour part.
388 388
      *
389
-     * @return string
389
+     * @return integer
390 390
      *
391 391
      * @since 1.0
392 392
      */
@@ -398,7 +398,7 @@  discard block
 block discarded – undo
398 398
     /**
399 399
      * Getter for the minute part.
400 400
      *
401
-     * @return string
401
+     * @return integer
402 402
      *
403 403
      * @since 1.0
404 404
      */
@@ -410,7 +410,7 @@  discard block
 block discarded – undo
410 410
     /**
411 411
      * Getter for the second part.
412 412
      *
413
-     * @return string
413
+     * @return integer
414 414
      *
415 415
      * @since 1.0
416 416
      */
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -629,16 +629,16 @@
 block discarded – undo
629 629
         $unixTS = $this->getUnixValue();
630 630
 
631 631
         if ($now > $unixTS) {
632
-            $difference = $now - $unixTS;
632
+            $difference = $now-$unixTS;
633 633
             $tense = 'ago';
634 634
         } else {
635
-            $difference = $unixTS - $now;
635
+            $difference = $unixTS-$now;
636 636
             $tense = 'from now';
637 637
         }
638 638
 
639
-        for ($i = 0; $difference >= $lengths[$i] && $i < count($lengths) - 1; ++$i) {
639
+        for ($i = 0; $difference >= $lengths[$i] && $i < count($lengths)-1; ++$i) {
640 640
 
641
-            $difference = round($difference / $lengths[$i]);
641
+            $difference = round($difference/$lengths[$i]);
642 642
         }
643 643
 
644 644
         $difference = round($difference);
Please login to merge, or discard this patch.
Alpha/Util/Cache/CacheProviderFactory.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@
 block discarded – undo
67 67
      *
68 68
      * @throws Alpha\Exception\IllegalArguementException
69 69
      *
70
-     * @return Alpha\Util\Cache\CacheProviderInterface
70
+     * @return CacheProviderInterface|null
71 71
      *
72 72
      * @since 1.1
73 73
      */
Please login to merge, or discard this patch.