Completed
Push — master ( 055c36...a12289 )
by Thomas
17:02
created
code/Proxy/DatabaseProxy.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -40,6 +40,9 @@  discard block
 block discarded – undo
40 40
         return $this->showQueries;
41 41
     }
42 42
 
43
+    /**
44
+     * @param boolean $showQueries
45
+     */
43 46
     public function setShowQueries($showQueries)
44 47
     {
45 48
         $this->showQueries = $showQueries;
@@ -366,6 +369,9 @@  discard block
 block discarded – undo
366 369
         );
367 370
     }
368 371
 
372
+    /**
373
+     * @param integer $errorLevel
374
+     */
369 375
     public function oldQuery($sql, $errorLevel = E_USER_ERROR)
370 376
     {
371 377
         return $this->realConn->query($sql, $errorLevel);
Please login to merge, or discard this patch.
tests/Proxy/DatabaseProxyTest.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -4,11 +4,9 @@
 block discarded – undo
4 4
 
5 5
 use LeKoala\DebugBar\Proxy\DatabaseProxy;
6 6
 use SilverStripe\Dev\SapphireTest;
7
-use SilverStripe\ORM\Connect\DBConnector;
8 7
 use SilverStripe\ORM\Connect\DBSchemaManager;
9 8
 use SilverStripe\ORM\Connect\DBQueryBuilder;
10 9
 use SilverStripe\ORM\Connect\MySQLDatabase;
11
-use SilverStripe\ORM\Connect\MySQLiConnector;
12 10
 use SilverStripe\ORM\Connect\MySQLSchemaManager;
13 11
 use SilverStripe\ORM\Connect\MySQLQueryBuilder;
14 12
 use SilverStripe\ORM\DB;
Please login to merge, or discard this patch.
code/Collector/DatabaseCollector.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -6,9 +6,7 @@
 block discarded – undo
6 6
 use DebugBar\DataCollector\DataCollector;
7 7
 use DebugBar\DataCollector\Renderable;
8 8
 use LeKoala\DebugBar\DebugBar;
9
-use Psr\Log\LoggerInterface;
10 9
 use SilverStripe\Control\Director;
11
-use SilverStripe\Core\Injector\Injector;
12 10
 use SilverStripe\ORM\DB;
13 11
 
14 12
 /**
Please login to merge, or discard this patch.
code/DebugBar.php 1 patch
Doc Comments   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
 
77 77
     /**
78 78
      * Get the Debug Bar instance
79
-     * @return \DebugBar\StandardDebugBar
79
+     * @return DebugBar\DebugBar|null
80 80
      * @throws Exception
81 81
      * @global array $databaseConfig
82 82
      */
@@ -215,6 +215,9 @@  discard block
 block discarded – undo
215 215
         return self::$showQueries;
216 216
     }
217 217
 
218
+    /**
219
+     * @param boolean $showQueries
220
+     */
218 221
     public static function setShowQueries($showQueries)
219 222
     {
220 223
         self::$showQueries = $showQueries;
@@ -223,7 +226,7 @@  discard block
 block discarded – undo
223 226
     /**
224 227
      * Helper to access this module resources
225 228
      *
226
-     * @param string $name
229
+     * @param string $path
227 230
      * @return ModuleResource
228 231
      */
229 232
     public static function moduleResource($path)
Please login to merge, or discard this patch.