Completed
Push — master ( 6fa99c...b024fe )
by Craig
06:09
created
src/lib/Zikula/Component/FilterUtil/Config.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -83,13 +83,13 @@  discard block
 block discarded – undo
83 83
             foreach ($parts['join'][$this->alias] as $join) {
84 84
                 $j = explode('.', $join->getJoin(), 2);
85 85
                 if (count($j) != 2) {
86
-                    throw new \InvalidArgumentException('Join in wrong format: '.$join->getJoin());
86
+                    throw new \InvalidArgumentException('Join in wrong format: ' . $join->getJoin());
87 87
                 }
88 88
                 if (!isset($this->meta[$j[0]])) {
89
-                    throw new \InvalidArgumentException('Unknown alias in join or wrong order: '.$join->getJoin());
89
+                    throw new \InvalidArgumentException('Unknown alias in join or wrong order: ' . $join->getJoin());
90 90
                 }
91 91
                 if (!isset($this->meta[$j[0]]->associationMappings[$j[1]])) {
92
-                    throw new \InvalidArgumentException('Unknown Mapping in join: '.$join->getJoin());
92
+                    throw new \InvalidArgumentException('Unknown Mapping in join: ' . $join->getJoin());
93 93
                 }
94 94
                 $jEntity = $this->meta[$j[0]]->associationMappings[$j[1]]['targetEntity'];
95 95
                 $this->meta[$join->getAlias()] = $mdf->getMetadataFor($jEntity);
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
     {
130 130
         $this->paramNumber++;
131 131
 
132
-        return ':'.$pluginName.'_'.str_replace('.', '', $fieldName).'_'.$this->paramNumber;
132
+        return ':' . $pluginName . '_' . str_replace('.', '', $fieldName) . '_' . $this->paramNumber;
133 133
     }
134 134
 
135 135
     /**
@@ -218,7 +218,7 @@  discard block
 block discarded – undo
218 218
     public function addAliasTo($s)
219 219
     {
220 220
         if (strpos($s, '.') === false) {
221
-            return $this->alias.'.'.$s;
221
+            return $this->alias . '.' . $s;
222 222
         }
223 223
 
224 224
         return $s;
@@ -239,7 +239,7 @@  discard block
 block discarded – undo
239 239
         if (count($parts) < 2 || !isset($this->meta[$parts[0]]) ||
240 240
             !isset($this->meta[$parts[0]]->fieldMappings[$parts[1]])
241 241
         ) {
242
-            throw new \InvalidArgumentException('Unknown field name: '.$field);
242
+            throw new \InvalidArgumentException('Unknown field name: ' . $field);
243 243
         }
244 244
     }
245 245
 }
Please login to merge, or discard this patch.
src/lib/Zikula/Component/FilterUtil/Tests/bootstrap.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -9,8 +9,8 @@
 block discarded – undo
9 9
  * file that was distributed with this source code.
10 10
  */
11 11
 
12
-if (file_exists(__DIR__.'/../vendor/autoload.php')) {
13
-    require_once __DIR__.'/../vendor/autoload.php';
12
+if (file_exists(__DIR__ . '/../vendor/autoload.php')) {
13
+    require_once __DIR__ . '/../vendor/autoload.php';
14 14
 } else {
15 15
     die('The test environment requires composer to install vendors, have you run composer?');
16 16
 }
Please login to merge, or discard this patch.
src/lib/Zikula/Component/FilterUtil/Plugin/ComparePlugin.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -78,16 +78,16 @@
 block discarded – undo
78 78
                 return $expr->gte($column, $config->toParam($value, 'compare', $field));
79 79
 
80 80
             case 'search':
81
-                return $expr->like($column, $config->toParam('%'.$value.'%', 'compare', $field));
81
+                return $expr->like($column, $config->toParam('%' . $value . '%', 'compare', $field));
82 82
 
83 83
             case 'like':
84 84
                 return $expr->like($column, $config->toParam($value, 'compare', $field));
85 85
 
86 86
             case 'likefirst':
87
-                return $expr->like($column, $config->toParam('%'.$value, 'compare', $field));
87
+                return $expr->like($column, $config->toParam('%' . $value, 'compare', $field));
88 88
 
89 89
             case 'likelast':
90
-                return $expr->like($column, $config->toParam($value.'%', 'compare', $field));
90
+                return $expr->like($column, $config->toParam($value . '%', 'compare', $field));
91 91
 
92 92
             case 'null':
93 93
                 return $expr->orX($expr->isNull($column), $expr->eq($column, ''));
Please login to merge, or discard this patch.
src/lib/Zikula/Component/FilterUtil/PluginManager.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -161,7 +161,7 @@
 block discarded – undo
161 161
     {
162 162
         foreach ($restrictions as $field => $ops) {
163 163
             // accept registered operators only
164
-            $ops = array_filter(array_intersect((array) $ops, array_keys($this->ops)));
164
+            $ops = array_filter(array_intersect((array)$ops, array_keys($this->ops)));
165 165
             if (!empty($ops)) {
166 166
                 $this->restrictions[$field] = $ops;
167 167
             }
Please login to merge, or discard this patch.
src/lib/Zikula/Core/Doctrine/EntityAccess.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -128,7 +128,7 @@
 block discarded – undo
128 128
             return $getMethod;
129 129
         }
130 130
 
131
-        $isMethod  = 'is' . ucfirst($name);
131
+        $isMethod = 'is' . ucfirst($name);
132 132
         if (method_exists($this, $isMethod)) {
133 133
             return $isMethod;
134 134
         }
Please login to merge, or discard this patch.
src/lib/Zikula/Bundle/CoreBundle/DependencyInjection/CoreExtension.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
             }
109 109
 
110 110
             $finder = Finder::create()->files()
111
-                ->filter(function (\SplFileInfo $file) {
111
+                ->filter(function(\SplFileInfo $file) {
112 112
                     return 2 === substr_count($file->getBasename(), '.') && preg_match('/\.\w+$/', $file->getBasename());
113 113
                 })
114 114
                 ->in($dirs);
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
                 list($domain, $locale, $format) = explode('.', $file->getBasename(), 3);
119 119
                 $translatorServiceDefinition->addMethodCall('addResource', [
120 120
                     $format,
121
-                    (string) $file,
121
+                    (string)$file,
122 122
                     $locale,
123 123
                     $domain
124 124
                 ]);
Please login to merge, or discard this patch.
CoreBundle/DependencyInjection/Compiler/RegisterCoreListenersPass.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
                 }
34 34
 
35 35
                 if (!isset($event['method'])) {
36
-                    $event['method'] = 'on'.preg_replace([
36
+                    $event['method'] = 'on' . preg_replace([
37 37
                         '/(?<=\b)[a-z]/ie',
38 38
                         '/[^a-z0-9]/i'
39 39
                     ], ['strtoupper("\\0")', ''], $event['event']);
Please login to merge, or discard this patch.
src/lib/Zikula/Bundle/CoreBundle/DependencyInjection/Configuration.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
      */
30 30
     public function __construct($debug)
31 31
     {
32
-        $this->debug = (bool) $debug;
32
+        $this->debug = (bool)$debug;
33 33
     }
34 34
 
35 35
     /**
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
         ->fixXmlConfig('fallback')
57 57
         ->children()
58 58
         ->arrayNode('fallbacks')
59
-        ->beforeNormalization()->ifString()->then(function ($v) {
59
+        ->beforeNormalization()->ifString()->then(function($v) {
60 60
             return [$v];
61 61
         })->end()
62 62
         ->prototype('scalar')->end()
Please login to merge, or discard this patch.
src/lib/Zikula/Bundle/CoreBundle/Tests/Twig/Node/SwitchNodeTest.php 1 patch
Upper-Lower-Casing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
     case 0:
64 64
         echo "case 0";
65 65
 }
66
-EOF
66
+eof
67 67
         ];
68 68
 
69 69
         // #2 switch with two cases, second with break
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
         echo "case 1";
90 90
         break;
91 91
 }
92
-EOF
92
+eof
93 93
         ];
94 94
 
95 95
         // #3 switch with two cases (second with break) and default
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
     default:
118 118
         echo "default case";
119 119
 }
120
-EOF
120
+eof
121 121
         ];
122 122
 
123 123
         // #4 switch with two cases (first without body, second with break) and default
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
     default:
145 145
         echo "default case";
146 146
 }
147
-EOF
147
+eof
148 148
         ];
149 149
 
150 150
         return $tests;
Please login to merge, or discard this patch.