Skip to content

Instantly share code, notes, and snippets.

@markstory
Created July 6, 2018 17:07
Show Gist options
  • Save markstory/5e7e6dda3e0a8b568bfc135587a90af2 to your computer and use it in GitHub Desktop.
Save markstory/5e7e6dda3e0a8b568bfc135587a90af2 to your computer and use it in GitHub Desktop.
Methods effected by bool type changes.
// List built with
// ack --noheading 'return.*\|bool' src/
// ack --noheading 'return.*bool\|' src/
src/Auth/BaseAuthenticate.php:113: * @return bool|array Either false on failure, or an array of user data.
src/Auth/DefaultPasswordHasher.php:44: * @return bool|string Password hash or false on failure
src/Auth/DigestAuthenticate.php:135: * @return array|bool Array of digest information.
src/Cache/CacheEngine.php:153: * @return bool|int New incremented value, false otherwise
src/Cache/CacheEngine.php:162: * @return bool|int New incremented value, false otherwise
src/Cache/CacheEngine.php:248: * @return bool|string string key or false
src/Cache/Engine/ApcuEngine.php:102: * @return bool|int New decremented value, false otherwise
src/Cache/Engine/ApcuEngine.php:87: * @return bool|int New incremented value, false otherwise
src/Cache/Engine/MemcachedEngine.php:285: * @return string|int|null|bool
src/Cache/Engine/MemcachedEngine.php:382: * @return bool|int New incremented value, false otherwise
src/Cache/Engine/MemcachedEngine.php:396: * @return bool|int New decremented value, false otherwise
src/Cache/Engine/RedisEngine.php:172: * @return bool|int New incremented value, false otherwise
src/Cache/Engine/RedisEngine.php:192: * @return bool|int New decremented value, false otherwise
src/Cache/Engine/WincacheEngine.php:102: * @return bool|int New decremented value, false otherwise
src/Cache/Engine/WincacheEngine.php:88: * @return bool|int New incremented value, false otherwise
src/Cache/Engine/XcacheEngine.php:128: * @return bool|int New incremented value, false otherwise
src/Cache/Engine/XcacheEngine.php:143: * @return bool|int New decremented value, false otherwise
src/Console/Arguments.php:141: * @return string|int|bool|null The option value or null.
src/Console/ConsoleInputSubcommand.php:115: * @return \Cake\Console\ConsoleOptionParser|bool Either false or a ConsoleOptionParser
src/Console/ConsoleIo.php:141: * @return int|bool The number of bytes returned from writing to stdout.
src/Console/ConsoleIo.php:153: * @return int|bool The number of bytes returned from writing to stdout.
src/Console/ConsoleIo.php:174: * @return int|bool The number of bytes returned from writing to stdout.
src/Console/ConsoleIo.php:193: * @return int|bool The number of bytes returned from writing to stdout.
src/Console/ConsoleIo.php:209: * @return int|bool The number of bytes returned from writing to stderr.
src/Console/ConsoleIo.php:225: * @return int|bool The number of bytes returned from writing to stderr.
src/Console/ConsoleIo.php:242: * @return int|bool The number of bytes returned from writing to stdout.
src/Console/ConsoleIo.php:319: * @return int|bool The number of bytes returned from writing to stderr.
src/Console/ConsoleOutput.php:180: * @return int|bool The number of bytes returned from writing to output.
src/Console/ConsoleOutput.php:249: * @return int|bool The number of bytes returned from writing to output.
src/Console/Shell.php:480: * @return int|bool|null
src/Console/Shell.php:566: * @return int|bool The number of bytes returned from writing to stdout.
src/Console/Shell.php:625: * @return string|bool|null Value. Will return null if it doesn't exist.
src/Console/Shell.php:683: * @return int|bool The number of bytes returned from writing to stdout.
src/Console/Shell.php:695: * @return int|bool The number of bytes returned from writing to stdout.
src/Console/Shell.php:716: * @return int|bool The number of bytes returned from writing to stdout.
src/Console/Shell.php:730: * @return int|bool The number of bytes returned from writing to stderr.
src/Console/Shell.php:743: * @return int|bool The number of bytes returned from writing to stdout.
src/Console/Shell.php:756: * @return int|bool The number of bytes returned from writing to stderr.
src/Console/Shell.php:770: * @return int|bool The number of bytes returned from writing to stdout.
src/Console/ShellDispatcher.php:203: * @return bool|int|null
src/Console/ShellDispatcher.php:357: * @return string|bool Either the classname or false.
src/Controller/Component/AuthComponent.php:814: * @return array|bool User record data, or false, if the user could not be identified.
src/Controller/Controller.php:341: * @return bool|object The model instance or false
src/Core/Configure.php:264: * @return array|bool Array of the configured Engine objects, bool for specific name.
src/Core/ObjectRegistry.php:157: * @return string|bool The resolved name or false for failure.
src/Core/Plugin.php:331: * @return bool|array Boolean true if $plugin is already loaded.
src/Core/functions.php:197: * @return string|bool|null Environment variable setting.
src/Database/Query.php:2096: * @return bool|$this
src/Database/Schema/CachedCollection.php:104: * @return string|bool
src/Database/Schema/CachedCollection.php:118: * @return string|bool
src/Database/Schema/TableSchema.php:777: * @return $this|bool Either the TableSchema instance, the current temporary setting
src/Database/Type/BoolType.php:151: * @return bool|null Converted value.
src/Database/Type/BoolType.php:59: * @return bool|null
src/Database/Type/BoolType.php:82: * @return bool|null
src/Datasource/EntityInterface.php:204: * @return \Cake\Datasource\EntityInterface|bool
src/Datasource/EntityTrait.php:1258: * @return $this|bool
src/Datasource/FixtureInterface.php:44: * @return \Cake\Database\StatementInterface|bool on success or if there are no records to insert, or false on failure.
src/Datasource/QueryTrait.php:216: * @return $this|bool
src/Filesystem/File.php:183: * @return int|bool True on success, false on failure (set mode), false on failure or integer offset on success (get mode)
src/Filesystem/Folder.php:170: * @return string|bool The new path. Returns false on failure
src/Http/Response.php:1364: * @return bool|null
src/Http/ServerRequest.php:1464: * @return array|bool Either an array of all the types the client accepts or a boolean if they accept the
src/Http/ServerRequest.php:1507: * @return array|bool If a $language is provided, a boolean. Otherwise the array of accepted languages.
src/Http/Session.php.orig:134: * @return bool|array
src/Http/Session.php:132: * @return bool|array
src/Log/Engine/FileLog.php:180: * @return bool|null True if rotated successfully or false in case of error.
src/Mailer/Email.php:1693: * @return bool|string
src/Mailer/Email.php:1705: * @return bool|string|$this
src/ORM/Association.php:1486: * @return bool|\Cake\Datasource\EntityInterface false if $entity could not be saved, otherwise it returns
src/ORM/Association/BelongsTo.php:115: * @return bool|\Cake\Datasource\EntityInterface false if $entity could not be saved, otherwise it returns
src/ORM/Association/BelongsToMany.php:707: * @return bool|\Cake\Datasource\EntityInterface false if $entity could not be saved, otherwise it returns
src/ORM/Association/BelongsToMany.php:747: * @return \Cake\Datasource\EntityInterface|bool The parent entity after all links have been
src/ORM/Association/HasMany.php:163: * @return bool|\Cake\Datasource\EntityInterface false if $entity could not be saved, otherwise it returns
src/ORM/Association/HasOne.php:99: * @return bool|\Cake\Datasource\EntityInterface false if $entity could not be saved, otherwise it returns
src/ORM/Behavior/TreeBehavior.php:607: * @return \Cake\Datasource\EntityInterface|bool $node The node after being moved or false on failure
src/ORM/Behavior/TreeBehavior.php:628: * @return \Cake\Datasource\EntityInterface|bool $node The node after being moved or false on failure
src/ORM/Behavior/TreeBehavior.php:697: * @return \Cake\Datasource\EntityInterface|bool the entity after being moved or false on failure
src/ORM/Behavior/TreeBehavior.php:718: * @return \Cake\Datasource\EntityInterface|bool $node The node after being moved or false on failure
src/ORM/Behavior/TreeBehavior.php:990: * @return int|bool Integer of the level or false if the node does not exist.
src/ORM/EagerLoadable.php:294: * @return bool|null
src/ORM/Query.php:1030: * @return bool|$this A boolean when reading, and $this when setting the mode.
src/ORM/Query.php:1364: * @return bool|$this Either the current value or the query object.
src/ORM/Table.php:1956: * @return \Cake\Datasource\EntityInterface|bool
src/ORM/Table.php:2061: * @return \Cake\Datasource\EntityInterface|bool
src/ORM/Table.php:2157: * @return \Cake\Datasource\EntityInterface|bool
src/ORM/Table.php:2207: * @return bool|\Cake\Datasource\EntityInterface[]|\Cake\ORM\ResultSet False on failure, entities list on success.
src/Routing/Route/DashedRoute.php:94: * @return bool|string Either false or a string URL.
src/Routing/Route/EntityRoute.php:40: * @return bool|string Either false or a string URL.
src/Routing/Route/RedirectRoute.php:68: * @return bool|null False on failure. An exception is raised on a successful match.
src/Shell/CompletionShell.php:104: * @return int|bool|null Returns the number of bytes returned from writing to stdout.
src/Shell/CompletionShell.php:166: * @return int|bool|null Returns the number of bytes returned from writing to stdout.
src/Shell/CompletionShell.php:46: * @return int|bool Returns the number of bytes returned from writing to stdout.
src/Shell/CompletionShell.php:56: * @return int|bool|null Returns the number of bytes returned from writing to stdout.
src/Shell/CompletionShell.php:68: * @return int|bool|null Returns the number of bytes returned from writing to stdout.
src/Shell/CompletionShell.php:87: * @return int|bool|null Returns the number of bytes returned from writing to stdout.
src/Shell/Task/CommandTask.php:205: * @return \Cake\Console\Shell|bool Shell instance if the command can be found, false otherwise.
src/TestSuite/TestCase.php:563: * @return string|bool
src/Utility/Security.php:287: * @return string|bool Decrypted data. Any trailing null bytes will be removed.
src/Validation/Validation.php:1171: * @return string|bool Either the filename or false on failure.
src/Validation/ValidationRule.php:108: * @return bool|string
src/Validation/ValidationSet.php:57: * @return bool|string|callable
src/Validation/ValidationSet.php:93: * @return bool|string|callable
src/View/Form/EntityContext.php:324: * @return \Cake\Datasource\EntityInterface|\Traversable|array|bool
src/View/Form/EntityContext.php:514: * @return \Cake\ORM\Table|bool Table instance or false
src/View/Helper/FormHelper.php:1524: * @return bool|string false or Generated label element
src/View/View.php:572: * @return bool|null
src/View/ViewBuilder.php:229: * @return bool|$this
src/View/Widget/RadioWidget.php:229: * @return string|bool Generated label.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment