Browse Source

Merge pull request #5608 from antograssiot/3.0-cleanup

3.0 docs cleanup
ADmad 11 years ago
parent
commit
ad132fc0b2

+ 1 - 1
src/Core/App.php

@@ -38,7 +38,7 @@ use Cake\Core\Plugin;
  * Plugins can be located with App as well. Using Plugin::path('DebugKit') for example, will
  * give you the full path to the DebugKit plugin.
  *
- * @link http://book.cakephp.org/3.0/en/core-utility-libraries/app.html
+ * @link http://book.cakephp.org/3.0/en/core-libraries/app.html
  */
 class App
 {

+ 1 - 1
src/Datasource/ModelAwareTrait.php

@@ -74,7 +74,7 @@ trait ModelAwareTrait
      * @param string $type The type of repository to load. Defaults to 'Table' which
      *   delegates to Cake\ORM\TableRegistry.
      * @return object The model instance created.
-     * @throws \Cake\Model\Exception\MissingModelException If the model class cannot be found.
+     * @throws \Cake\Datasource\Exception\MissingModelException If the model class cannot be found.
      * @throws \InvalidArgumentException When using a type that has not been registered.
      */
     public function loadModel($modelClass = null, $type = 'Table')

+ 5 - 5
src/Filesystem/File.php

@@ -33,7 +33,7 @@ class File
      * File name
      *
      * @var string
-     * http://book.cakephp.org/2.0/en/core-utility-libraries/file-folder.html#File::$name
+     * http://book.cakephp.org/3.0/en/core-libraries/file-folder.html#Cake\Filesystem\File::$name
      */
     public $name = null;
 
@@ -41,7 +41,7 @@ class File
      * File info
      *
      * @var array
-     * http://book.cakephp.org/2.0/en/core-utility-libraries/file-folder.html#File::$info
+     * http://book.cakephp.org/3.0/en/core-libraries/file-folder.html#Cake\Filesystem\File::$info
      */
     public $info = [];
 
@@ -49,7 +49,7 @@ class File
      * Holds the file handler resource if the file is opened
      *
      * @var resource
-     * http://book.cakephp.org/2.0/en/core-utility-libraries/file-folder.html#File::$handle
+     * http://book.cakephp.org/3.0/en/core-libraries/file-folder.html#Cake\Filesystem\File::$handle
      */
     public $handle = null;
 
@@ -57,7 +57,7 @@ class File
      * Enable locking for file reading and writing
      *
      * @var bool
-     * http://book.cakephp.org/2.0/en/core-utility-libraries/file-folder.html#File::$lock
+     * http://book.cakephp.org/3.0/en/core-libraries/file-folder.html#Cake\Filesystem\File::$lock
      */
     public $lock = null;
 
@@ -67,7 +67,7 @@ class File
      * Current file's absolute path
      *
      * @var mixed
-     * http://book.cakephp.org/2.0/en/core-utility-libraries/file-folder.html#File::$path
+     * http://book.cakephp.org/3.0/en/core-libraries/file-folder.html#Cake\Filesystem\File::$path
      */
     public $path = null;
 

+ 1 - 1
src/Filesystem/Folder.php

@@ -66,7 +66,7 @@ class Folder
      * Mode to be used on create. Does nothing on windows platforms.
      *
      * @var int
-     * http://book.cakephp.org/2.0/en/core-utility-libraries/file-folder.html#Folder::$mode
+     * http://book.cakephp.org/3.0/en/core-libraries/file-folder.html#Cake\Filesystem\Folder::$mode
      */
     public $mode = 0755;
 

+ 1 - 1
src/View/Helper/FormHelper.php

@@ -318,7 +318,7 @@ class FormHelper extends Helper
      *   to make a model-less form.
      * @param array $options An array of html attributes and options.
      * @return string An formatted opening FORM tag.
-     * @link http://book.cakephp.org/2.0/en/core-libraries/helpers/form.html#options-for-create
+     * @link http://book.cakephp.org/3.0/en/views/helpers/form.html#Cake\View\Helper\FormHelper::create
      */
     public function create($model = null, array $options = [])
     {

+ 0 - 1
tests/TestCase/TestSuite/TestFixtureTest.php

@@ -17,7 +17,6 @@ namespace Cake\Test\TestCase\TestSuite;
 use Cake\Core\Configure;
 use Cake\Datasource\ConnectionManager;
 use Cake\Log\Log;
-use Cake\Model\Model;
 use Cake\TestSuite\Fixture\TestFixture;
 use Cake\TestSuite\TestCase;
 use Cake\Utility\ClassRegistry;

+ 0 - 1
tests/TestCase/View/Helper/HtmlHelperTest.php

@@ -20,7 +20,6 @@ use Cake\Core\Configure;
 use Cake\Core\Plugin;
 use Cake\Filesystem\File;
 use Cake\Filesystem\Folder;
-use Cake\Model\Model;
 use Cake\Network\Request;
 use Cake\Routing\Router;
 use Cake\TestSuite\TestCase;