Completed
Pull Request — master (#57)
by Will
01:07
created
src/MSSQLDatabase.php 1 patch
Doc Comments   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
      * Checks whether the current SQL Server version has full-text
130 130
      * support installed and full-text is enabled for this database.
131 131
      *
132
-     * @return boolean
132
+     * @return string|boolean
133 133
      */
134 134
     public function fullTextEnabled()
135 135
     {
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
      * Checks whether the current SQL Server version has full-text
144 144
      * support installed and full-text is enabled for this database.
145 145
      *
146
-     * @return boolean
146
+     * @return false|string
147 147
      */
148 148
     protected function updateFullTextEnabled()
149 149
     {
@@ -528,6 +528,9 @@  discard block
 block discarded – undo
528 528
         return parent::query($sql, $errorLevel);
529 529
     }
530 530
 
531
+    /**
532
+     * @param string $sql
533
+     */
531 534
     public function preparedQuery($sql, $parameters, $errorLevel = E_USER_ERROR)
532 535
     {
533 536
         $this->inspectQuery($sql);
Please login to merge, or discard this patch.
src/MSSQLSchemaManager.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -97,7 +97,7 @@
 block discarded – undo
97 97
      * Check if a fulltext index exists on a particular table name.
98 98
      *
99 99
      * @param string $tableName
100
-     * @return boolean TRUE index exists | FALSE index does not exist | NULL no support
100
+     * @return null|boolean TRUE index exists | FALSE index does not exist | NULL no support
101 101
      */
102 102
     public function fulltextIndexExists($tableName)
103 103
     {
Please login to merge, or discard this patch.
src/SQLServerQuery.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace SilverStripe\MSSQL;
4 4
 
5
-use SilverStripe\ORM\Connect\DatabaseException;
6 5
 use SilverStripe\ORM\Connect\Query;
7 6
 use function sqlsrv_fetch_array;
8 7
 use function sqlsrv_num_rows;
Please login to merge, or discard this patch.
src/MSSQLQueryBuilder.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,6 @@
 block discarded – undo
6 6
 use SilverStripe\ORM\Queries\SQLSelect;
7 7
 use SilverStripe\ORM\Connect\DBQueryBuilder;
8 8
 use SilverStripe\ORM\Queries\SQLConditionalExpression;
9
-use SilverStripe\ORM\Queries\SQLUpdate;
10 9
 
11 10
 /**
12 11
  * Builds a SQL query string from a SQLExpression object
Please login to merge, or discard this patch.