mirror of
https://github.com/codeigniter4/CodeIgniter4.git
synced 2025-02-20 11:44:28 +08:00
Ensure empty lines at ends of files.
This commit is contained in:
parent
2dbdf08ead
commit
47e5f963e1
@ -27,4 +27,4 @@ Simply calling this will run the entire test suite.
|
||||
### Checking Code Coverage
|
||||
Code Coverage requires that XDebug is also install and running in your current PHP setup. The following command will run coverage, provide a coverage report on screen, in a text file (coverage.txt) and within the /coverage directory.
|
||||
|
||||
$ phpunit --colors --coverage-text=coverage.txt --coverage-html=coverage/
|
||||
$ phpunit --colors --coverage-text=coverage.txt --coverage-html=coverage/
|
||||
|
@ -3,4 +3,4 @@
|
||||
</IfModule>
|
||||
<IfModule !authz_core_module>
|
||||
Deny from all
|
||||
</IfModule>
|
||||
</IfModule>
|
||||
|
@ -17,4 +17,4 @@ use CodeIgniter\Hooks\Hooks;
|
||||
*
|
||||
* Example:
|
||||
* Hooks::on('create', [$myInstance, 'myMethod']);
|
||||
*/
|
||||
*/
|
||||
|
@ -327,4 +327,4 @@ class Mimes
|
||||
//--------------------------------------------------------------------
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -10,4 +10,4 @@ class Home extends \CodeIgniter\Controller {
|
||||
|
||||
//--------------------------------------------------------------------
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -5,4 +5,4 @@ echo "\nERROR: ",
|
||||
$heading,
|
||||
"\n\n",
|
||||
$message,
|
||||
"\n\n";
|
||||
"\n\n";
|
||||
|
@ -83,4 +83,4 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
|
@ -380,4 +380,4 @@
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
|
@ -22,4 +22,4 @@
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
</html>
|
||||
|
@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
THE SOFTWARE.
|
||||
|
@ -18,4 +18,4 @@
|
||||
<errors>./api/{DATE}.errors.log</errors>
|
||||
</paths>
|
||||
</logging>
|
||||
</phpdoc>
|
||||
</phpdoc>
|
||||
|
@ -27,4 +27,4 @@
|
||||
</exclude>
|
||||
</whitelist>
|
||||
</filter>
|
||||
</phpunit>
|
||||
</phpunit>
|
||||
|
@ -3,4 +3,4 @@
|
||||
</IfModule>
|
||||
<IfModule !authz_core_module>
|
||||
Deny from all
|
||||
</IfModule>
|
||||
</IfModule>
|
||||
|
@ -366,7 +366,7 @@ class CLI
|
||||
/**
|
||||
* if operating system === windows
|
||||
*/
|
||||
public static function is_windows()
|
||||
public static function isWindows()
|
||||
{
|
||||
return 'win' === strtolower(substr(php_uname("s"), 0, 3));
|
||||
}
|
||||
@ -396,9 +396,9 @@ class CLI
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public static function clear_screen()
|
||||
public static function clearScreen()
|
||||
{
|
||||
static::is_windows()
|
||||
static::isWindows()
|
||||
|
||||
// Windows is a bit crap at this, but their terminal is tiny so shove this in
|
||||
? static::newLine(40)
|
||||
@ -422,7 +422,7 @@ class CLI
|
||||
*/
|
||||
public static function color(string $text, string $foreground, string $background = null, string $format = null)
|
||||
{
|
||||
if (static::is_windows() && ! isset($_SERVER['ANSICON']))
|
||||
if (static::isWindows() && ! isset($_SERVER['ANSICON']))
|
||||
{
|
||||
return $text;
|
||||
}
|
||||
@ -467,7 +467,7 @@ class CLI
|
||||
*/
|
||||
public static function getWidth(int $default = 80): int
|
||||
{
|
||||
if (static::is_windows())
|
||||
if (static::isWindows())
|
||||
{
|
||||
return $default;
|
||||
}
|
||||
@ -488,7 +488,7 @@ class CLI
|
||||
*/
|
||||
public static function getHeight(int $default = 32): int
|
||||
{
|
||||
if (static::is_windows())
|
||||
if (static::isWindows())
|
||||
{
|
||||
return $default;
|
||||
}
|
||||
|
@ -60,4 +60,4 @@ Style Guideline
|
||||
***************
|
||||
|
||||
Please refer to source/documentation/index.rst for general guidelines for
|
||||
using Sphinx to document CodeIgniter.
|
||||
using Sphinx to document CodeIgniter.
|
||||
|
@ -20,4 +20,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
THE SOFTWARE.
|
||||
|
2
writable/cache/.htaccess
vendored
2
writable/cache/.htaccess
vendored
@ -3,4 +3,4 @@
|
||||
</IfModule>
|
||||
<IfModule !authz_core_module>
|
||||
Deny from all
|
||||
</IfModule>
|
||||
</IfModule>
|
||||
|
Loading…
x
Reference in New Issue
Block a user