Completed
Pull Request — master (#213)
by
unknown
05:47
created
lib/Doctrine/Annotations/AnnotationReader.php 2 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -162,15 +162,15 @@
 block discarded – undo
162 162
      */
163 163
     public function __construct(DocParser $parser = null)
164 164
     {
165
-		if (extension_loaded('Zend Optimizer+')	&&
166
-			function_exists('ini_get') &&
167
-			(ini_get('zend_optimizerplus.save_comments') === "0" || ini_get('opcache.save_comments') === "0")) {
165
+        if (extension_loaded('Zend Optimizer+')	&&
166
+            function_exists('ini_get') &&
167
+            (ini_get('zend_optimizerplus.save_comments') === "0" || ini_get('opcache.save_comments') === "0")) {
168 168
             throw AnnotationException::optimizerPlusSaveComments();
169 169
         }
170 170
 
171
-		if (extension_loaded('Zend OPcache') &&
172
-			function_exists('ini_get') &&
173
-			ini_get('opcache.save_comments') == 0) {
171
+        if (extension_loaded('Zend OPcache') &&
172
+            function_exists('ini_get') &&
173
+            ini_get('opcache.save_comments') == 0) {
174 174
             throw AnnotationException::optimizerPlusSaveComments();
175 175
         }
176 176
 
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
         'Required' => true,
43 43
         'Target' => true,
44 44
         // Widely used tags (but not existent in phpdoc)
45
-        'fix' => true , 'fixme' => true,
45
+        'fix' => true, 'fixme' => true,
46 46
         'override' => true,
47 47
         // PHPDocumentor 1 tags
48 48
         'abstract'=> true, 'access'=> true,
@@ -162,7 +162,7 @@  discard block
 block discarded – undo
162 162
      */
163 163
     public function __construct(DocParser $parser = null)
164 164
     {
165
-		if (extension_loaded('Zend Optimizer+')	&&
165
+		if (extension_loaded('Zend Optimizer+') &&
166 166
 			function_exists('ini_get') &&
167 167
 			(ini_get('zend_optimizerplus.save_comments') === "0" || ini_get('opcache.save_comments') === "0")) {
168 168
             throw AnnotationException::optimizerPlusSaveComments();
@@ -194,7 +194,7 @@  discard block
 block discarded – undo
194 194
         $this->parser->setIgnoredAnnotationNames($this->getIgnoredAnnotationNames($class));
195 195
         $this->parser->setIgnoredAnnotationNamespaces(self::$globalIgnoredNamespaces);
196 196
 
197
-        return $this->parser->parse($class->getDocComment(), 'class ' . $class->getName());
197
+        return $this->parser->parse($class->getDocComment(), 'class '.$class->getName());
198 198
     }
199 199
 
200 200
     /**
@@ -219,7 +219,7 @@  discard block
 block discarded – undo
219 219
     public function getPropertyAnnotations(ReflectionProperty $property)
220 220
     {
221 221
         $class   = $property->getDeclaringClass();
222
-        $context = 'property ' . $class->getName() . "::\$" . $property->getName();
222
+        $context = 'property '.$class->getName()."::\$".$property->getName();
223 223
 
224 224
         $this->parser->setTarget(Target::TARGET_PROPERTY);
225 225
         $this->parser->setImports($this->getPropertyImports($property));
@@ -251,7 +251,7 @@  discard block
 block discarded – undo
251 251
     public function getMethodAnnotations(ReflectionMethod $method)
252 252
     {
253 253
         $class   = $method->getDeclaringClass();
254
-        $context = 'method ' . $class->getName() . '::' . $method->getName() . '()';
254
+        $context = 'method '.$class->getName().'::'.$method->getName().'()';
255 255
 
256 256
         $this->parser->setTarget(Target::TARGET_METHOD);
257 257
         $this->parser->setImports($this->getMethodImports($method));
@@ -371,7 +371,7 @@  discard block
 block discarded – undo
371 371
     private function collectParsingMetadata(ReflectionClass $class)
372 372
     {
373 373
         $ignoredAnnotationNames = self::$globalIgnoredNames;
374
-        $annotations            = $this->preParser->parse($class->getDocComment(), 'class ' . $class->name);
374
+        $annotations            = $this->preParser->parse($class->getDocComment(), 'class '.$class->name);
375 375
 
376 376
         foreach ($annotations as $annotation) {
377 377
             if ($annotation instanceof IgnoreAnnotation) {
Please login to merge, or discard this patch.