Skip to content
This repository has been archived by the owner on Feb 21, 2024. It is now read-only.

Commit

Permalink
Renaming to jnsc
Browse files Browse the repository at this point in the history
  • Loading branch information
Hans Erik Jepsen committed Apr 18, 2018
1 parent 4ef2787 commit bb6c68d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Joomla Namespace Checker
# Joomla Namespace Checker (JNSC)
For migrating to Joomla 3.8.x

This script scans a directory recursively for PHP files containing calls to the old classes (e.g. JFactory).
Expand All @@ -9,7 +9,7 @@ This script scans a directory recursively for PHP files containing calls to the
## Usage
Just download the phar file and run the following PHP command:
```
$ php joomlaNamespaceChecker.phar path/to/your/project
$ php jnsc.phar path/to/your/project
```

If any calls are found you will get the following output:
Expand All @@ -30,7 +30,7 @@ Line: 84 | Class found: JFactory | Replace with: Joomla\CMS\Factory
Pass the `--exclude` option to exclude directories and files.

```
$ php joomlaNamespaceChecker.phar --exclude=/somepath/,somefile.php,some/other/path/ path/to/your/project
$ php jnsc.phar --exclude=/somepath/,somefile.php,some/other/path/ path/to/your/project
```

The exclusion is very basic so you might have to tweak the paths a bit, this also means wildcards like * are *not* supported.
Expand Down
4 changes: 2 additions & 2 deletions compiler.php
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<?php

$pharFile = './joomlaNamespaceChecker.phar';
$pharFile = './jnsc.phar';

if (file_exists($pharFile))
{
unlink($pharFile);
}

$phar = new Phar('joomlaNamespaceChecker.phar');
$phar = new Phar('jnsc.phar');
$phar->setSignatureAlgorithm(Phar::SHA1);

$phar->startBuffering();
Expand Down
Binary file renamed joomlaNamespaceChecker.phar → jnsc.phar
Binary file not shown.

0 comments on commit bb6c68d

Please sign in to comment.