Completed
Push — develop ( 4f2388...3f4b0b )
by John
02:50
created
Alpha/Model/ActiveRecordProviderMySQL.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1014,7 +1014,7 @@  discard block
 block discarded – undo
1014 1014
         } else {
1015 1015
             // there has been an error, so decrement the version number back
1016 1016
             $temp = $this->record->getVersionNumber()->getValue();
1017
-            $this->record->set('version_num', $temp - 1);
1017
+            $this->record->set('version_num', $temp-1);
1018 1018
 
1019 1019
             // check for unique violations
1020 1020
             if (self::getConnection()->errno == '1062') {
@@ -1063,7 +1063,7 @@  discard block
 block discarded – undo
1063 1063
         $this->record->setLastQuery($sqlQuery);
1064 1064
         $stmt = self::getConnection()->stmt_init();
1065 1065
 
1066
-        $newVersionNumber = $this->record->getVersionNumber()->getValue() + 1;
1066
+        $newVersionNumber = $this->record->getVersionNumber()->getValue()+1;
1067 1067
 
1068 1068
         if ($stmt->prepare($sqlQuery)) {
1069 1069
             if ($this->record->getPropObject($attribute) instanceof Integer) {
@@ -2393,7 +2393,7 @@  discard block
 block discarded – undo
2393 2393
 
2394 2394
                     if ($propName == 'version_num') {
2395 2395
                         $temp = $this->record->getVersionNumber()->getValue();
2396
-                        $this->record->set('version_num', $temp + 1);
2396
+                        $this->record->set('version_num', $temp+1);
2397 2397
                         $bindingsTypes .= 'i';
2398 2398
                         array_push($params, $this->record->getVersionNumber()->getValue());
2399 2399
                     }
@@ -2489,7 +2489,7 @@  discard block
 block discarded – undo
2489 2489
         $singleQuote1 = mb_strpos($error, "'");
2490 2490
         $singleQuote2 = mb_strrpos($error, "'");
2491 2491
 
2492
-        $value = mb_substr($error, $singleQuote1, ($singleQuote2 - $singleQuote1) + 1);
2492
+        $value = mb_substr($error, $singleQuote1, ($singleQuote2-$singleQuote1)+1);
2493 2493
         self::$logger->debug('<<findOffendingValue ['.$value.'])');
2494 2494
 
2495 2495
         return $value;
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.