Passed
Push — develop ( c8d7ff...6557e2 )
by Jens
04:24
created
src/images/BitmapFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -108,7 +108,7 @@
 block discarded – undo
108 108
             $g = hexdec($bitmapBodyModel->body[$iPos + 2] . $bitmapBodyModel->body[$iPos + 3]);
109 109
             $b = hexdec($bitmapBodyModel->body[$iPos] . $bitmapBodyModel->body[$iPos + 1]);
110 110
             //    Calculate and draw the pixel
111
-            $color = imagecolorallocate($bitmapBodyModel->image, (int)$r, (int)$g, (int)$b);
111
+            $color = imagecolorallocate($bitmapBodyModel->image, (int) $r, (int) $g, (int) $b);
112 112
             imagesetpixel($bitmapBodyModel->image, $bitmapBodyModel->x, $bitmapBodyModel->height - $bitmapBodyModel->y, $color);
113 113
             //    Raise the horizontal position
114 114
             $bitmapBodyModel->x++;
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
@@ -109,7 +109,7 @@
 block discarded – undo
109 109
             }
110 110
 
111 111
             if ($mimeTypeConstantValue == IMAGETYPE_PNG) {
112
-                return imagepng($imageResource, $path, ((int)($quality / 10) - 1));
112
+                return imagepng($imageResource, $path, ((int) ($quality / 10) - 1));
113 113
             }
114 114
 
115 115
             throw new \RuntimeException('Not a valid mimetypeconstant given see function documentation');
Please login to merge, or discard this patch.
src/util/GlobalFunctions.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -65,9 +65,9 @@  discard block
 block discarded – undo
65 65
     {
66 66
         if (!isset($_GET['unsanitized'])) {
67 67
             $search = array(
68
-                '/\>[^\S ]+/s',     // strip whitespaces after tags, except space
69
-                '/[^\S ]+\</s',     // strip whitespaces before tags, except space
70
-                '/(\s)+/s',         // shorten multiple whitespace sequences
68
+                '/\>[^\S ]+/s', // strip whitespaces after tags, except space
69
+                '/[^\S ]+\</s', // strip whitespaces before tags, except space
70
+                '/(\s)+/s', // shorten multiple whitespace sequences
71 71
                 '/<!--(.|\s)*?-->/' // Remove HTML comments
72 72
             );
73 73
 
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
      */
95 95
     public static function utf8Convert($array)
96 96
     {
97
-        array_walk_recursive($array, function (&$item) {
97
+        array_walk_recursive($array, function(&$item) {
98 98
             if (!mb_detect_encoding($item, 'utf-8', true)) {
99 99
                 $item = utf8_encode($item);
100 100
             }
Please login to merge, or discard this patch.
src/util/StringUtil.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
     public static function slugify($str, $replace = array(), $delimiter = '-')
21 21
     {
22 22
         if (!empty($replace)) {
23
-            $str = str_replace((array)$replace, ' ', $str);
23
+            $str = str_replace((array) $replace, ' ', $str);
24 24
         }
25 25
 
26 26
         $clean = iconv('UTF-8', 'ASCII//TRANSLIT//IGNORE', $str);
Please login to merge, or discard this patch.
src/search/Search.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
             $errorMsg = $errorInfo[2];
90 90
             throw new \RuntimeException('SQLite Exception: ' . $errorMsg . ' in SQL: <br /><pre>' . $sql . '</pre>');
91 91
         }
92
-        return (int)$result;
92
+        return (int) $result;
93 93
     }
94 94
 
95 95
     /**
@@ -188,7 +188,7 @@  discard block
 block discarded – undo
188 188
                     $resultObj = new SearchResult();
189 189
                     $resultObj->documentPath = $result->documentPath;
190 190
                     $resultObj->matchingTokens = array($token);
191
-                    $resultObj->score = (float)$result->score;
191
+                    $resultObj->score = (float) $result->score;
192 192
                     $resultObj->setStorage($this->storage);
193 193
                     $finalResults[$result->documentPath] = $resultObj;
194 194
                 }
Please login to merge, or discard this patch.
src/util/Cms.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
     public static function editDocumentLink($path)
40 40
     {
41 41
         if (self::isLoggedIn()) {
42
-            $path = substr($path,0,1) === '/' ? substr($path, 1) : $path;
42
+            $path = substr($path, 0, 1) === '/' ? substr($path, 1) : $path;
43 43
             return Request::$subfolders . 'cms/documents/edit-document?slug=' . urlencode($path);
44 44
         } else {
45 45
             return '';
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
     public static function newDocumentLink($path = '/', $documentType = '')
75 75
     {
76 76
         if (self::isLoggedIn()) {
77
-            $path = substr($path,0,1) === '/' ? $path : '/' . $path;
77
+            $path = substr($path, 0, 1) === '/' ? $path : '/' . $path;
78 78
             $linkPostFix = '';
79 79
             if ($documentType !== '') {
80 80
                 $linkPostFix = '&amp;documentType=' . $documentType;
Please login to merge, or discard this patch.
src/templates/documents/function.renderDocumentBreadcrumb.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@
 block discarded – undo
10 10
         $pathParts = explode('/', $path);
11 11
         array_shift($pathParts);
12 12
         $pathPartsReconstruction = '';
13
-        $parentPath = substr($path, 0, strrpos( $path, '/'));
13
+        $parentPath = substr($path, 0, strrpos($path, '/'));
14 14
         if ($path !== '/' && substr_count($path, '/') === 1) {
15 15
             $parentPath = '/';
16 16
         }
Please login to merge, or discard this patch.