x Sorry, these patches are not available anymore due to data migration. Please run a fresh inspection.
Completed
Push — master ( 1d14da...d37c28 )
by Arne
02:16
created
src/PharCompiler.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -106,12 +106,10 @@  discard block
 block discarded – undo
106 106
             if (is_string($token))
107 107
             {
108 108
                 $output .= $token;
109
-            }
110
-            elseif (in_array($token[0], [T_COMMENT, T_DOC_COMMENT]))
109
+            } elseif (in_array($token[0], [T_COMMENT, T_DOC_COMMENT]))
111 110
             {
112 111
                 $output .= str_repeat("\n", substr_count($token[1], "\n"));
113
-            }
114
-            elseif (T_WHITESPACE === $token[0])
112
+            } elseif (T_WHITESPACE === $token[0])
115 113
             {
116 114
                 // reduce wide spaces
117 115
                 $whitespace = preg_replace('{[ \t]+}', ' ', $token[1]);
@@ -123,8 +121,7 @@  discard block
 block discarded – undo
123 121
                 $whitespace = preg_replace('{\n +}', "\n", $whitespace);
124 122
 
125 123
                 $output .= $whitespace;
126
-            }
127
-            else
124
+            } else
128 125
             {
129 126
                 $output .= $token[1];
130 127
             }
Please login to merge, or discard this patch.
src/Cli/Command/InitCommand.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -88,8 +88,7 @@
 block discarded – undo
88 88
             $configurationFileWriter->writeConfigurationFile($configuration, $configFilePath, $skipDefaults);
89 89
 
90 90
             $output->writeln("<info>Successfully written config file to {$configFilePath}</info>");
91
-        }
92
-        else
91
+        } else
93 92
         {
94 93
             $output->writeln("<comment>Aborted</comment>");
95 94
         }
Please login to merge, or discard this patch.
src/Cli/Command/SynchronizeCommand.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -41,8 +41,7 @@
 block discarded – undo
41 41
             {
42 42
                 $vaultConfiguration->setConflictHandler('preferLocal');
43 43
             }
44
-        }
45
-        elseif ($preferRemote)
44
+        } elseif ($preferRemote)
46 45
         {
47 46
             foreach ($configuration->getVaults() as $vaultConfiguration)
48 47
             {
Please login to merge, or discard this patch.
src/ArrayUtils.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -26,13 +26,11 @@
 block discarded – undo
26 26
                     {
27 27
                         $return[$key] = $recursiveDiff;
28 28
                     }
29
-                }
30
-                elseif ($value !== $array2[$key])
29
+                } elseif ($value !== $array2[$key])
31 30
                 {
32 31
                     $return[$key] = $value;
33 32
                 }
34
-            }
35
-            else
33
+            } else
36 34
             {
37 35
                 $return[$key] = $value;
38 36
             }
Please login to merge, or discard this patch.
src/Operation/UnlinkOperation.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,8 +20,7 @@
 block discarded – undo
20 20
         if (is_file($absolutePath) || is_link($absolutePath))
21 21
         {
22 22
             return unlink($localBasePath . $this->relativePath);
23
-        }
24
-        elseif (is_dir($absolutePath))
23
+        } elseif (is_dir($absolutePath))
25 24
         {
26 25
             return rmdir($absolutePath);
27 26
         }
Please login to merge, or discard this patch.
src/Cli/Command/InfoCommand.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -108,8 +108,7 @@
 block discarded – undo
108 108
             }
109 109
 
110 110
             $table->render();
111
-        }
112
-        else
111
+        } else
113 112
         {
114 113
             $output->writeln('No synchronizations so far.');
115 114
         }
Please login to merge, or discard this patch.
src/PathUtils.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -46,8 +46,7 @@  discard block
 block discarded – undo
46 46
             if ('..' === $part)
47 47
             {
48 48
                 array_pop($absolutePathParts);
49
-            }
50
-            else
49
+            } else
51 50
             {
52 51
                 $absolutePathParts[] = $part;
53 52
             }
@@ -58,8 +57,7 @@  discard block
 block discarded – undo
58 57
         if (substr($path, 0, 1) === '/')
59 58
         {
60 59
             return '/' . $return;
61
-        }
62
-        else
60
+        } else
63 61
         {
64 62
             return getcwd() . '/' . $return;
65 63
         }
Please login to merge, or discard this patch.
src/Index/Index.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -41,8 +41,7 @@
 block discarded – undo
41 41
             if ($parentNode === null)
42 42
             {
43 43
                 throw new Exception("Trying to add object {$indexObject->getRelativePath()} without existing parent node");
44
-            }
45
-            elseif (!$parentNode->getIndexObject()->isDirectory())
44
+            } elseif (!$parentNode->getIndexObject()->isDirectory())
46 45
             {
47 46
                 throw new Exception("Trying to add object {$indexObject->getRelativePath()} under parent node which is not a directory");
48 47
             }
Please login to merge, or discard this patch.
src/StorageAdapter/FlysystemStorageAdapter.php 1 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
                 throw new Exception(sprintf('writeStream() failed for %s.', $relativePath));
48 48
             }
49
-        }
50
-        catch (\Exception $exception)
49
+        } catch (\Exception $exception)
51 50
         {
52 51
             throw new Exception($exception->getMessage(), 0, $exception);
53 52
         }
@@ -58,8 +57,7 @@  discard block
 block discarded – undo
58 57
         try
59 58
         {
60 59
             return $this->filesystem->has($relativePath);
61
-        }
62
-        catch (\Exception $exception)
60
+        } catch (\Exception $exception)
63 61
         {
64 62
             throw new Exception($exception->getMessage(), 0, $exception);
65 63
         }
@@ -77,8 +75,7 @@  discard block
 block discarded – undo
77 75
             {
78 76
                 throw new Exception(sprintf('unlink() failed for %s', $relativePath));
79 77
             }
80
-        }
81
-        catch (\Exception $exception)
78
+        } catch (\Exception $exception)
82 79
         {
83 80
             throw new Exception($exception->getMessage(), 0, $exception);
84 81
         }
@@ -98,8 +95,7 @@  discard block
 block discarded – undo
98 95
             }
99 96
 
100 97
             return $stream;
101
-        }
102
-        catch (\Exception $exception)
98
+        } catch (\Exception $exception)
103 99
         {
104 100
             throw new Exception($exception->getMessage(), 0, $exception);
105 101
         }
Please login to merge, or discard this patch.