Test Setup Failed
Pull Request — master (#3)
by
unknown
05:02
created
src/Quota.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -99,12 +99,12 @@
 block discarded – undo
99 99
         return $result;
100 100
     }
101 101
 
102
-   /**
103
-    * Public interface.
104
-    *
105
-    * NOTE: this class and method are really abstract,
106
-    * but we leave it instantiable for easier testing.
107
-    */
102
+    /**
103
+     * Public interface.
104
+     *
105
+     * NOTE: this class and method are really abstract,
106
+     * but we leave it instantiable for easier testing.
107
+     */
108 108
     public function enforce()
109 109
     {
110 110
         //Override this in descendants.
Please login to merge, or discard this patch.
src/QuotaServiceProvider.php 1 patch
Indentation   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -87,15 +87,15 @@  discard block
 block discarded – undo
87 87
         }
88 88
     }
89 89
 
90
-     /**
91
-     * Register a database migration path.
92
-     *
93
-     * NOTE: This function is already part of 5.4
94
-     * it is backported here for 5.2
95
-     *
96
-     * @param  array|string  $paths
97
-     * @return void
98
-     */
90
+        /**
91
+         * Register a database migration path.
92
+         *
93
+         * NOTE: This function is already part of 5.4
94
+         * it is backported here for 5.2
95
+         *
96
+         * @param  array|string  $paths
97
+         * @return void
98
+         */
99 99
     //protected function loadMigrationsFrom($paths)
100 100
     //{
101 101
     //    dump(__CLASS__.'::'.__FUNCTION__);
@@ -146,20 +146,20 @@  discard block
 block discarded – undo
146 146
     public function bindInterfaces()
147 147
     {
148 148
         $this->app->when(RateFactory::class)
149
-          ->needs('Projectmentor\Quota\Contracts\PayloadInterface')
150
-          ->give(RateData::class);
149
+            ->needs('Projectmentor\Quota\Contracts\PayloadInterface')
150
+            ->give(RateData::class);
151 151
 
152 152
         $this->app->when(FileStorageFactory::class)
153
-          ->needs('Projectmentor\Quota\Contracts\PayloadInterface')
154
-          ->give(FileStorageData::class);
153
+            ->needs('Projectmentor\Quota\Contracts\PayloadInterface')
154
+            ->give(FileStorageData::class);
155 155
 
156 156
         $this->app->when(TokenBucketFactory::class)
157
-          ->needs('Projectmentor\Quota\Contracts\PayloadInterface')
158
-          ->give(TokenBucketData::class);
157
+            ->needs('Projectmentor\Quota\Contracts\PayloadInterface')
158
+            ->give(TokenBucketData::class);
159 159
 
160 160
         $this->app->when(BlockingConsumerFactory::class)
161
-          ->needs('Projectmentor\Quota\Contracts\PayloadInterface')
162
-          ->give(BlockingConsumerData::class);
161
+            ->needs('Projectmentor\Quota\Contracts\PayloadInterface')
162
+            ->give(BlockingConsumerData::class);
163 163
     }
164 164
 
165 165
     /**
Please login to merge, or discard this patch.
src/Console/Commands/ResetQuotaLog.php 1 patch
Indentation   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -80,23 +80,23 @@
 block discarded – undo
80 80
                 $changes = DB::select('SELECT changes()');
81 81
                 if (! $this->sqliteUpdateDidChange($changes)) {
82 82
                     $sql = 'INSERT INTO quotalog' .
83
-                      ' (' .
84
-                      ' `date`' .
85
-                      ', `connection`' .
86
-                      ', `hits`' .
87
-                      ', `misses`' .
88
-                      ', `created_at`' .
89
-                      ', `updated_at`' .
90
-                      ')' .
91
-                      ' VALUES' .
92
-                      ' (' .
93
-                      ' :date' .
94
-                      ', :connection' .
95
-                      ', :hits' .
96
-                      ', :misses' .
97
-                      ', :created_at' .
98
-                      ', :updated_at' .
99
-                      ')';
83
+                        ' (' .
84
+                        ' `date`' .
85
+                        ', `connection`' .
86
+                        ', `hits`' .
87
+                        ', `misses`' .
88
+                        ', `created_at`' .
89
+                        ', `updated_at`' .
90
+                        ')' .
91
+                        ' VALUES' .
92
+                        ' (' .
93
+                        ' :date' .
94
+                        ', :connection' .
95
+                        ', :hits' .
96
+                        ', :misses' .
97
+                        ', :created_at' .
98
+                        ', :updated_at' .
99
+                        ')';
100 100
 
101 101
                     $this->doUpsertStatement($sql);
102 102
                 }
Please login to merge, or discard this patch.
src/PeriodicQuota.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
169 169
             $this->hit($stats->hits);
170 170
             $result = true;
171 171
         }
172
-         return isset($result);
172
+            return isset($result);
173 173
     }
174 174
 
175 175
     /**
@@ -186,9 +186,9 @@  discard block
 block discarded – undo
186 186
     public function getStats($date)
187 187
     {
188 188
         return DB::table('quotalog')
189
-           ->where('date', $date)
190
-           ->where('connection', $this->connection)
191
-           ->first();
189
+            ->where('date', $date)
190
+            ->where('connection', $this->connection)
191
+            ->first();
192 192
     }
193 193
 
194 194
     /**
Please login to merge, or discard this patch.