diff --git a/01 - Navigation/01 - Navigate to something you know/1.1. Project Tool Window.txt b/01 - Navigation/01 - Navigate to something you know/1.1. Project Tool Window.txt index b977e2c6..27083451 100644 --- a/01 - Navigation/01 - Navigate to something you know/1.1. Project Tool Window.txt +++ b/01 - Navigation/01 - Navigate to something you know/1.1. Project Tool Window.txt @@ -1,10 +1,10 @@ Project Tool Window -Shows all files in project. +Show all files in project. Alt+1 (Windows/Linux) Command+1 (Mac OS X) 1. Open the Project Tool Window. -2. Using the arrow keys, navigate to \01 - Navigation\01 - Navigate to something you know\Code\license.txt +2. Using the arrow keys, navigate to \01 - Navigation\01 - Navigate to something you know\Code\license.txt. 3. Start typing "Bar". Navigate to the next exercise. diff --git a/01 - Navigation/01 - Navigate to something you know/1.3. Navigate to class.txt b/01 - Navigation/01 - Navigate to something you know/1.3. Navigate to class.txt index e9880ffb..8cdcb970 100644 --- a/01 - Navigation/01 - Navigate to something you know/1.3. Navigate to class.txt +++ b/01 - Navigation/01 - Navigate to something you know/1.3. Navigate to class.txt @@ -5,19 +5,19 @@ Navigate to a class by (partial) class name. Ctrl+N (Windows/Linux) Command+O (Mac OS X) -1. Navigate to class +1. Navigate to class. Navigate to the Customer class. Open the file by hitting enter. -2. Use CamelHumps to navigate - Navigate to the CustomerRepository class using CamelHumps (type "CR" or "CusR") +2. Use CamelHumps to navigate. + Navigate to the CustomerRepository class using CamelHumps (type "CR" or "CusR"). -3. Use middle matching to navigate - Navigate to the DocumentRepository class by searching for "Repo" +3. Use middle matching to navigate. + Navigate to the DocumentRepository class by searching for "Repo". -4. Use wildcards - Navigate to the SettingsRepository by searching for "S*Repo" +4. Use wildcards. + Navigate to the SettingsRepository by searching for "S*Repo". 5. Filter to only check PHP files by clicking the filter icon. -6. Include non-project classes - Check the "Include non-project classes" checkbox and navigate to ArrayObject (PHP SPL library) \ No newline at end of file +6. Include non-project classes. + Check the "Include non-project classes" checkbox and navigate to ArrayObject (PHP SPL library). diff --git a/01 - Navigation/01 - Navigate to something you know/1.4. Navigate to file.txt b/01 - Navigation/01 - Navigate to something you know/1.4. Navigate to file.txt index 89f045fd..0d2871fe 100644 --- a/01 - Navigation/01 - Navigate to something you know/1.4. Navigate to file.txt +++ b/01 - Navigation/01 - Navigate to something you know/1.4. Navigate to file.txt @@ -5,16 +5,16 @@ Navigate to a file by (partial) file name. Ctrl+Shift+N (Windows/Linux) Shift+Command+O (Mac OS X) -1. Navigate to file - Navigate to the customer.php file. Open the file by hitting enter. +1. Navigate to file. + Navigate to the Customer.php file. Open the file by hitting enter. -2. Use CamelHumps to navigate - Navigate to the CustomerRepository.php file using CamelHumps (type "CR" or "CusR") +2. Use CamelHumps to navigate. + Navigate to the CustomerRepository.php file using CamelHumps (type "CR" or "CusR"). -3. Use middle matching to navigate - Navigate to the DocumentRepository.php file by searching for "Repo" +3. Use middle matching to navigate. + Navigate to the DocumentRepository.php file by searching for "Repo". -4. Use wildcards - Navigate to the license.txt file by searching for "l*.txt" +4. Use wildcards. + Navigate to the license.txt file by searching for "l*.txt". -5. Filter to only check JavaScript files by clicking the filter icon. Search for Customer.js. \ No newline at end of file +5. Filter to only check JavaScript files by clicking the filter icon. Search for Customer.js. diff --git a/01 - Navigation/01 - Navigate to something you know/1.5. Navigate to symbol.txt b/01 - Navigation/01 - Navigate to something you know/1.5. Navigate to symbol.txt index 2b1eb883..aeb5d6d4 100644 --- a/01 - Navigation/01 - Navigate to something you know/1.5. Navigate to symbol.txt +++ b/01 - Navigation/01 - Navigate to something you know/1.5. Navigate to symbol.txt @@ -5,13 +5,13 @@ Navigate to a symbol by (partial) symbol name. Ctrl+Alt+Shift+N (Windows/Linux) Alt+Command+O (Mac OS X) -1. Navigate to symbol +1. Navigate to symbol. Navigate to the $_name protected variable in Customer.php. -2. Use CamelHumps to navigate - Navigate to the getName() function using CamelHumps (type "gN" or "getN") +2. Use CamelHumps to navigate. + Navigate to the getName() function using CamelHumps (type "gN" or "getN"). 3. Note that middle matching and wildcards also work when searching symbols. Example searches: "ebra" of "celebr*day" for the celebrateBirthday() function. -4. Filter to only search in JavaScript files and find the celebrateBirthday() function in the Customer.js file. \ No newline at end of file +4. Filter to only search in JavaScript files and find the celebrateBirthday() function in the Customer.js file. diff --git a/01 - Navigation/01 - Navigate to something you know/1.6. Search everywhere.txt b/01 - Navigation/01 - Navigate to something you know/1.6. Search everywhere.txt index 78ba0cdf..624d7285 100644 --- a/01 - Navigation/01 - Navigate to something you know/1.6. Search everywhere.txt +++ b/01 - Navigation/01 - Navigate to something you know/1.6. Search everywhere.txt @@ -8,10 +8,10 @@ Double shift (Windows/Linux/Mac OS X) 2. Navigate to the $_name protected variable in Customer.php. -3. Use CamelHumps to navigate - Navigate to the CustomerRepository class using CamelHumps (type "CR" or "CusR") +3. Use CamelHumps to navigate. + Navigate to the CustomerRepository class using CamelHumps (type "CR" or "CusR"). -4. Use middle matching to navigate - Navigate to the DocumentRepository.php file by searching for "Repo" +4. Use middle matching to navigate. + Navigate to the DocumentRepository.php file by searching for "Repo". -5. Find the "About" action and invoke it. \ No newline at end of file +5. Find the "About" action and invoke it. diff --git a/01 - Navigation/01 - Navigate to something you know/Code/JetBrains/Customers/Customer.js b/01 - Navigation/01 - Navigate to something you know/Code/JetBrains/Customers/Customer.js index 975b7141..79bb9d98 100644 --- a/01 - Navigation/01 - Navigate to something you know/Code/JetBrains/Customers/Customer.js +++ b/01 - Navigation/01 - Navigate to something you know/Code/JetBrains/Customers/Customer.js @@ -4,4 +4,4 @@ var Customer = function() { this.celebrateBirthday = function() { console.log('Yay!'); } -}; \ No newline at end of file +}; diff --git a/01 - Navigation/01 - Navigate to something you know/Code/JetBrains/Customers/Customer.php b/01 - Navigation/01 - Navigate to something you know/Code/JetBrains/Customers/Customer.php index 2e72f97b..6319a7ef 100644 --- a/01 - Navigation/01 - Navigate to something you know/Code/JetBrains/Customers/Customer.php +++ b/01 - Navigation/01 - Navigate to something you know/Code/JetBrains/Customers/Customer.php @@ -10,8 +10,8 @@ class Customer { protected $_age; /** - * @param $name string - * @param $age int + * @param string $name + * @param int $age */ function __construct($name, $age) { @@ -57,4 +57,4 @@ public function getName() public function celebrateBirthday() { echo 'Yay!'; } -} \ No newline at end of file +} diff --git a/01 - Navigation/01 - Navigate to something you know/Code/JetBrains/Customers/Repositories/CustomerRepository.php b/01 - Navigation/01 - Navigate to something you know/Code/JetBrains/Customers/Repositories/CustomerRepository.php index 4baa2c1b..9c94fc7b 100644 --- a/01 - Navigation/01 - Navigate to something you know/Code/JetBrains/Customers/Repositories/CustomerRepository.php +++ b/01 - Navigation/01 - Navigate to something you know/Code/JetBrains/Customers/Repositories/CustomerRepository.php @@ -4,4 +4,4 @@ class CustomerRepository extends RepositoryBase { -} \ No newline at end of file +} diff --git a/01 - Navigation/01 - Navigate to something you know/Code/JetBrains/Customers/Repositories/DocumentRepository.php b/01 - Navigation/01 - Navigate to something you know/Code/JetBrains/Customers/Repositories/DocumentRepository.php index 10cf5eb9..42817274 100644 --- a/01 - Navigation/01 - Navigate to something you know/Code/JetBrains/Customers/Repositories/DocumentRepository.php +++ b/01 - Navigation/01 - Navigate to something you know/Code/JetBrains/Customers/Repositories/DocumentRepository.php @@ -4,4 +4,4 @@ class DocumentRepository extends RepositoryBase { -} \ No newline at end of file +} diff --git a/01 - Navigation/01 - Navigate to something you know/Code/JetBrains/Customers/Repositories/RepositoryBase.php b/01 - Navigation/01 - Navigate to something you know/Code/JetBrains/Customers/Repositories/RepositoryBase.php index 4fe1c755..aa339899 100644 --- a/01 - Navigation/01 - Navigate to something you know/Code/JetBrains/Customers/Repositories/RepositoryBase.php +++ b/01 - Navigation/01 - Navigate to something you know/Code/JetBrains/Customers/Repositories/RepositoryBase.php @@ -4,4 +4,4 @@ abstract class RepositoryBase { -} \ No newline at end of file +} diff --git a/01 - Navigation/01 - Navigate to something you know/Code/JetBrains/Customers/Repositories/SettingsRepository.php b/01 - Navigation/01 - Navigate to something you know/Code/JetBrains/Customers/Repositories/SettingsRepository.php index 554cba9c..fdea8e18 100644 --- a/01 - Navigation/01 - Navigate to something you know/Code/JetBrains/Customers/Repositories/SettingsRepository.php +++ b/01 - Navigation/01 - Navigate to something you know/Code/JetBrains/Customers/Repositories/SettingsRepository.php @@ -4,4 +4,4 @@ class SettingsRepository extends RepositoryBase { -} \ No newline at end of file +} diff --git a/01 - Navigation/02 - Navigate to Declaration/2.1. Go to declaration.php b/01 - Navigation/02 - Navigate to Declaration/2.1. Go to declaration.php index 3a52981d..cdc945be 100644 --- a/01 - Navigation/02 - Navigate to Declaration/2.1. Go to declaration.php +++ b/01 - Navigation/02 - Navigate to Declaration/2.1. Go to declaration.php @@ -2,7 +2,7 @@ /** * Go to Declaration * - * Navigates to the declaration of a symbol. + * Navigate to the declaration of a symbol. * * Ctrl+Click or Ctrl+B (Windows/Linux) * Command+Click or Command+B (Mac OS X) @@ -16,15 +16,15 @@ $name = 'Hadi'; $age = 53; -// 1. Ctrl+Click (or Command+Click on Mac) on the Customer symbol -// 2. Use the keyboard shortcut -// 3. Go to Declaration for the $age variable passed into the below constructor +// 1. Ctrl+Click (or Command+Click on Mac) on the Customer symbol. +// 2. Use the keyboard shortcut. +// 3. Go to Declaration for the $age variable passed into the below constructor. $person = new Customer($name, $age); -// 4. Navigate to the celebrateBirthday() function -// 5. Go to Declaration for the $person variable +// 4. Navigate to the celebrateBirthday() function. +// 5. Go to Declaration for the $person variable. $person->celebrateBirthday(); -// 6. Go to Declaration for the ArrayIterator SPL class +// 6. Go to Declaration for the ArrayIterator SPL class. $myArray = array(); $myArrayIterator = new \ArrayIterator($myArray); diff --git a/01 - Navigation/03 - Navigating to somwhere we have been/3.1. Navigate back.php b/01 - Navigation/03 - Navigating to somwhere we have been/3.1. Navigate back.php index ea7943c5..7625a6da 100644 --- a/01 - Navigation/03 - Navigating to somwhere we have been/3.1. Navigate back.php +++ b/01 - Navigation/03 - Navigating to somwhere we have been/3.1. Navigate back.php @@ -2,7 +2,7 @@ /** * Navigate back / forward * - * Returns the caret to the last navigation point. + * Return the caret to the last navigation point. * * Ctrl+Alt+Left / Right (Windows/Linux) * Alt+Command+Left / Right (Mac OS X) @@ -14,14 +14,14 @@ class NavigateBack { public function startingPoint() { $navigateTo = new NavigateTo(); - // 1. Navigate to destination() - // 3. Navigate forward using the keyboard shortcut + // 1. Navigate to destination(). + // 3. Navigate forward using the keyboard shortcut. $navigateTo->destination(); } } class NavigateTo { public function destination() { - // 2. Now navigate back using the keyboard shortcut + // 2. Now navigate back using the keyboard shortcut. } } diff --git a/01 - Navigation/03 - Navigating to somwhere we have been/3.2. Next Method.php b/01 - Navigation/03 - Navigating to somwhere we have been/3.2. Next Method.php index 3721b8e8..486c1c04 100644 --- a/01 - Navigation/03 - Navigating to somwhere we have been/3.2. Next Method.php +++ b/01 - Navigation/03 - Navigating to somwhere we have been/3.2. Next Method.php @@ -28,4 +28,4 @@ public function thirdFunction() { public function fourthFunction() { } -} \ No newline at end of file +} diff --git a/01 - Navigation/03 - Navigating to somwhere we have been/3.3. Recent files.txt b/01 - Navigation/03 - Navigating to somwhere we have been/3.3. Recent files.txt index ad135225..0762266a 100644 --- a/01 - Navigation/03 - Navigating to somwhere we have been/3.3. Recent files.txt +++ b/01 - Navigation/03 - Navigating to somwhere we have been/3.3. Recent files.txt @@ -1,8 +1,8 @@ Recent files -Show a list of recent files +Show a list of recent files. Ctrl+E (Windows/Linux) Command+E (Mac OS X) -1. Filter list by typing - middle matching, wildcards and CamelHumps \ No newline at end of file +1. Filter list by typing - middle matching, wildcards and CamelHumps. diff --git a/01 - Navigation/03 - Navigating to somwhere we have been/3.4. Recent edits.php b/01 - Navigation/03 - Navigating to somwhere we have been/3.4. Recent edits.php index 0a24ca8f..1ab0fbd0 100644 --- a/01 - Navigation/03 - Navigating to somwhere we have been/3.4. Recent edits.php +++ b/01 - Navigation/03 - Navigating to somwhere we have been/3.4. Recent edits.php @@ -2,7 +2,7 @@ /** * Navigate to Last Edit Location. * - * Navigates back to where code was last edited. + * Navigate back to where code was last edited. * * Ctrl+Shift+Backspace (Windows/Linux) * Shift+Command+Delete (Mac OS X) @@ -12,15 +12,15 @@ class NavigateRecent { public function startingPoint() { - // 1. Navigate to step1() + // 1. Navigate to step1(). $this->step1(); } public function step1() { - // 2. Uncomment the following line + // 2. Uncomment the following line. // echo 'In step 1.'; - // 3. Navigate to step2() + // 3. Navigate to step2(). $this->step2(); } diff --git a/01 - Navigation/03 - Navigating to somwhere we have been/3.5. Bookmarks.php b/01 - Navigation/03 - Navigating to somwhere we have been/3.5. Bookmarks.php index 7f052b3b..4389c0ed 100644 --- a/01 - Navigation/03 - Navigating to somwhere we have been/3.5. Bookmarks.php +++ b/01 - Navigation/03 - Navigating to somwhere we have been/3.5. Bookmarks.php @@ -2,7 +2,7 @@ /** * Bookmarks * - * Set, unset and navigate to bookmarks + * Set, unset and navigate to bookmarks. * * Windows/Linux: * F11 Toggle Bookmark @@ -20,8 +20,8 @@ * 2. Navigate to secondFunction() and set a bookmark. * 3. Navigate to thirdFunction() and set bookmark with mnemonic, assign it number 3. * 4. Show a list of bookmarks and navigate between them. - * 5. Navigate to the numbered bookmark (Ctrl+3) - * 6. Remove the bookmark from secondFunction() + * 5. Navigate to the numbered bookmark (Ctrl+3). + * 6. Remove the bookmark from secondFunction(). * 7. From the bookmarks list, add a description to one of the bookmarks. */ @@ -39,4 +39,4 @@ public function secondFunction() { public function thirdFunction() { } -} \ No newline at end of file +} diff --git a/01 - Navigation/04 - Navigate class hieracrhies/4.1. Go to Implementation.php b/01 - Navigation/04 - Navigate class hieracrhies/4.1. Go to Implementation.php index f016827d..0ed19136 100644 --- a/01 - Navigation/04 - Navigate class hieracrhies/4.1. Go to Implementation.php +++ b/01 - Navigation/04 - Navigate class hieracrhies/4.1. Go to Implementation.php @@ -2,7 +2,7 @@ /** * Go to Implementation * - * Navigates to the implementation of a given class. + * Navigate to the implementation of a given class. * * Ctrl+Alt+B (Windows/Linux) * Alt+Command+B (Mac OS X) @@ -15,12 +15,12 @@ class GoToImplementation { public function pleaseGoThere() { - // 1. Put the caret on Customer and Go To Implementation - // Get the choice of Customer, SilverCustomer and GoldCustomer + // 1. Put the caret on Customer and Go To Implementation. + // Get the choice of Customer, SilverCustomer and GoldCustomer. // SilverCustomer and GoldCustomer are indirect implementations because they derive from Customer. $customer = new Customer('Maarten', 0); - // 2. Put the caret on GoldCustomer and Go To Implementation + // 2. Put the caret on GoldCustomer and Go To Implementation. $customer = new GoldCustomer('Maarten'); } -} \ No newline at end of file +} diff --git a/01 - Navigation/04 - Navigate class hieracrhies/4.2. Go to Derived.php b/01 - Navigation/04 - Navigate class hieracrhies/4.2. Go to Derived.php index cdd2a2d2..d9fb30f3 100644 --- a/01 - Navigation/04 - Navigate class hieracrhies/4.2. Go to Derived.php +++ b/01 - Navigation/04 - Navigate class hieracrhies/4.2. Go to Derived.php @@ -29,4 +29,4 @@ public function setDiscount($discount); * @param string $name */ public function setName($name); -} \ No newline at end of file +} diff --git a/01 - Navigation/04 - Navigate class hieracrhies/4.3. Go to Super.php b/01 - Navigation/04 - Navigate class hieracrhies/4.3. Go to Super.php index 593554a1..39b41c52 100644 --- a/01 - Navigation/04 - Navigate class hieracrhies/4.3. Go to Super.php +++ b/01 - Navigation/04 - Navigate class hieracrhies/4.3. Go to Super.php @@ -2,7 +2,7 @@ /** * Go to super class / method * - * Navigates to the super class or method. + * Navigate to the super class or method. * * Ctrl+U (Windows/Linux) * Command+U (Mac OS X) @@ -18,10 +18,10 @@ class GoldCustomer extends Customer // 3. Bring up the Hierarchy tool window and inspect the class hierarchy. // You can also navigate from the tool window. /** - * @param $name string + * @param string $name */ function __construct($name) { parent::__construct($name, 0.25); } -} \ No newline at end of file +} diff --git a/01 - Navigation/04 - Navigate class hieracrhies/Code/JetBrains/Customers/Customer.php b/01 - Navigation/04 - Navigate class hieracrhies/Code/JetBrains/Customers/Customer.php index c6bb897a..4fe4998c 100644 --- a/01 - Navigation/04 - Navigate class hieracrhies/Code/JetBrains/Customers/Customer.php +++ b/01 - Navigation/04 - Navigate class hieracrhies/Code/JetBrains/Customers/Customer.php @@ -10,8 +10,8 @@ class Customer implements ICustomer protected $_discount; /** - * @param $name string - * @param $discount double + * @param string $name + * @param double $discount */ function __construct($name, $discount) { @@ -50,4 +50,4 @@ public function getName() { return $this->_name; } -} \ No newline at end of file +} diff --git a/01 - Navigation/04 - Navigate class hieracrhies/Code/JetBrains/Customers/SilverCustomer.php b/01 - Navigation/04 - Navigate class hieracrhies/Code/JetBrains/Customers/SilverCustomer.php index 4d3289e7..4e0221c4 100644 --- a/01 - Navigation/04 - Navigate class hieracrhies/Code/JetBrains/Customers/SilverCustomer.php +++ b/01 - Navigation/04 - Navigate class hieracrhies/Code/JetBrains/Customers/SilverCustomer.php @@ -4,10 +4,10 @@ class SilverCustomer extends Customer { /** - * @param $name string + * @param string $name */ function __construct($name) { parent::__construct($name, 0.10); } -} \ No newline at end of file +} diff --git a/01 - Navigation/05 - Find usages/5.1. Highlight Usages in File.php b/01 - Navigation/05 - Find usages/5.1. Highlight Usages in File.php index f05c4e03..54c45992 100644 --- a/01 - Navigation/05 - Find usages/5.1. Highlight Usages in File.php +++ b/01 - Navigation/05 - Find usages/5.1. Highlight Usages in File.php @@ -2,7 +2,7 @@ /** * Highlight Usages in File * - * Highlights usages of a given symbol in the current file. + * Highlight usages of a given symbol in the current file. * * Ctrl+Shift+F7 (Windows/Linux) * Shift+Command+F7 (Mac OS X) @@ -33,4 +33,4 @@ public function adjust($original, $delta) { return $newValue; } -} \ No newline at end of file +} diff --git a/01 - Navigation/05 - Find usages/5.2. Find Usages.php b/01 - Navigation/05 - Find usages/5.2. Find Usages.php index 69a5019b..d3ed3d51 100644 --- a/01 - Navigation/05 - Find usages/5.2. Find Usages.php +++ b/01 - Navigation/05 - Find usages/5.2. Find Usages.php @@ -2,7 +2,7 @@ /** * Find Usages * - * Highlights usages of a given symbol in the current project. + * Highlight usages of a given symbol in the current project. * * Alt+F7 (Windows/Linux/Mac OS X) * diff --git a/01 - Navigation/05 - Find usages/Code/FindUsagesSample.php b/01 - Navigation/05 - Find usages/Code/FindUsagesSample.php index 9c411cc4..169c4c8b 100644 --- a/01 - Navigation/05 - Find usages/Code/FindUsagesSample.php +++ b/01 - Navigation/05 - Find usages/Code/FindUsagesSample.php @@ -8,4 +8,4 @@ public function makeUseOfFunction() { $target->adjust(5, 3); $target->adjust(3, 9); } -} \ No newline at end of file +} diff --git a/01 - Navigation/06 - Structure tool window/6.1. Structure in PHP files.php b/01 - Navigation/06 - Structure tool window/6.1. Structure in PHP files.php index 96e8d708..7d66f922 100644 --- a/01 - Navigation/06 - Structure tool window/6.1. Structure in PHP files.php +++ b/01 - Navigation/06 - Structure tool window/6.1. Structure in PHP files.php @@ -2,8 +2,8 @@ /** * File Structure Tool Window * - * Displays outline of file: classes, functions (with icons displaying accessibility). - * Also shows HTML, JavaScript, CSS, ... + * Display outline of file: classes, functions (with icons displaying accessibility). + * Also show HTML, JavaScript, CSS, ... * * Alt+7 (Windows/Linux) * Command+7 s(Windows/Linux) @@ -57,4 +57,4 @@ function standardFunction() {

Lorem ipsum dolor sit amet, consectetur adipisicing elit. Debitis deserunt ea expedita magni omnis quis temporibus velit vitae. Ex laboriosam nesciunt nisi obcaecati possimus quia repellendus sequi similique soluta voluptas?

- \ No newline at end of file + diff --git a/01 - Navigation/06 - Structure tool window/6.2. Structure in HTML files.html b/01 - Navigation/06 - Structure tool window/6.2. Structure in HTML files.html index 313e0106..9c807619 100644 --- a/01 - Navigation/06 - Structure tool window/6.2. Structure in HTML files.html +++ b/01 - Navigation/06 - Structure tool window/6.2. Structure in HTML files.html @@ -9,7 +9,7 @@

Structure in HTML files

File Structure Tool Window

-

Displays outline of file: HTML elements, JavaScript, ...

+

Display outline of file: HTML elements, JavaScript, ...

- + diff --git a/99 - Miscellaneous/Refactoring/config.php b/99 - Miscellaneous/Refactoring/config.php index 803cf602..21b8f806 100644 --- a/99 - Miscellaneous/Refactoring/config.php +++ b/99 - Miscellaneous/Refactoring/config.php @@ -12,4 +12,4 @@ define('SITE_PATH', dirname(realpath(__FILE__))); set_include_path(get_include_path() . PATH_SEPARATOR . SITE_PATH); -} \ No newline at end of file +} diff --git a/99 - Miscellaneous/Refactoring/deletepage.php b/99 - Miscellaneous/Refactoring/deletepage.php index 4348adb9..6a792830 100644 --- a/99 - Miscellaneous/Refactoring/deletepage.php +++ b/99 - Miscellaneous/Refactoring/deletepage.php @@ -1,7 +1,7 @@ - + diff --git a/99 - Miscellaneous/Refactoring/editpage.php b/99 - Miscellaneous/Refactoring/editpage.php index 3c494b6d..3215aee5 100644 --- a/99 - Miscellaneous/Refactoring/editpage.php +++ b/99 - Miscellaneous/Refactoring/editpage.php @@ -1,8 +1,8 @@ - + diff --git a/99 - Miscellaneous/Refactoring/functions/database.php b/99 - Miscellaneous/Refactoring/functions/database.php index b65d2d55..c81f9b81 100644 --- a/99 - Miscellaneous/Refactoring/functions/database.php +++ b/99 - Miscellaneous/Refactoring/functions/database.php @@ -20,7 +20,7 @@ function prep_DB_content() /** * Creates database tables. * - * @param $databaseConnection mysqli Database connection. + * @param mysqli $databaseConnection Database connection. */ function create_tables($databaseConnection) { @@ -41,8 +41,8 @@ function create_tables($databaseConnection) /** * Create roles. * - * @param $databaseConnection mysqli Database connection. - * @param $admin_role_id int Role for the administrator user. + * @param mysqli $databaseConnection Database connection. + * @param int $admin_role_id Role for the administrator user. */ function create_roles($databaseConnection, $admin_role_id) { @@ -60,8 +60,8 @@ function create_roles($databaseConnection, $admin_role_id) /** * Create administrator. * - * @param $databaseConnection mysqli Database connection. - * @param $admin_role_id int Role for the administrator user. + * @param mysqli $databaseConnection Database connection. + * @param int $admin_role_id Role for the administrator user. */ function create_admin($databaseConnection, $admin_role_id) { @@ -93,7 +93,7 @@ function create_admin($databaseConnection, $admin_role_id) /** * Adds homepage contents to the database. * - * @param $databaseConnection mysqli Database connection. + * @param mysqli $databaseConnection Database connection. */ function create_homepage($databaseConnection) { @@ -127,4 +127,4 @@ function create_homepage($databaseConnection) $statement_insert_page->execute(); $statement_insert_page->store_result(); } -} \ No newline at end of file +} diff --git a/99 - Miscellaneous/Refactoring/images/Thumbs.db b/99 - Miscellaneous/Refactoring/images/Thumbs.db deleted file mode 100644 index 28337e92..00000000 Binary files a/99 - Miscellaneous/Refactoring/images/Thumbs.db and /dev/null differ diff --git a/99 - Miscellaneous/Refactoring/includes/classes/Session.php b/99 - Miscellaneous/Refactoring/includes/classes/Session.php index 4039352b..b53a181d 100644 --- a/99 - Miscellaneous/Refactoring/includes/classes/Session.php +++ b/99 - Miscellaneous/Refactoring/includes/classes/Session.php @@ -12,7 +12,7 @@ class Session { /** * Instantiates a new Session. * - * @param $store array Store of session data. + * @param array $store Store of session data. */ function __construct(&$store) { @@ -22,7 +22,7 @@ function __construct(&$store) /** * Checks if a value exists in session. * - * @param $key string Key of the session item. + * @param string $key Key of the session item. * @return bool True if item exists, false if otherwise. */ public function has($key) { @@ -32,7 +32,7 @@ public function has($key) { /** * Gets a value from session. * - * @param $key string Key of the session item. + * @param string $key Key of the session item. * @return mixed|null Session item or null if it does not exist. */ public function get($key) { @@ -45,12 +45,12 @@ public function get($key) { /** * Sets a value from session. * - * @param $key string Key of the session item. - * @param $value mixed Value of the session item. + * @param string $key Key of the session item. + * @param mixed $value Value of the session item. * @return Session Fluent interface. */ public function set($key, $value) { $this->_store[$key] = $value; return $this; } -} \ No newline at end of file +} diff --git a/99 - Miscellaneous/Refactoring/includes/closeDB.php b/99 - Miscellaneous/Refactoring/includes/closeDB.php index 27a1d578..00835356 100644 --- a/99 - Miscellaneous/Refactoring/includes/closeDB.php +++ b/99 - Miscellaneous/Refactoring/includes/closeDB.php @@ -1,2 +1,2 @@