Passed
Push — master ( 4a463e...fad3cd )
by Michael
02:29
created
src/Mapper/Definition/YamlDefinitionProvider.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
      */
110 110
     public function getDefinition(string $class): Definition
111 111
     {
112
-        if (! isset($this->definitionCache[$class])) {
112
+        if (!isset($this->definitionCache[$class])) {
113 113
             $this->definitionCache[$class] = $this->createDefinition($class);
114 114
         }
115 115
 
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
      */
125 125
     protected function createDefinition(string $class): Definition
126 126
     {
127
-        $path   = $this->basePath . DIRECTORY_SEPARATOR . str_replace('\\', '.', $class) . '.yml';
127
+        $path   = $this->basePath.DIRECTORY_SEPARATOR.str_replace('\\', '.', $class).'.yml';
128 128
         $config = $this->readConfig($path);
129 129
 
130 130
         $definition = new Definition($class);
@@ -149,8 +149,8 @@  discard block
 block discarded – undo
149 149
      */
150 150
     protected function readConfig(string $path): array
151 151
     {
152
-        if (! is_readable($path)) {
153
-            throw new DefinitionProviderException('Unable to read definition by path: ' . $path);
152
+        if (!is_readable($path)) {
153
+            throw new DefinitionProviderException('Unable to read definition by path: '.$path);
154 154
         }
155 155
 
156 156
         $content = file_get_contents($path);
Please login to merge, or discard this patch.