Completed
Push — master ( d65f51...5b82a8 )
by Oscar
02:16
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
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.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
         if ($this->calcFoundRows) {
109 109
             $total = $this->getFoundRows();
110 110
 
111
-            $result->setMethod('getTotal', function () use ($total) {
111
+            $result->setMethod('getTotal', function() use ($total) {
112 112
                 return $total;
113 113
             });
114 114
         }
@@ -123,15 +123,15 @@  discard block
 block discarded – undo
123 123
             $next = ($current * $this->limit) < $total ? $current + 1 : null;
124 124
             $prev = $current > 1 ? $current - 1 : null;
125 125
 
126
-            $result->setMethod('getPage', function () use ($current) {
126
+            $result->setMethod('getPage', function() use ($current) {
127 127
                 return $current;
128 128
             });
129 129
 
130
-            $result->setMethod('getNextPage', function () use ($next) {
130
+            $result->setMethod('getNextPage', function() use ($next) {
131 131
                 return $next;
132 132
             });
133 133
 
134
-            $result->setMethod('getPrevPage', function () use ($prev) {
134
+            $result->setMethod('getPrevPage', function() use ($prev) {
135 135
                 return $prev;
136 136
             });
137 137
         }
Please login to merge, or discard this patch.
src/Queries/Mysql/Avg.php 1 patch
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.
src/Fields/Field.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -95,6 +95,7 @@
 block discarded – undo
95 95
     /**
96 96
      * Returns a config value
97 97
      *
98
+     * @param string $name
98 99
      * @return mixed
99 100
      */
100 101
     public function getConfig($name)
Please login to merge, or discard this patch.