Failed Conditions
Push — master ( ec2bd1...5afe97 )
by Jonathan
41s
created
lib/Doctrine/Common/Persistence/Mapping/Driver/DefaultFileLocator.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -94,12 +94,12 @@  discard block
 block discarded – undo
94 94
      */
95 95
     public function findMappingFile($className)
96 96
     {
97
-        $fileName = str_replace('\\', '.', $className) . $this->fileExtension;
97
+        $fileName = str_replace('\\', '.', $className).$this->fileExtension;
98 98
 
99 99
         // Check whether file exists
100 100
         foreach ($this->paths as $path) {
101
-            if (is_file($path . DIRECTORY_SEPARATOR . $fileName)) {
102
-                return $path . DIRECTORY_SEPARATOR . $fileName;
101
+            if (is_file($path.DIRECTORY_SEPARATOR.$fileName)) {
102
+                return $path.DIRECTORY_SEPARATOR.$fileName;
103 103
             }
104 104
         }
105 105
 
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
 
116 116
         if ($this->paths) {
117 117
             foreach ($this->paths as $path) {
118
-                if (! is_dir($path)) {
118
+                if (!is_dir($path)) {
119 119
                     throw MappingException::fileMappingDriversRequireConfiguredDirectoryPath($path);
120 120
                 }
121 121
 
@@ -145,11 +145,11 @@  discard block
 block discarded – undo
145 145
      */
146 146
     public function fileExists($className)
147 147
     {
148
-        $fileName = str_replace('\\', '.', $className) . $this->fileExtension;
148
+        $fileName = str_replace('\\', '.', $className).$this->fileExtension;
149 149
 
150 150
         // Check whether file exists
151 151
         foreach ((array) $this->paths as $path) {
152
-            if (is_file($path . DIRECTORY_SEPARATOR . $fileName)) {
152
+            if (is_file($path.DIRECTORY_SEPARATOR.$fileName)) {
153 153
                 return true;
154 154
             }
155 155
         }
Please login to merge, or discard this patch.
lib/Doctrine/Common/Persistence/Mapping/Driver/SymfonyFileLocator.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -124,11 +124,11 @@  discard block
 block discarded – undo
124 124
      */
125 125
     public function fileExists($className)
126 126
     {
127
-        $defaultFileName = str_replace('\\', $this->nsSeparator, $className) . $this->fileExtension;
127
+        $defaultFileName = str_replace('\\', $this->nsSeparator, $className).$this->fileExtension;
128 128
         foreach ($this->paths as $path) {
129
-            if (! isset($this->prefixes[$path])) {
129
+            if (!isset($this->prefixes[$path])) {
130 130
                 // global namespace class
131
-                if (is_file($path . DIRECTORY_SEPARATOR . $defaultFileName)) {
131
+                if (is_file($path.DIRECTORY_SEPARATOR.$defaultFileName)) {
132 132
                     return true;
133 133
                 }
134 134
 
@@ -137,11 +137,11 @@  discard block
 block discarded – undo
137 137
 
138 138
             $prefix = $this->prefixes[$path];
139 139
 
140
-            if (strpos($className, $prefix . '\\') !== 0) {
140
+            if (strpos($className, $prefix.'\\') !== 0) {
141 141
                 continue;
142 142
             }
143 143
 
144
-            $filename = $path . '/' . strtr(substr($className, strlen($prefix) + 1), '\\', $this->nsSeparator) . $this->fileExtension;
144
+            $filename = $path.'/'.strtr(substr($className, strlen($prefix) + 1), '\\', $this->nsSeparator).$this->fileExtension;
145 145
             if (is_file($filename)) {
146 146
                 return true;
147 147
             }
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
 
160 160
         if ($this->paths) {
161 161
             foreach ((array) $this->paths as $path) {
162
-                if (! is_dir($path)) {
162
+                if (!is_dir($path)) {
163 163
                     throw MappingException::fileMappingDriversRequireConfiguredDirectoryPath($path);
164 164
                 }
165 165
 
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
184 184
                             '\\'
185 185
                         );
186 186
 
187
-                        $classes[] = $this->prefixes[$path] . str_replace(DIRECTORY_SEPARATOR, '\\', $nsSuffix) . '\\' . str_replace($this->nsSeparator, '\\', $fileName);
187
+                        $classes[] = $this->prefixes[$path].str_replace(DIRECTORY_SEPARATOR, '\\', $nsSuffix).'\\'.str_replace($this->nsSeparator, '\\', $fileName);
188 188
                     } else {
189 189
                         $classes[] = str_replace($this->nsSeparator, '\\', $fileName);
190 190
                     }
@@ -200,11 +200,11 @@  discard block
 block discarded – undo
200 200
      */
201 201
     public function findMappingFile($className)
202 202
     {
203
-        $defaultFileName = str_replace('\\', $this->nsSeparator, $className) . $this->fileExtension;
203
+        $defaultFileName = str_replace('\\', $this->nsSeparator, $className).$this->fileExtension;
204 204
         foreach ($this->paths as $path) {
205
-            if (! isset($this->prefixes[$path])) {
206
-                if (is_file($path . DIRECTORY_SEPARATOR . $defaultFileName)) {
207
-                    return $path . DIRECTORY_SEPARATOR . $defaultFileName;
205
+            if (!isset($this->prefixes[$path])) {
206
+                if (is_file($path.DIRECTORY_SEPARATOR.$defaultFileName)) {
207
+                    return $path.DIRECTORY_SEPARATOR.$defaultFileName;
208 208
                 }
209 209
 
210 210
                 continue;
@@ -212,16 +212,16 @@  discard block
 block discarded – undo
212 212
 
213 213
             $prefix = $this->prefixes[$path];
214 214
 
215
-            if (strpos($className, $prefix . '\\') !== 0) {
215
+            if (strpos($className, $prefix.'\\') !== 0) {
216 216
                 continue;
217 217
             }
218 218
 
219
-            $filename = $path . '/' . strtr(substr($className, strlen($prefix) + 1), '\\', $this->nsSeparator) . $this->fileExtension;
219
+            $filename = $path.'/'.strtr(substr($className, strlen($prefix) + 1), '\\', $this->nsSeparator).$this->fileExtension;
220 220
             if (is_file($filename)) {
221 221
                 return $filename;
222 222
             }
223 223
         }
224 224
 
225
-        throw MappingException::mappingFileNotFound($className, substr($className, strrpos($className, '\\') + 1) . $this->fileExtension);
225
+        throw MappingException::mappingFileNotFound($className, substr($className, strrpos($className, '\\') + 1).$this->fileExtension);
226 226
     }
227 227
 }
Please login to merge, or discard this patch.
lib/Doctrine/Common/Persistence/Event/PreUpdateEventArgs.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -101,7 +101,7 @@
 block discarded – undo
101 101
      */
102 102
     private function assertValidField($field)
103 103
     {
104
-        if (! isset($this->entityChangeSet[$field])) {
104
+        if (!isset($this->entityChangeSet[$field])) {
105 105
             throw new \InvalidArgumentException(sprintf(
106 106
                 'Field "%s" is not a valid field of the entity "%s" in PreUpdateEventArgs.',
107 107
                 $field,
Please login to merge, or discard this patch.
lib/Doctrine/Common/Util/ClassUtils.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
      */
27 27
     public static function getRealClass($class)
28 28
     {
29
-        $pos = strrpos($class, '\\' . Proxy::MARKER . '\\');
29
+        $pos = strrpos($class, '\\'.Proxy::MARKER.'\\');
30 30
 
31 31
         if ($pos === false) {
32 32
             return $class;
@@ -93,6 +93,6 @@  discard block
 block discarded – undo
93 93
      */
94 94
     public static function generateProxyClassName($className, $proxyNamespace)
95 95
     {
96
-        return rtrim($proxyNamespace, '\\') . '\\' . Proxy::MARKER . '\\' . ltrim($className, '\\');
96
+        return rtrim($proxyNamespace, '\\').'\\'.Proxy::MARKER.'\\'.ltrim($className, '\\');
97 97
     }
98 98
 }
Please login to merge, or discard this patch.