Passed
Pull Request — master (#102)
by Sébastien
03:51
created
src/Karma/ProfileReader.php 3 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@
 block discarded – undo
56 56
         catch(ParseException $e)
57 57
         {
58 58
             throw new \RuntimeException(sprintf(
59
-               'Error while parsing profile : %s',
59
+                'Error while parsing profile : %s',
60 60
                 $e->getMessage()
61 61
             ));
62 62
         }
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
 
66 66
         foreach(array_keys($this->attributes) as $name)
67 67
         {
68
-            if(! isset($values[$name]))
68
+            if( ! isset($values[$name]))
69 69
             {
70 70
                 continue;
71 71
             }
@@ -196,7 +196,7 @@  discard block
 block discarded – undo
196 196
             return true;
197 197
         }
198 198
 
199
-        if(! $parameterValidators[$parameter]($value))
199
+        if( ! $parameterValidators[$parameter]($value))
200 200
         {
201 201
             throw new \RuntimeException('Paramater %s format is invalid');
202 202
         }
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -191,8 +191,7 @@
 block discarded – undo
191 191
         if(
192 192
             ! array_key_exists($parameter, $parameterValidators)
193 193
             || ! $parameterValidators[$parameter] instanceof \Closure
194
-        )
195
-        {
194
+        ) {
196 195
             return true;
197 196
         }
198 197
 
Please login to merge, or discard this patch.
src/Karma/VCS/Git.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -123,7 +123,7 @@
 block discarded – undo
123 123
             $titleLineNumber = count($lines);
124 124
 
125 125
             // ensure an empty line preceeds comment
126
-            if(! empty($lines[$titleLineNumber - 1]))
126
+            if( ! empty($lines[$titleLineNumber - 1]))
127 127
             {
128 128
                 $lines[$titleLineNumber] = '';
129 129
                 $titleLineNumber++;
Please login to merge, or discard this patch.
src/Karma/VcsHandler.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
64 64
             $rootPath = '';
65 65
         }
66 66
 
67
-        if(! empty($rootPath))
67
+        if( ! empty($rootPath))
68 68
         {
69 69
             $rootPath .= $directorySeparator;
70 70
         }
Please login to merge, or discard this patch.
Upper-Lower-Casing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -42,13 +42,13 @@
 block discarded – undo
42 42
 
43 43
             if($this->vcs->isTracked($targetFile))
44 44
             {
45
-                $this->logger->info("Untrack $targetFile");
45
+                $this->logger->info("untrack $targetFile");
46 46
                 $this->vcs->untrackFile($targetFile);
47 47
             }
48 48
 
49 49
             if($this->vcs->isIgnored($targetFile) === false)
50 50
             {
51
-                $this->logger->info("Ignore $targetFile");
51
+                $this->logger->info("ignore $targetFile");
52 52
                 $this->vcs->ignoreFile($targetFile);
53 53
             }
54 54
         }
Please login to merge, or discard this patch.
src/Karma/Application.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
             
111 111
             $paths = $c['sources.path'];
112 112
             
113
-            if(! is_array($paths))
113
+            if( ! is_array($paths))
114 114
             {
115 115
                 $paths = array($paths);
116 116
             }
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
 
128 128
         $this['target.fileSystem.adapter'] = function($c) {
129 129
 
130
-            if(! empty($c['target.path']))
130
+            if( ! empty($c['target.path']))
131 131
             {
132 132
                 $c['hydrator.allowNonDistFilesOverwrite'] = true;
133 133
 
@@ -199,7 +199,7 @@  discard block
 block discarded – undo
199 199
         $this['git'] = $git;
200 200
         $this['vcs'] = $git;
201 201
 
202
-        $this['vcsHandler'] = $this->protect(function (Vcs $vcs) {
202
+        $this['vcsHandler'] = $this->protect(function(Vcs $vcs) {
203 203
             $handler = new VcsHandler($vcs, $this['finder']);
204 204
 
205 205
             $handler->setLogger($this['logger'])
@@ -215,7 +215,7 @@  discard block
 block discarded – undo
215 215
             return new \Psr\Log\NullLogger();
216 216
         });
217 217
 
218
-        $this['formatter.provider'] = $this->share(function ($c) {
218
+        $this['formatter.provider'] = $this->share(function($c) {
219 219
             return new ProfileProvider($c['profile']);
220 220
         });
221 221
 
@@ -229,19 +229,19 @@  discard block
 block discarded – undo
229 229
             return $hydrator;
230 230
         };
231 231
 
232
-        $this['generator.nameTranslator'] = $this->share(function ($c) {
232
+        $this['generator.nameTranslator'] = $this->share(function($c) {
233 233
             $translator = new FilePrefixTranslator();
234 234
             $translator->changeMasterFile($c['configuration.masterFile']);
235 235
 
236 236
             return $translator;
237 237
         });
238 238
 
239
-        $this['generator.variableProvider'] = function ($c) {
239
+        $this['generator.variableProvider'] = function($c) {
240 240
             $provider = new VariableProvider($c['parser'], $c['configuration.masterFile']);
241 241
 
242 242
             $profile = $c['profile'];
243 243
             $options = $profile->getGeneratorOptions();
244
-            if(! isset($options['translator']) || $options['translator'] === 'prefix')
244
+            if( ! isset($options['translator']) || $options['translator'] === 'prefix')
245 245
             {
246 246
                 $provider->setNameTranslator($c['generator.nameTranslator']);
247 247
             }
@@ -249,7 +249,7 @@  discard block
 block discarded – undo
249 249
             return $provider;
250 250
         };
251 251
 
252
-        $this['configurationFilesGenerator'] = $this->share(function ($c) {
252
+        $this['configurationFilesGenerator'] = $this->share(function($c) {
253 253
             return new YamlGenerator($c['sources.fileSystem'], $c['configuration'], $c['generator.variableProvider']);
254 254
         });
255 255
     }
Please login to merge, or discard this patch.
src/Karma/Filesystem/Adapters/SingleLocalFile.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
 
19 19
     public function read($key)
20 20
     {
21
-        if(! $this->exists($key))
21
+        if( ! $this->exists($key))
22 22
         {
23 23
             return false;
24 24
         }
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
 
44 44
     public function mtime($key)
45 45
     {
46
-        if(! $this->exists($key))
46
+        if( ! $this->exists($key))
47 47
         {
48 48
             return false;
49 49
         }
Please login to merge, or discard this patch.
src/Karma/Configuration/AbstractReader.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
 
41 41
     public function setDefaultEnvironment($environment)
42 42
     {
43
-        if(! empty($environment) && is_string($environment))
43
+        if( ! empty($environment) && is_string($environment))
44 44
         {
45 45
             $this->defaultEnvironment = $environment;
46 46
         }
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
             }, $value);
96 96
         }
97 97
 
98
-        if(! is_string($value))
98
+        if( ! is_string($value))
99 99
         {
100 100
             return $value;
101 101
         }
Please login to merge, or discard this patch.