Passed
Push — master ( 76e5d9...0ff6fc )
by Jens
18:11 queued 10:55
created
src/components/BaseComponent.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
         {
46 46
             $this->template = $template;
47 47
             $this->request = $request;
48
-            $this->parameters = (array)$parameters;
48
+            $this->parameters = (array) $parameters;
49 49
             $this->matchedSitemapItem = $matchedSitemapItem;
50 50
         }
51 51
 
Please login to merge, or discard this patch.
src/components/FormComponent.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -163,7 +163,7 @@
 block discarded – undo
163 163
         if (isset($_SESSION[self::SESSION_PARAMETER_FORM_COMPONENT][$this->formParameterName][self::PARAMETER_FORM_ID])) {
164 164
             $this->formId = $_SESSION[self::SESSION_PARAMETER_FORM_COMPONENT][$this->formParameterName][self::PARAMETER_FORM_ID];
165 165
         } else {
166
-            $_SESSION[self::SESSION_PARAMETER_FORM_COMPONENT][$this->formParameterName][self::PARAMETER_FORM_ID] = (string)microtime(true);
166
+            $_SESSION[self::SESSION_PARAMETER_FORM_COMPONENT][$this->formParameterName][self::PARAMETER_FORM_ID] = (string) microtime(true);
167 167
             $_SESSION[self::SESSION_PARAMETER_FORM_COMPONENT][$this->formParameterName]['submitted'] = false;
168 168
             $this->formId = $_SESSION[self::SESSION_PARAMETER_FORM_COMPONENT][$this->formParameterName][self::PARAMETER_FORM_ID];
169 169
         }
Please login to merge, or discard this patch.
src/storage/Repository.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -151,7 +151,7 @@
 block discarded – undo
151 151
     public function save()
152 152
     {
153 153
         $host = $this;
154
-        array_map(function ($value) use ($host) {
154
+        array_map(function($value) use ($host) {
155 155
             $host->saveSubset($value);
156 156
         }, $this->fileBasedSubsets);
157 157
     }
Please login to merge, or discard this patch.
src/storage/factories/ValuelistFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
             }
36 36
             $object_vars = get_object_vars($valuelistObject->pairs);
37 37
             ksort($object_vars);
38
-            $valuelistObject->pairs = (object)$object_vars;
38
+            $valuelistObject->pairs = (object) $object_vars;
39 39
 
40 40
             return new Valuelist($valuelistObject);
41 41
         } else {
Please login to merge, or discard this patch.
src/search/indexer/TermFrequency.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
             $values = array();
55 55
             $i = 0;
56 56
             foreach ($termsForDocumentField as $term) {
57
-                $frequency = (int)$term->count / $documentField->totalTermCount;
57
+                $frequency = (int) $term->count / $documentField->totalTermCount;
58 58
                 $values[] = $quotedDocumentPath . ',' . $quotedField . ', ' . $db->quote($term->term) . ', ' . $db->quote($frequency);
59 59
                 $i += 1;
60 60
                 if ($i >= Indexer::SQLITE_MAX_COMPOUND_SELECT) {
Please login to merge, or discard this patch.
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/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.