Commit Graph
27 Commits
Author SHA1 Message Date
Mike van Riel e06ea450a4 Merge pull request #17 from joncave/cotnent-typo
Fix typo in "cotnent"
2013-02-01 10:47:35 -08:00
Mike van Riel 0701e60839 Change behaviour of @param parsing
In issue report phpDocumentor/phpDocumentor2#620 @bobef reported that when he
used just a Type as content of the @param that it would be recognized as
description instead of the Type.

According to the unit tests this is correct behaviour but after reviewing the
pattern of the output his version is more consistent. As such I have altered
the behaviour to act as following:

If only one word is found after an @param (word means white-space bounded
series of characters) then interpret that as the type and not description.

During this item several issues in unit tests were fixed and a new 'Type'
Collection was introduced that is capable of expanding types based on a given
namespace and series of aliases.
This should be re-used in phpDocumentor's Transformer as a duplication exists
there with the expanding of the Types.

Please note: the suggested format by @bobef is not valid according to the
PHPDoc Standard but is provided for convenience.
2012-11-03 22:14:43 +01:00
Mike van Riel b3641c0e69 Merge branch 'patch-2' of https://github.com/boenrobot/ReflectionDocBlock into boenrobot-patch-2
Conflicts:
	src/phpDocumentor/Reflection/DocBlock/LongDescription.php
2012-11-01 18:56:36 +01:00
Mike van Riel 9e5e386120 Merge pull request #7 from boenrobot/patch-3
Reflection for the author tag.
2012-10-15 13:01:19 -07:00
Mike van Riel d5dc80a443 Merge branch 'master' of github.com:phpDocumentor/ReflectionDocBlock 2012-09-30 14:29:16 +02:00
Mike van Riel b5e8c5cb05 Fix @return type/description seperation
Per issue phpDocumentor/phpDocumentor2#623 should a newline directly behind the type
of a multiline @return tag be interpreted correctly. Currently seperation occurs
on the first space or tab but this is not sufficient.
2012-09-30 14:26:28 +02:00
Mike van Riel feeea6b7c4 Merge pull request #5 from boenrobot/patch-1
Fix for phpDocumentor2#562
2012-09-16 08:15:18 -07:00
Mike van Riel 58aab9c891 Multiline @return statements were stripped from their newlines and indent
@return statements (and effectively others) were stripped from their newlines
and indentation. By tweaking the reflection a bit was this effect countered.
2012-09-10 16:50:44 +02:00
Mike van Riel cd7233e50a #544: Added self and $this to the exceptions where type expansion is not required 2012-07-27 06:56:37 +02:00
Mike van Riel eb8fb7a7ac Removed the prefixing slash in a class_exists call because the autoloader of Composer
dies on that occasionally.
2012-07-26 17:09:50 +02:00
Mike van Riel 49040c9104 Fixing the other RegExes as well since they were also not using the u modifier 2012-07-13 20:07:51 +02:00
Mike van Riel cfc74b22ae Merge pull request #4 from rvanvelzen/master
Add the u modifier to the regexes used.
2012-07-13 10:28:21 -07:00
Mike van Riel b3d119fd24 Namespace resolution did not work as intended
The algorithm to expand a class name into a FCQN contained seevral errors.
These are now gone and expansion should work as expected
2012-06-30 13:38:18 +02:00
Mike van Riel cb0246462f Added 'global' to the list of special namespace names indicating global space and adding namespace resolution to the param tags 'getType()' method 2012-06-29 23:04:12 +02:00
Mike van Riel 467101e53d Added command to set the DocBlock onto the tags so that type expansion may happen 2012-06-21 23:03:48 +02:00
Mike van Riel 0a90ca3881 Changed return tag to properly support expanding types 2012-06-21 23:00:13 +02:00
Mike van Riel fa9e0b637e Added type expansion for the @param tag 2012-06-21 22:51:29 +02:00
Mike van Riel 34ab54aaca Added support for namespace expansion of a DocBlock and via the DocBlock to its tags 2012-06-21 22:17:30 +02:00
Mike van Riel 11f904aae9 Merge pull request #3 from rvanvelzen/master
Fix phpDocumentor/phpDocumentor2#467
2012-06-04 13:34:54 -07:00
Mike van Riel b5b35d2690 Updated README to reflect submission to packagist 2012-06-02 22:07:17 +02:00
Mike van Riel 715d1e0244 Merge pull request #2 from egeniq/master
Small path fix
2012-06-02 13:00:11 -07:00
Mike van Riel bf9793aab3 Merge branch 'master' of github.com:phpDocumentor/ReflectionDocBlock 2012-05-26 10:29:51 +02:00
Mike van Riel 663df2c65b Expanded README file and added Markdown class as dependency since it is used in the long description and parameter parsing 2012-05-26 10:28:28 +02:00
Mike van Riel d6955a0a13 Merge pull request #1 from leofeyer/master
Broken markdown support for long descriptions
2012-05-14 23:26:52 -07:00
Mike van Riel 3f8a4fca6d fixed autoloading error 2012-04-07 11:49:54 +02:00
Mike van Riel 6a34cf123c fixed error in composer file 2012-04-06 20:39:59 +02:00
Mike van Riel fea7abe168 Imported DocBlock Reflection and transformed into a PHP 5.3 module 2012-04-06 20:15:46 +02:00