Passed
Push — develop ( 6f18ac...aef63b )
by Jens
02:33
created
src/search/indexer/TermFieldLengthNorm.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
         $values = array();
58 58
         $i = 0;
59 59
         foreach ($uniqueFieldsPerDocument as $fieldRow) {
60
-            $values[] = 'UPDATE term_frequency SET termNorm = 1/sqrt(' . (int)$fieldRow->termCount . ') WHERE documentPath = ' . $db->quote($fieldRow->documentPath) . ' AND field = ' . $db->quote($fieldRow->field) . ';';
60
+            $values[] = 'UPDATE term_frequency SET termNorm = 1/sqrt(' . (int) $fieldRow->termCount . ') WHERE documentPath = ' . $db->quote($fieldRow->documentPath) . ' AND field = ' . $db->quote($fieldRow->field) . ';';
61 61
             $i += 1;
62 62
             if ($i >= Indexer::SQLITE_MAX_COMPOUND_SELECT) {
63 63
                 $this->executeUpdateTermNorm($values, $db);
Please login to merge, or discard this patch.
src/storage/factories/DocumentFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
53 53
         $documentObj->documentTypeSlug = $documentType->slug;
54 54
         $documentObj->state = isset($postValues['state']) ? 'published' : 'unpublished';
55 55
         $documentObj->lastModificationDate = time();
56
-        $documentObj->creationDate = isset($postValues['creationDate']) ? (int)$postValues['creationDate'] : time();
56
+        $documentObj->creationDate = isset($postValues['creationDate']) ? (int) $postValues['creationDate'] : time();
57 57
         $documentObj->lastModifiedBy = $_SESSION['cloudcontrol']->username;
58 58
 
59 59
         return $documentObj;
Please login to merge, or discard this patch.
src/storage/repository/ContentRepository.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -240,7 +240,7 @@
 block discarded – undo
240 240
             if (!is_array($result)) {
241 241
                 return 0;
242 242
             }
243
-            return (int)current($result);
243
+            return (int) current($result);
244 244
         }
245 245
 
246 246
         /**
Please login to merge, or discard this patch.
src/images/Image.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
61 61
             } elseif ($mimeTypeConstantValue == IMAGETYPE_JPEG) {
62 62
                 return imagejpeg($imageResource, $path, $quality);
63 63
             } elseif ($mimeTypeConstantValue == IMAGETYPE_PNG) {
64
-                return imagepng($imageResource, $path, ((int)($quality / 10) - 1));
64
+                return imagepng($imageResource, $path, ((int) ($quality / 10) - 1));
65 65
             } else {
66 66
                 throw new \Exception('Not a valid mimetypeconstant given see function documentation');
67 67
             }
Please login to merge, or discard this patch.
src/images/methods/Watermark.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
          */
38 38
         public function SetTransparency($transparency)
39 39
         {
40
-            $this->_transparency = (int)$transparency;
40
+            $this->_transparency = (int) $transparency;
41 41
             return $this;
42 42
         }
43 43
 
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
          */
64 64
         protected function calculateX($imageResource)
65 65
         {
66
-            if ((int)$this->_x === $this->_x) return $this->_x;
66
+            if ((int) $this->_x === $this->_x) return $this->_x;
67 67
 
68 68
             $x = strtolower($this->_x);
69 69
 
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
             } elseif ($x == 'right') {
78 78
                 $x = $imageWidth - $watermarkWidth;
79 79
             }
80
-            return (int)$x;
80
+            return (int) $x;
81 81
         }
82 82
 
83 83
         /**
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
          */
89 89
         public function calculateY($imageResource)
90 90
         {
91
-            if ((int)$this->_y === $this->_y) return $this->_y;
91
+            if ((int) $this->_y === $this->_y) return $this->_y;
92 92
 
93 93
             $y = strtolower($this->_y);
94 94
 
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
             } elseif ($y == 'bottom') {
103 103
                 $y = $imageHeight - $watermarkHeight;
104 104
             }
105
-            return (int)$y;
105
+            return (int) $y;
106 106
         }
107 107
 
108 108
         /**
Please login to merge, or discard this patch.
src/images/methods/Resize.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
          */
27 27
         public function SetWidth($width)
28 28
         {
29
-            $this->_width = (int)$width;
29
+            $this->_width = (int) $width;
30 30
             return $this;
31 31
         }
32 32
 
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
          */
39 39
         public function SetHeight($height)
40 40
         {
41
-            $this->_height = (int)$height;
41
+            $this->_height = (int) $height;
42 42
             return $this;
43 43
         }
44 44
 
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
          */
52 52
         public function SetPreserveAspectRatio($bool)
53 53
         {
54
-            $this->_preserveAspectRatio = (bool)$bool;
54
+            $this->_preserveAspectRatio = (bool) $bool;
55 55
             return $this;
56 56
         }
57 57
 
Please login to merge, or discard this patch.
src/images/methods/Crop.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -41,8 +41,8 @@  discard block
 block discarded – undo
41 41
          */
42 42
         public function SetWidth($width)
43 43
         {
44
-            $this->_width = (int)$width;
45
-            $this->_destWidth = (int)$width;
44
+            $this->_width = (int) $width;
45
+            $this->_destWidth = (int) $width;
46 46
             return $this;
47 47
         }
48 48
 
@@ -54,8 +54,8 @@  discard block
 block discarded – undo
54 54
          */
55 55
         public function SetHeight($height)
56 56
         {
57
-            $this->_height = (int)$height;
58
-            $this->_destHeight = (int)$height;
57
+            $this->_height = (int) $height;
58
+            $this->_destHeight = (int) $height;
59 59
             return $this;
60 60
         }
61 61
 
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
          */
96 96
         public function FillBackground($r, $g, $b)
97 97
         {
98
-            $this->_backgroundColor = array((int)$r, (int)$g, (int)$b);
98
+            $this->_backgroundColor = array((int) $r, (int) $g, (int) $b);
99 99
             return $this;
100 100
         }
101 101
 
Please login to merge, or discard this patch.
src/templates/documents/brick.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
 								</div>
64 64
 							</div>
65 65
 						</li>
66
-						<?php $value='';?>
66
+						<?php $value = ''; ?>
67 67
 						<?php endforeach ?>
68 68
 					<?php endif ?>
69 69
 				</ul>
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
 							<?php include(__DIR__ . '/fieldTypes/' . str_replace(' ', '-', $field->type) . '.php') ?>
84 84
 							</div>
85 85
 						</li>
86
-						<?php $value='';?>
86
+						<?php $value = ''; ?>
87 87
 					<?php endforeach ?>
88 88
 					<?php endif ?>
89 89
 					</div>
@@ -92,5 +92,5 @@  discard block
 block discarded – undo
92 92
 				<a class="btn js-addrtemultiple">+</a>
93 93
 				<?php endif ?>
94 94
 			</div>
95
-			<?php $value='';?>
95
+			<?php $value = ''; ?>
96 96
 		<?php endforeach ?>
Please login to merge, or discard this patch.
src/templates/documents/document-form-form.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
                     <input required="required" value="<?=isset($document) ? $document->title : '' ?>"<?= isset($document, $document->title) && !empty($document->title) ? ' readonly="readonly"' : '' ?> type="text" id="title" name="title" placeholder="Title" />
18 18
                 </div>
19 19
 			<?php endif ?>
20
-			<?php $fieldPrefix='fields';?>
20
+			<?php $fieldPrefix = 'fields'; ?>
21 21
 			<?php foreach ($documentType->fields as $field) : ?>
22 22
 				<div class="form-element">
23 23
 					<label for="<?=$field->slug?>"><?=$field->title?></label>
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
 									</div>
74 74
 								</div>
75 75
 							</li>
76
-							<?php $value='';?>
76
+							<?php $value = ''; ?>
77 77
 							<?php endforeach ?>
78 78
 						<?php endif ?>
79 79
 					</ul>
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
 								<?php include(__DIR__ . '/fieldTypes/' . str_replace(' ', '-', $field->type) . '.php') ?>
94 94
 								</div>
95 95
 							</li>
96
-							<?php $value='';?>
96
+							<?php $value = ''; ?>
97 97
 						<?php endforeach ?>
98 98
 						<?php endif ?>
99 99
 						</div>
@@ -102,17 +102,17 @@  discard block
 block discarded – undo
102 102
 					<a class="btn js-addrtemultiple">+</a>
103 103
 					<?php endif ?>
104 104
 				</div>
105
-				<?php $value='';?>
105
+				<?php $value = ''; ?>
106 106
 			<?php endforeach ?>
107 107
 			<hr />
108
-			<?php $static_brick_nr = 0;?>
108
+			<?php $static_brick_nr = 0; ?>
109 109
 			<?php foreach ($documentType->bricks as $brick) : ?>
110 110
 			<div class="brick">
111 111
 				<label><?=$brick->title?></label>
112 112
 				<?php if ($brick->multiple == 'true') : ?>
113 113
 					<input type="hidden" value="<?=$brick->brickSlug?>"/>
114 114
 					<input type="hidden" value="<?=$brick->slug?>"/>
115
-					<?php $myBrickSlug=$brick->slug;?>
115
+					<?php $myBrickSlug = $brick->slug; ?>
116 116
 					<ul id="newBrickDropzone_<?=$static_brick_nr?>" class="dynamicBricks sortable">
117 117
 						<?php if (isset($document)) : ?>
118 118
 							<?php foreach ($document->bricks as $currentBrickSlug => $brickArray) : ?>
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
 					<a class="btn" onclick="addDynamicBrick(this, 'true', 'newBrickDropzone_<?=$static_brick_nr?>');">+</a>
137 137
 					<?php $static_brick_nr += 1?>
138 138
 				<?php else : ?>
139
-					<?php $fieldPrefix='bricks[' . $brick->slug . '][fields]';?>
139
+					<?php $fieldPrefix = 'bricks[' . $brick->slug . '][fields]'; ?>
140 140
 					<input type="hidden" name="bricks[<?=$brick->slug?>][type]" value="<?=$brick->brickSlug?>" />
141 141
 					<?php foreach ($brick->structure->fields as $field) : ?>
142 142
 						<div class="form-element">
@@ -195,7 +195,7 @@  discard block
 block discarded – undo
195 195
 										</div>
196 196
 									</div>
197 197
 								</li>
198
-								<?php $value='';?>
198
+								<?php $value = ''; ?>
199 199
 								<?php endforeach ?>
200 200
 							<?php endif ?>
201 201
 						</ul>
@@ -216,7 +216,7 @@  discard block
 block discarded – undo
216 216
 									<?php include(__DIR__ . '/fieldTypes/' . str_replace(' ', '-', $field->type) . '.php') ?>
217 217
 									</div>
218 218
 								</li>
219
-								<?php $value='';?>
219
+								<?php $value = ''; ?>
220 220
 							<?php endforeach ?>
221 221
 							<?php endif ?>
222 222
 							</div>
@@ -225,12 +225,12 @@  discard block
 block discarded – undo
225 225
 						<a class="btn js-addrtemultiple">+</a>
226 226
 						<?php endif ?>
227 227
 					</div>
228
-					<?php $value='';?>
228
+					<?php $value = ''; ?>
229 229
 				<?php endforeach ?>
230 230
 				<?php endif ?>
231 231
 				</div>
232 232
 				<hr />
233
-			<?php endforeach;?>
233
+			<?php endforeach; ?>
234 234
 
235 235
 
236 236
 
Please login to merge, or discard this patch.