Completed
Push — develop ( 3f4b0b...805531 )
by John
03:02
created
Alpha/Model/ActiveRecordProviderSQLite.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -969,8 +969,8 @@  discard block
 block discarded – undo
969 969
                 $stmt->bindValue(':OID', $this->record->getOID(), SQLITE3_INTEGER);
970 970
 
971 971
                 $temp = $this->record->getVersionNumber()->getValue();
972
-                $this->record->set('version_num', $temp + 1);
973
-                $stmt->bindValue(':version_num', $temp + 1, SQLITE3_INTEGER);
972
+                $this->record->set('version_num', $temp+1);
973
+                $stmt->bindValue(':version_num', $temp+1, SQLITE3_INTEGER);
974 974
 
975 975
                 $stmt->execute();
976 976
             } else {
@@ -1049,7 +1049,7 @@  discard block
 block discarded – undo
1049 1049
         } else {
1050 1050
             // there has been an error, so decrement the version number back
1051 1051
             $temp = $this->record->getVersionNumber()->getValue();
1052
-            $this->record->set('version_num', $temp - 1);
1052
+            $this->record->set('version_num', $temp-1);
1053 1053
 
1054 1054
             throw new FailedSaveException('Failed to save object, SQLite error is ['.self::getLastDatabaseError().'], query ['.$this->record->getLastQuery().']');
1055 1055
         }
@@ -1093,7 +1093,7 @@  discard block
 block discarded – undo
1093 1093
         $this->record->setLastQuery($sqlQuery);
1094 1094
         $stmt = self::getConnection()->prepare($sqlQuery);
1095 1095
 
1096
-        $newVersionNumber = $this->record->getVersionNumber()->getValue() + 1;
1096
+        $newVersionNumber = $this->record->getVersionNumber()->getValue()+1;
1097 1097
 
1098 1098
         if ($stmt instanceof SQLite3Stmt) {
1099 1099
             if ($this->record->getPropObject($attribute) instanceof Integer) {
Please login to merge, or discard this patch.
Alpha/Util/Extension/MarkdownFacade.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
         foreach ($attachments[0] as $attachmentURL) {
123 123
             $start = mb_strpos($attachmentURL, '/');
124 124
             $end = mb_strrpos($attachmentURL, '"');
125
-            $fileName = mb_substr($attachmentURL, $start + 1, $end - ($start + 1));
125
+            $fileName = mb_substr($attachmentURL, $start+1, $end-($start+1));
126 126
 
127 127
             if (method_exists($this->record, 'getAttachmentSecureURL')) {
128 128
                 $this->content = str_replace($attachmentURL, 'href="'.$this->record->getAttachmentSecureURL($fileName).'" rel="nofollow"', $this->content);
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
                     $type = 'png';
151 151
                 }
152 152
 
153
-                $img = new Image($path, $image_details[0], $image_details[1], $type, 0.95, false, (boolean) $config->get('cms.images.widget.secure'));
153
+                $img = new Image($path, $image_details[0], $image_details[1], $type, 0.95, false, (boolean)$config->get('cms.images.widget.secure'));
154 154
 
155 155
                 $this->content = str_replace($attachmentURL, $img->renderHTMLLink(), $this->content);
156 156
             } else {
Please login to merge, or discard this patch.
Alpha/Util/Search/SearchProviderTags.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
 
122 122
                     if (isset($matches[$key])) {
123 123
                         // increment the weight if the same Record is tagged more than once
124
-                        $weight = intval($matches[$key]) + 1;
124
+                        $weight = intval($matches[$key])+1;
125 125
                         $matches[$key] = $weight;
126 126
                     } else {
127 127
                         $matches[$key] = 1;
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
         $this->numberFound = count($matches);
142 142
 
143 143
         // now paginate
144
-        $matches = array_slice($matches, $start, $limit + 5); // the +5 is just some padding in case of orphans
144
+        $matches = array_slice($matches, $start, $limit+5); // the +5 is just some padding in case of orphans
145 145
 
146 146
         // now load each object
147 147
         foreach ($matches as $key => $weight) {
@@ -227,7 +227,7 @@  discard block
 block discarded – undo
227 227
 
228 228
                         if (isset($matches[$key])) {
229 229
                             // increment the weight if the same Record is tagged more than once
230
-                            $weight = intval($matches[$key]) + 1;
230
+                            $weight = intval($matches[$key])+1;
231 231
                             $matches[$key] = $weight;
232 232
                         } else {
233 233
                             $matches[$key] = 1;
Please login to merge, or discard this patch.