Completed
Push — develop ( 2a3366...be87d5 )
by John
03:07
created
Alpha/Controller/ListActiveRecordsController.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
      *
97 97
      * @param alpha\Util\Http\Request $request
98 98
      *
99
-     * @return alpha\Util\Http\Response
99
+     * @return Response
100 100
      *
101 101
      * @since 1.0
102 102
      */
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
      *
121 121
      * @param alpha\Util\Http\Request $request
122 122
      *
123
-     * @return alpha\Util\Http\Response
123
+     * @return Response
124 124
      *
125 125
      * @since 1.0
126 126
      */
Please login to merge, or discard this patch.
Alpha/View/Renderer/Html/RendererProviderHTML.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,6 @@
 block discarded – undo
23 23
 use Alpha\Model\Type\Text;
24 24
 use Alpha\Model\ActiveRecord;
25 25
 use Alpha\Exception\IllegalArguementException;
26
-use Alpha\Exception\AlphaException;
27 26
 use ReflectionClass;
28 27
 
29 28
 /**
Please login to merge, or discard this patch.
Alpha/Model/Article.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -3,11 +3,9 @@
 block discarded – undo
3 3
 namespace Alpha\Model;
4 4
 
5 5
 use Alpha\Model\Type\SmallText;
6
-use Alpha\Model\Type\DEnum;
7 6
 use Alpha\Model\Type\Text;
8 7
 use Alpha\Model\Type\Boolean;
9 8
 use Alpha\Model\Type\Relation;
10
-use Alpha\Util\Config\Configprovider;
11 9
 use Alpha\Util\Logging\Logger;
12 10
 use Alpha\Util\Service\ServiceFactory;
13 11
 use Alpha\Exception\ValidationException;
Please login to merge, or discard this patch.
Alpha/View/View.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -444,11 +444,11 @@  discard block
 block discarded – undo
444 444
 
445 445
         // ensure that the last index never overruns the total record count
446 446
         if ($last > $recordCount) {
447
-            $last = $recordCount ;
447
+            $last = $recordCount;
448 448
         }
449 449
 
450 450
         // render a message for an empty list
451
-        if ($recordCount  > 0) {
451
+        if ($recordCount > 0) {
452 452
             $html .= '<ul class="pagination">';
453 453
         } else {
454 454
             $html .= '<p align="center">The list is empty.&nbsp;&nbsp;</p>';
@@ -457,7 +457,7 @@  discard block
 block discarded – undo
457 457
         }
458 458
 
459 459
         // render "Previous" link
460
-        if ($start  > 0) {
460
+        if ($start > 0) {
461 461
             // handle secure URLs
462 462
             if ($controller->getRequest()->getParam('token', null) != null) {
463 463
                 $url = FrontController::generateSecureURL('act=Alpha\Controller\ActiveRecordController&ActiveRecordType='.$controller->getRequest()->getParam('ActiveRecordType').'&start='.($start-$controller->getLimit()).'&limit='.$limit);
@@ -465,15 +465,15 @@  discard block
 block discarded – undo
465 465
                 $url = '/records/'.urlencode($controller->getRequest()->getParam('ActiveRecordType')).'/'.($start-$limit).'/'.$limit;
466 466
             }
467 467
             $html .= '<li><a href="'.$url.'">&lt;&lt;-Previous</a></li>';
468
-        } elseif ($recordCount  > $limit) {
468
+        } elseif ($recordCount > $limit) {
469 469
             $html .= '<li class="disabled"><a href="#">&lt;&lt;-Previous</a></li>';
470 470
         }
471 471
 
472 472
         // render the page index links
473
-        if ($recordCount  > $limit) {
473
+        if ($recordCount > $limit) {
474 474
             $page = 1;
475 475
 
476
-            for ($i = 0; $i < $recordCount ; $i += $limit) {
476
+            for ($i = 0; $i < $recordCount; $i += $limit) {
477 477
                 if ($i != $start) {
478 478
                     // handle secure URLs
479 479
                     if ($controller->getRequest()->getParam('token', null) != null) {
@@ -482,7 +482,7 @@  discard block
 block discarded – undo
482 482
                         $url = '/records/'.urlencode($controller->getRequest()->getParam('ActiveRecordType')).'/'.$i.'/'.$limit;
483 483
                     }
484 484
                     $html .= '<li><a href="'.$url.'">'.$page.'</a></li>';
485
-                } elseif ($recordCount  > $limit) { // render an anchor for the current page
485
+                } elseif ($recordCount > $limit) { // render an anchor for the current page
486 486
                     $html .= '<li class="active"><a href="#">'.$page.'</a></li>';
487 487
                 }
488 488
 
@@ -491,7 +491,7 @@  discard block
 block discarded – undo
491 491
         }
492 492
 
493 493
         // render "Next" link
494
-        if ($recordCount  > $last) {
494
+        if ($recordCount > $last) {
495 495
             // handle secure URLs
496 496
             if ($controller->getRequest()->getParam('token', null) != null) {
497 497
                 $url = FrontController::generateSecureURL('act=Alpha\Controller\ActiveRecordController&ActiveRecordType='.$controller->getRequest()->getParam('ActiveRecordType').'&start='.($start+$limit).'&limit='.$limit);
@@ -499,7 +499,7 @@  discard block
 block discarded – undo
499 499
                 $url = '/records/'.urlencode($controller->getRequest()->getParam('ActiveRecordType')).'/'.($start+$limit.'/'.$limit);
500 500
             }
501 501
             $html .= '<li><a href="'.$url.'">Next-&gt;&gt;</a></li>';
502
-        } elseif ($recordCount  > $limit) {
502
+        } elseif ($recordCount > $limit) {
503 503
             $html .= '<li class="disabled"><a href="#">Next-&gt;&gt;</a></li>';
504 504
         }
505 505
 
Please login to merge, or discard this patch.