Passed
Pull Request — master (#64)
by
unknown
03:05
created
ElasticSearchPhpClient/src/Elasticsearch/Namespaces/AbstractNamespace.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
     public function extractArgument(&$params, $arg)
51 51
     {
52 52
         if (is_object($params) === true) {
53
-            $params = (array)$params;
53
+            $params = (array) $params;
54 54
         }
55 55
 
56 56
         if (isset($params[$arg]) === true) {
Please login to merge, or discard this patch.
Classes/Controller/GetFileController.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
 
75 75
         switch ($piVars['action']) {
76 76
             case 'mets':
77
-                $path = rtrim('http://' . $fedoraHost,"/").'/fedora/objects/'.$piVars['qid'].'/methods/qucosa:SDef/getMETSDissemination?supplement=yes';
77
+                $path = rtrim('http://' . $fedoraHost, "/") . '/fedora/objects/' . $piVars['qid'] . '/methods/qucosa:SDef/getMETSDissemination?supplement=yes';
78 78
                 break;
79 79
 
80 80
             case 'preview':
@@ -137,13 +137,13 @@  discard block
 block discarded – undo
137 137
 
138 138
                 $qid = $piVars['qid'];
139 139
                 $source = explode(':', $qid);
140
-                if($source[0] == 'qucosa') {
140
+                if ($source[0] == 'qucosa') {
141 141
 
142
-                    $path = rtrim('http://' . $fedoraHost,"/").'/fedora/objects/'.$piVars['qid'].'/methods/qucosa:SDef/getMETSDissemination?supplement=yes';
142
+                    $path = rtrim('http://' . $fedoraHost, "/") . '/fedora/objects/' . $piVars['qid'] . '/methods/qucosa:SDef/getMETSDissemination?supplement=yes';
143 143
                     $metsXml = str_replace('&', '&', file_get_contents($path));
144 144
                     $dataCiteXml = \EWW\Dpf\Helper\DataCiteXml::convertFromMetsXml($metsXml);
145 145
 
146
-                } elseif($document = $this->documentRepository->findByUid($piVars['qid'])) {
146
+                } elseif ($document = $this->documentRepository->findByUid($piVars['qid'])) {
147 147
 
148 148
                     $metsXml = str_replace('&', '&', $this->buildMetsXml($document));
149 149
                     $dataCiteXml = \EWW\Dpf\Helper\DataCiteXml::convertFromMetsXml($metsXml);
Please login to merge, or discard this patch.
Classes/Domain/Model/ProcessNumber.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -106,6 +106,6 @@
 block discarded – undo
106 106
     }
107 107
 
108 108
     public function getProcessNumberString() {
109
-        return strtoupper($this->getOwnerId()).'-'. $this->getYear().'-'.$this->getCounter();
109
+        return strtoupper($this->getOwnerId()) . '-' . $this->getYear() . '-' . $this->getCounter();
110 110
     }
111 111
 }
112 112
\ No newline at end of file
Please login to merge, or discard this patch.
Classes/Services/parser/src/nbsp/bitter/Tokens/CSS.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
         return Lexer::extend($this->comment(), [
20 20
             'block'     => [
21 21
                 Lexer::MATCH => '[{]',
22
-                Lexer::CALL  => function ($in, $out, $token) {
22
+                Lexer::CALL  => function($in, $out, $token) {
23 23
                     $out->startToken('type structure');
24 24
 
25 25
                     $begin = $token;
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
 
42 42
             'predicate' => [
43 43
                 Lexer::MATCH => '\[',
44
-                Lexer::CALL  => function ($in, $out, $token) {
44
+                Lexer::CALL  => function($in, $out, $token) {
45 45
                     $out->startToken('predicate');
46 46
 
47 47
                     $begin = $token;
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
 
69 69
             'selector'  => [
70 70
                 Lexer::MATCH => '([.:#]|[:]{2})[a-z0-9_-]+',
71
-                Lexer::CALL  => function ($in, $out, $token) {
71
+                Lexer::CALL  => function($in, $out, $token) {
72 72
                     Lexer::choose($in, $out, $token, [
73 73
                         [
74 74
                             Lexer::MATCH => '%^[.]%i',
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
 
128 128
             'method' => [
129 129
                 Lexer::MATCH => '[a-z0-9_-]+\s*(?=[(])',
130
-                Lexer::CALL  => function ($in, $out, $token) {
130
+                Lexer::CALL  => function($in, $out, $token) {
131 131
                     $begin = $token;
132 132
                     $out->writeToken($begin, 'word method');
133 133
 
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
         return [
157 157
             'comment' => [
158 158
                 Lexer::MATCH => '/[*].*?[*]/',
159
-                Lexer::CALL  => function ($in, $out, $token) {
159
+                Lexer::CALL  => function($in, $out, $token) {
160 160
                     $out->startToken('comment block');
161 161
 
162 162
                     $in = new Input();
@@ -209,7 +209,7 @@  discard block
 block discarded – undo
209 209
 
210 210
             'value'    => [
211 211
                 Lexer::MATCH => ':',
212
-                Lexer::CALL  => function ($in, $out, $token) {
212
+                Lexer::CALL  => function($in, $out, $token) {
213 213
                     $begin = $token;
214 214
                     $out->writeRaw($begin);
215 215
 
Please login to merge, or discard this patch.
Classes/Services/parser/src/nbsp/bitter/Tokens/JavaScript.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
         return [
20 20
             'commentLine'  => [
21 21
                 Lexer::MATCH => '(//|[#]).*?$',
22
-                Lexer::CALL  => function ($in, $out, $token) {
22
+                Lexer::CALL  => function($in, $out, $token) {
23 23
                     $out->startToken('comment line');
24 24
 
25 25
                     $in = new Input();
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
 
34 34
             'commentBlock' => [
35 35
                 Lexer::MATCH => '/[*].*?[*]/',
36
-                Lexer::CALL  => function ($in, $out, $token) {
36
+                Lexer::CALL  => function($in, $out, $token) {
37 37
                     $out->startToken('comment block');
38 38
 
39 39
                     $in = new Input();
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
 
53 53
             'variable'     => [
54 54
                 Lexer::MATCH => '[$a-z_][$a-z0-0_]*',
55
-                Lexer::CALL  => function ($in, $out, $token) {
55
+                Lexer::CALL  => function($in, $out, $token) {
56 56
                     Lexer::choose($in, $out, $token, [
57 57
                         [
58 58
                             Lexer::AFTER => '%^\s*[(]%',
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
 
72 72
             'stringDouble' => [
73 73
                 Lexer::MATCH => '"[^"\\\]*(?:\\\.[^"\\\]*)*"',
74
-                Lexer::CALL  => function ($in, $out, $token) {
74
+                Lexer::CALL  => function($in, $out, $token) {
75 75
                     $out->startToken('value string double');
76 76
 
77 77
                     $in = new Input();
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
 
86 86
             'stringSingle' => [
87 87
                 Lexer::MATCH => '\'[^\'\\\]*(?:\\\.[^\'\\\]*)*\'',
88
-                Lexer::CALL  => function ($in, $out, $token) {
88
+                Lexer::CALL  => function($in, $out, $token) {
89 89
                     $out->startToken('value string single');
90 90
 
91 91
                     $in = new Input();
Please login to merge, or discard this patch.
Classes/Services/parser/src/nbsp/bitter/Tokens/HTML.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
             ],
29 29
             'comment'     => [
30 30
                 Lexer::MATCH => '<!--',
31
-                Lexer::CALL  => function ($in, $out, $token) {
31
+                Lexer::CALL  => function($in, $out, $token) {
32 32
                     $out->startToken('comment');
33 33
 
34 34
                     $begin = $token;
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
             ],
55 55
             'doctype'     => [
56 56
                 Lexer::MATCH => '<!(?!--)',
57
-                Lexer::CALL  => function ($in, $out, $token) {
57
+                Lexer::CALL  => function($in, $out, $token) {
58 58
                     $out->startToken('comment');
59 59
 
60 60
                     $begin = $token;
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
             ],
81 81
             'instruction' => [
82 82
                 Lexer::MATCH => '<[?]xml.*?[?]>',
83
-                Lexer::CALL  => function ($in, $out, $token) {
83
+                Lexer::CALL  => function($in, $out, $token) {
84 84
                     $out->startToken('type instruction');
85 85
 
86 86
                     $in = new Input();
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
             ],
94 94
             'element'     => [
95 95
                 Lexer::MATCH => '</?[a-z_\-][a-z0-9_\-\.:]*.*?/?>',
96
-                Lexer::CALL  => function ($in, $out, $token) {
96
+                Lexer::CALL  => function($in, $out, $token) {
97 97
                     $out->startToken('type element');
98 98
 
99 99
                     $in = new Input();
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
                     "'.*?'",
126 126
                     '".*?"',
127 127
                 ],
128
-                Lexer::CALL  => function ($in, $out, $token) {
128
+                Lexer::CALL  => function($in, $out, $token) {
129 129
                     $out->startToken('value string');
130 130
 
131 131
                     $in = new Input();
Please login to merge, or discard this patch.
Classes/Services/parser/src/nbsp/bitter/Tokens/XSLT.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
     {
31 31
         return Lexer::extend($this->htmlTokens(), [
32 32
             'element' => [
33
-                Lexer::CALL => function ($in, $out, $token) {
33
+                Lexer::CALL => function($in, $out, $token) {
34 34
                     $out->startToken('type element');
35 35
 
36 36
                     $in = new Input();
@@ -48,16 +48,16 @@  discard block
 block discarded – undo
48 48
     {
49 49
         return Lexer::extend($this->htmlAttribute(), [
50 50
             'string' => [
51
-                Lexer::CALL => function ($in, $out, $token) {
51
+                Lexer::CALL => function($in, $out, $token) {
52 52
                     Lexer::choose($in, $out, $token, [
53 53
                         [
54 54
                             Lexer::BEFORE => '%\b(match|select|test)=$%i',
55
-                            Lexer::CALL   => function ($in, $out) {
55
+                            Lexer::CALL   => function($in, $out) {
56 56
                                 $out->startToken('value string xpath');
57 57
                             },
58 58
                         ],
59 59
                         [
60
-                            Lexer::CALL => function ($in, $out) {
60
+                            Lexer::CALL => function($in, $out) {
61 61
                                 $out->startToken('value string');
62 62
                             },
63 63
                         ],
Please login to merge, or discard this patch.
Classes/Services/parser/src/nbsp/bitter/Tokens/PHP.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
         return [
25 25
             'commentLine'  => [
26 26
                 Lexer::MATCH => '(//|[#]).*?$',
27
-                Lexer::CALL  => function ($in, $out, $token) {
27
+                Lexer::CALL  => function($in, $out, $token) {
28 28
                     $out->startToken('comment line');
29 29
 
30 30
                     $in = new Input();
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
 
39 39
             'commentBlock' => [
40 40
                 Lexer::MATCH => '/[*].*?[*]/',
41
-                Lexer::CALL  => function ($in, $out, $token) {
41
+                Lexer::CALL  => function($in, $out, $token) {
42 42
                     $out->startToken('comment block');
43 43
 
44 44
                     $in = new Input();
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
                     '(\\\|::)?[a-z_][a-z0-9_]*',
56 56
                     '<\?php|\?>',
57 57
                 ],
58
-                Lexer::CALL  => function ($in, $out, $token) {
58
+                Lexer::CALL  => function($in, $out, $token) {
59 59
                     $data = token_get_all('<?php ' . $token);
60 60
 
61 61
                     // Detect PHP keywords:
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
 
138 138
             'variable'     => [
139 139
                 Lexer::MATCH => '(\$|->|::[$])[a-z_][a-z0-9_]*',
140
-                Lexer::CALL  => function ($in, $out, $token) {
140
+                Lexer::CALL  => function($in, $out, $token) {
141 141
                     Lexer::choose($in, $out, $token, [
142 142
                         [
143 143
                             Lexer::AFTER => '%^\s*[(]%',
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
 
157 157
             'stringDouble' => [
158 158
                 Lexer::MATCH => '"[^"\\\]*(?:\\\.[^"\\\]*)*"',
159
-                Lexer::CALL  => function ($in, $out, $token) {
159
+                Lexer::CALL  => function($in, $out, $token) {
160 160
                     $out->startToken('value string double');
161 161
 
162 162
                     $in = new Input();
@@ -170,7 +170,7 @@  discard block
 block discarded – undo
170 170
 
171 171
             'stringSingle' => [
172 172
                 Lexer::MATCH => '\'[^\'\\\]*(?:\\\.[^\'\\\]*)*\'',
173
-                Lexer::CALL  => function ($in, $out, $token) {
173
+                Lexer::CALL  => function($in, $out, $token) {
174 174
                     $out->startToken('value string single');
175 175
 
176 176
                     $in = new Input();
@@ -233,7 +233,7 @@  discard block
 block discarded – undo
233 233
             // Code:
234 234
             'code'    => [
235 235
                 Lexer::MATCH => '(<code>|`).*?(</code>|`)',
236
-                Lexer::CALL  => function ($in, $out, $token) {
236
+                Lexer::CALL  => function($in, $out, $token) {
237 237
                     $lines    = preg_split("/\r\n|\n|\r/", $token);
238 238
                     $prefixes = $codes = [];
239 239
 
Please login to merge, or discard this patch.
Classes/Services/parser/src/nbsp/bitter/Lexers/PHP.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
         Lexer::loop($in, $out, Lexer::extend($this->htmlTokens(), [
52 52
             'beginPHP' => [
53 53
                 Lexer::MATCH => '<\?php',
54
-                Lexer::CALL  => function ($in, $out, $token) {
54
+                Lexer::CALL  => function($in, $out, $token) {
55 55
                     $out->startToken('script php');
56 56
 
57 57
                     $begin = $token;
Please login to merge, or discard this patch.