Completed
Push — develop ( 4f2388...3f4b0b )
by John
02:50
created
Alpha/View/Renderer/Html/RendererProviderHTML.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -225,7 +225,7 @@  discard block
 block discarded – undo
225 225
         // work out how many columns will be in the table
226 226
         $reflection = new ReflectionClass(get_class($this->record));
227 227
         $properties = array_keys($reflection->getDefaultProperties());
228
-        $fields['colCount'] = 1 + count(array_diff($properties, $this->record->getDefaultAttributes(), $this->record->getTransientAttributes()));
228
+        $fields['colCount'] = 1+count(array_diff($properties, $this->record->getDefaultAttributes(), $this->record->getTransientAttributes()));
229 229
 
230 230
         // get the class attributes
231 231
         $properties = $reflection->getProperties();
@@ -246,7 +246,7 @@  discard block
 block discarded – undo
246 246
                     $html .= '  <th>'.$this->record->getDataLabel($propName).'</th>';
247 247
                 }
248 248
             } else {
249
-                $fields['colCount'] = $fields['colCount'] - 1;
249
+                $fields['colCount'] = $fields['colCount']-1;
250 250
             }
251 251
         }
252 252
         $html .= '</tr><tr>';
@@ -1031,7 +1031,7 @@  discard block
 block discarded – undo
1031 1031
                 if ($viewState->get('markdownTextBoxRows') == '') {
1032 1032
                     $text = new TextBox($this->record->getPropObject($name), $label, $name, 10);
1033 1033
                 } else {
1034
-                    $text = new TextBox($this->record->getPropObject($name), $label, $name, (integer) $viewState->get('markdownTextBoxRows'));
1034
+                    $text = new TextBox($this->record->getPropObject($name), $label, $name, (integer)$viewState->get('markdownTextBoxRows'));
1035 1035
                 }
1036 1036
 
1037 1037
                 $html .= $text->render();
Please login to merge, or discard this patch.
Alpha/View/SequenceView.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
         // work out how many columns will be in the table
104 104
         $reflection = new \ReflectionClass(get_class($this->record));
105 105
         $properties = array_keys($reflection->getDefaultProperties());
106
-        $fields['colCount'] = 1 + count(array_diff($properties, $this->record->getDefaultAttributes(), $this->record->getTransientAttributes()));
106
+        $fields['colCount'] = 1+count(array_diff($properties, $this->record->getDefaultAttributes(), $this->record->getTransientAttributes()));
107 107
 
108 108
         // get the class attributes
109 109
         $properties = $reflection->getProperties();
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
                     $html .= '  <th>'.$this->record->getDataLabel($propName).'</th>';
125 125
                 }
126 126
             } else {
127
-                $fields['colCount'] = $fields['colCount'] - 1;
127
+                $fields['colCount'] = $fields['colCount']-1;
128 128
             }
129 129
         }
130 130
         $html .= '</tr><tr>';
Please login to merge, or discard this patch.
Alpha/View/ArticleView.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -253,7 +253,7 @@
 block discarded – undo
253 253
 
254 254
                     $html .= '<tr>';
255 255
 
256
-                    $html .= '<td>'.$file.' <em>('.number_format(filesize($this->record->getAttachmentsLocation().'/'.$file) / 1024).' KB)</em></td>';
256
+                    $html .= '<td>'.$file.' <em>('.number_format(filesize($this->record->getAttachmentsLocation().'/'.$file)/1024).' KB)</em></td>';
257 257
 
258 258
                     $js = "if(window.jQuery) {
259 259
                             BootstrapDialog.show({
Please login to merge, or discard this patch.
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/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.