Completed
Pull Request — master (#22)
by
unknown
04:07
created
src/autoloader.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-spl_autoload_register(function ($class) {
3
+spl_autoload_register(function($class) {
4 4
     if (strpos($class, 'SimpleCrud\\') !== 0) {
5 5
         return;
6 6
     }
Please login to merge, or discard this patch.
src/Queries/Mysql/Select.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -95,15 +95,15 @@
 block discarded – undo
95 95
             $next = $result->count() < $this->limit ? null : $current + 1;
96 96
             $prev = $current > 1 ? $current - 1 : null;
97 97
 
98
-            $result->setMethod('getPage', function () use ($current) {
98
+            $result->setMethod('getPage', function() use ($current) {
99 99
                 return $current;
100 100
             });
101 101
 
102
-            $result->setMethod('getNextPage', function () use ($next) {
102
+            $result->setMethod('getNextPage', function() use ($next) {
103 103
                 return $next;
104 104
             });
105 105
 
106
-            $result->setMethod('getPrevPage', function () use ($prev) {
106
+            $result->setMethod('getPrevPage', function() use ($prev) {
107 107
                 return $prev;
108 108
             });
109 109
         }
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -116,7 +116,7 @@
 block discarded – undo
116 116
      *
117 117
      * @param array $data
118 118
      * 
119
-     * @return Row
119
+     * @return \SimpleCrud\Row
120 120
      */
121 121
     public function createRow(array $data)
122 122
     {
Please login to merge, or discard this patch.
src/Fields/Field.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
     /**
43 43
      * Converts the data to be used
44 44
      *
45
-     * @param mixed $data
45
+     * @param string $data
46 46
      *
47 47
      * @return mixed
48 48
      */
Please login to merge, or discard this patch.
src/Queries/Mysql/Count.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,6 @@
 block discarded – undo
3 3
 namespace SimpleCrud\Queries\Mysql;
4 4
 
5 5
 use SimpleCrud\Queries\Query;
6
-use SimpleCrud\Table;
7 6
 
8 7
 /**
9 8
  * Manages a database select count query.
Please login to merge, or discard this patch.
src/Queries/Mysql/Avg.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
     /**
18 18
      * Run the query and return the value.
19 19
      * 
20
-     * @return int
20
+     * @return double
21 21
      */
22 22
     public function run()
23 23
     {
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,6 @@
 block discarded – undo
3 3
 namespace SimpleCrud\Queries\Mysql;
4 4
 
5 5
 use SimpleCrud\Queries\Query;
6
-use SimpleCrud\Table;
7 6
 
8 7
 
9 8
 /**
Please login to merge, or discard this patch.