Passed
Push — master ( a394d9...32bda9 )
by
unknown
03:24 queued 14s
created
Classes/ExpressionLanguage/DocumentTypeFunctionProvider.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
             if ($doc->ready) {
117 117
                 return $doc;
118 118
             } else {
119
-                $this->logger->warning('Failed to load document with UID ' . $piVars['id']);
119
+                $this->logger->warning('Failed to load document with UID '.$piVars['id']);
120 120
             }
121 121
         } elseif (!empty($piVars['recordId'])) {
122 122
             $queryBuilder = GeneralUtility::makeInstance(ConnectionPool::class)
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
                 // Try to load document.
138 138
                 return $this->loadDocument(['id' => $resArray['uid']]);
139 139
             } else {
140
-                $this->logger->warning('Failed to load document with record ID "' . $piVars['recordId'] . '"');
140
+                $this->logger->warning('Failed to load document with record ID "'.$piVars['recordId'].'"');
141 141
             }
142 142
         }
143 143
     }
Please login to merge, or discard this patch.
Braces   +4 added lines, -8 removed lines patch added patch discarded remove patch
@@ -46,8 +46,7 @@  discard block
 block discarded – undo
46 46
     /**
47 47
      * @return ExpressionFunction[] An array of Function instances
48 48
      */
49
-    public function getFunctions()
50
-    {
49
+    public function getFunctions() {
51 50
         return [
52 51
             $this->getDocumentTypeFunction(),
53 52
         ];
@@ -62,12 +61,10 @@  discard block
 block discarded – undo
62 61
     {
63 62
         return new ExpressionFunction(
64 63
             'getDocumentType',
65
-            function()
66
-            {
64
+            function() {
67 65
                 // Not implemented, we only use the evaluator
68 66
             },
69
-            function($arguments, $cPid)
70
-            {
67
+            function($arguments, $cPid) {
71 68
                 /** @var RequestWrapper $requestWrapper */
72 69
                 $requestWrapper = $arguments['request'];
73 70
                 $queryParams = $requestWrapper->getQueryParams();
@@ -107,8 +104,7 @@  discard block
 block discarded – undo
107 104
      *
108 105
      * @return \Kitodo\Dlf\Common\Document Instance of the current document
109 106
      */
110
-    protected function loadDocument(array $piVars)
111
-    {
107
+    protected function loadDocument(array $piVars) {
112 108
         // Check for required variable.
113 109
         if (!empty($piVars['id'])) {
114 110
             // Get instance of document.
Please login to merge, or discard this patch.