Skip to content
Permalink
Browse files

Use self instead of $this for IDE compatibility.

  • Loading branch information...
dereuromark committed Dec 19, 2016
1 parent b2703a7 commit 2f0133bbbe87929aa021830baf9ea2d8d9e29d46
Showing with 349 additions and 349 deletions.
  1. +17 −17 src/Console/ConsoleOptionParser.php
  2. +1 −1 src/Core/InstanceConfigTrait.php
  3. +3 −3 src/Database/Connection.php
  4. +1 −1 src/Database/Driver.php
  5. +1 −1 src/Database/Expression/CaseExpression.php
  6. +3 −3 src/Database/Expression/FunctionExpression.php
  7. +23 −23 src/Database/Expression/QueryExpression.php
  8. +6 −6 src/Database/Expression/ValuesExpression.php
  9. +42 −42 src/Database/Query.php
  10. +1 −1 src/Database/Schema/CachedCollection.php
  11. +7 −7 src/Database/Schema/TableSchema.php
  12. +1 −1 src/Database/Statement/BufferResultsTrait.php
  13. +4 −4 src/Database/Type/DateTimeType.php
  14. +2 −2 src/Database/Type/DateType.php
  15. +1 −1 src/Database/Type/DecimalType.php
  16. +1 −1 src/Database/Type/FloatType.php
  17. +5 −5 src/Database/TypeMap.php
  18. +4 −4 src/Database/TypeMapTrait.php
  19. +1 −1 src/Database/TypedResultInterface.php
  20. +1 −1 src/Database/TypedResultTrait.php
  21. +8 −8 src/Datasource/EntityTrait.php
  22. +1 −1 src/Datasource/InvalidPropertyInterface.php
  23. +1 −1 src/Datasource/ModelAwareTrait.php
  24. +8 −8 src/Datasource/QueryInterface.php
  25. +7 −7 src/Datasource/QueryTrait.php
  26. +2 −2 src/Datasource/RuleInvoker.php
  27. +4 −4 src/Datasource/RulesChecker.php
  28. +2 −2 src/Event/Event.php
  29. +3 −3 src/Form/Schema.php
  30. +2 −2 src/Http/Client/FormData.php
  31. +3 −3 src/Http/Client/Request.php
  32. +6 −6 src/Http/MiddlewareQueue.php
  33. +2 −2 src/Http/Server.php
  34. +5 −5 src/Http/ServerRequest.php
  35. +32 −32 src/Mailer/Email.php
  36. +4 −4 src/Mailer/Mailer.php
  37. +6 −6 src/Network/CorsBuilder.php
  38. +12 −12 src/ORM/Association.php
  39. +3 −3 src/ORM/Association/BelongsToMany.php
  40. +2 −2 src/ORM/Association/HasMany.php
  41. +1 −1 src/ORM/Behavior/Translate/TranslateTrait.php
  42. +2 −2 src/ORM/EagerLoadable.php
  43. +2 −2 src/ORM/EagerLoader.php
  44. +1 −1 src/ORM/Locator/TableLocator.php
  45. +16 −16 src/ORM/Query.php
  46. +8 −8 src/ORM/Table.php
  47. +1 −1 src/Routing/Route/Route.php
  48. +1 −1 src/TestSuite/Stub/Response.php
  49. +2 −2 src/Validation/ValidationSet.php
  50. +53 −53 src/Validation/Validator.php
  51. +5 −5 src/View/Helper/BreadcrumbsHelper.php
  52. +1 −1 src/View/Helper/FormHelper.php
  53. +1 −1 src/View/Helper/HtmlHelper.php
  54. +1 −1 src/View/StringTemplate.php
  55. +2 −2 src/View/StringTemplateTrait.php
  56. +13 −13 src/View/ViewBuilder.php
  57. +1 −1 src/View/ViewVarsTrait.php
@@ -169,7 +169,7 @@ public function __construct($command = null, $defaultOptions = true)
*
* @param string|null $command The command name this parser is for. The command name is used for generating help.
* @param bool $defaultOptions Whether you want the verbose and quiet options set.
* @return $this
* @return self
*/
public static function create($command, $defaultOptions = true)
{
@@ -197,7 +197,7 @@ public static function create($command, $defaultOptions = true)
*
* @param array $spec The spec to build the OptionParser with.
* @param bool $defaultOptions Whether you want the verbose and quiet options set.
* @return $this
* @return self
*/
public static function buildFromArray($spec, $defaultOptions = true)
{
@@ -244,7 +244,7 @@ public function toArray()
* Get or set the command name for shell/task.
*
* @param array|\Cake\Console\ConsoleOptionParser $spec ConsoleOptionParser or spec to merge with.
* @return $this
* @return self
*/
public function merge($spec)
{
@@ -274,7 +274,7 @@ public function merge($spec)
* Sets the command name for shell/task.
*
* @param string $text The text to set.
* @return $this
* @return self
*/
public function setCommand($text)
{
@@ -298,7 +298,7 @@ public function getCommand()
*
* @deprecated 3.4.0 Use setCommand()/getCommand() instead.
* @param string|null $text The text to set, or null if you want to read
* @return string|$this If reading, the value of the command. If setting $this will be returned.
* @return string|self If reading, the value of the command. If setting $this will be returned.
*/
public function command($text = null)
{
@@ -314,7 +314,7 @@ public function command($text = null)
*
* @param string|array $text The text to set. If an array the
* text will be imploded with "\n".
* @return $this
* @return self
*/
public function setDescription($text)
{
@@ -342,7 +342,7 @@ public function getDescription()
* @deprecated 3.4.0 Use setDescription()/getDescription() instead.
* @param string|array|null $text The text to set, or null if you want to read. If an array the
* text will be imploded with "\n".
* @return string|$this If reading, the value of the description. If setting $this will be returned.
* @return string|self If reading, the value of the description. If setting $this will be returned.
*/
public function description($text = null)
{
@@ -359,7 +359,7 @@ public function description($text = null)
*
* @param string|array $text The text to set. If an array the text will
* be imploded with "\n".
* @return $this
* @return self
*/
public function setEpilog($text)
{
@@ -388,7 +388,7 @@ public function getEpilog()
* @deprecated 3.4.0 Use setEpilog()/getEpilog() instead.
* @param string|array|null $text Text when setting or null when reading. If an array the text will
* be imploded with "\n".
* @return string|$this If reading, the value of the epilog. If setting $this will be returned.
* @return string|self If reading, the value of the epilog. If setting $this will be returned.
*/
public function epilog($text = null)
{
@@ -419,7 +419,7 @@ public function epilog($text = null)
* @param \Cake\Console\ConsoleInputOption|string $name The long name you want to the value to be parsed out as when options are parsed.
* Will also accept an instance of ConsoleInputOption
* @param array $options An array of parameters that define the behavior of the option
* @return $this
* @return self
*/
public function addOption($name, array $options = [])
{
@@ -452,7 +452,7 @@ public function addOption($name, array $options = [])
* Remove an option from the option parser.
*
* @param string $name The option name to remove.
* @return $this
* @return self
*/
public function removeOption($name)
{
@@ -477,7 +477,7 @@ public function removeOption($name)
* @param \Cake\Console\ConsoleInputArgument|string $name The name of the argument.
* Will also accept an instance of ConsoleInputArgument.
* @param array $params Parameters for the argument, see above.
* @return $this
* @return self
*/
public function addArgument($name, array $params = [])
{
@@ -517,7 +517,7 @@ public function addArgument($name, array $params = [])
*
* @param array $args Array of arguments to add.
* @see \Cake\Console\ConsoleOptionParser::addArgument()
* @return $this
* @return self
*/
public function addArguments(array $args)
{
@@ -538,7 +538,7 @@ public function addArguments(array $args)
*
* @param array $options Array of options to add.
* @see \Cake\Console\ConsoleOptionParser::addOption()
* @return $this
* @return self
*/
public function addOptions(array $options)
{
@@ -566,7 +566,7 @@ public function addOptions(array $options)
*
* @param \Cake\Console\ConsoleInputSubcommand|string $name Name of the subcommand. Will also accept an instance of ConsoleInputSubcommand
* @param array $options Array of params, see above.
* @return $this
* @return self
*/
public function addSubcommand($name, array $options = [])
{
@@ -592,7 +592,7 @@ public function addSubcommand($name, array $options = [])
* Remove a subcommand from the option parser.
*
* @param string $name The subcommand name to remove.
* @return $this
* @return self
*/
public function removeSubcommand($name)
{
@@ -605,7 +605,7 @@ public function removeSubcommand($name)
* Add multiple subcommands at once.
*
* @param array $commands Array of subcommands.
* @return $this
* @return self
*/
public function addSubcommands(array $commands)
{
@@ -124,7 +124,7 @@ public function config($key = null, $value = null, $merge = true)
*
* @param string|array $key The key to set, or a complete array of configs.
* @param mixed|null $value The value to set.
* @return $this The object itself.
* @return self The object itself.
*/
public function configShallow($key, $value = null)
{
@@ -150,7 +150,7 @@ public function configName()
* @param array $config Config for a new driver.
* @throws \Cake\Database\Exception\MissingDriverException When a driver class is missing.
* @throws \Cake\Database\Exception\MissingExtensionException When a driver's PHP extension is missing.
* @return $this
* @return self
*/
public function setDriver($driver, $config = [])
{
@@ -335,7 +335,7 @@ public function newQuery()
* Sets a Schema\Collection object for this connection.
*
* @param \Cake\Database\Schema\Collection $collection The schema collection object
* @return $this
* @return self
*/
public function setSchemaCollection(SchemaCollection $collection)
{
@@ -522,7 +522,7 @@ public function rollback()
* `$connection->enableSavePoints(false)` Disables usage of savepoints and returns false
*
* @param bool $enable Whether or not save points should be used.
* @return $this
* @return self
*/
public function enableSavePoints($enable)
{
@@ -301,7 +301,7 @@ public function isConnected()
* in queries.
*
* @param bool $enable Whether to enable auto quoting
* @return $this
* @return self
*/
public function enableAutoQuoting($enable)
{
@@ -83,7 +83,7 @@ public function __construct($conditions = [], $values = [], $types = [])
* @param array|\Cake\Database\ExpressionInterface $values associative array of values of each condition
* @param array $types associative array of types to be associated with the values
*
* @return $this
* @return self
*/
public function add($conditions = [], $values = [], $types = [])
{
@@ -77,7 +77,7 @@ public function __construct($name, $params = [], $types = [], $returnType = 'str
* Sets the name of the SQL function to be invoke in this expression.
*
* @param string $name The name of the function
* @return $this
* @return self
*/
public function setName($name)
{
@@ -102,7 +102,7 @@ public function getName()
*
* @deprecated 3.4.0 Use setName()/getName() instead.
* @param string|null $name The name of the function
* @return string|$this
* @return string|self
*/
public function name($name = null)
{
@@ -122,7 +122,7 @@ public function name($name = null)
* passed arguments
* @param bool $prepend Whether to prepend or append to the list of arguments
* @see \Cake\Database\Expression\FunctionExpression::__construct() for more details.
* @return $this
* @return self
*/
public function add($params, $types = [], $prepend = false)
{
Oops, something went wrong.

0 comments on commit 2f0133b

Please sign in to comment.
You can’t perform that action at this time.