Skip to content

Commit

Permalink
New Stable Version
Browse files Browse the repository at this point in the history
  • Loading branch information
Grupo Altum authored and Grupo Altum committed Jul 24, 2023
1 parent e2ee891 commit 68751a9
Show file tree
Hide file tree
Showing 19 changed files with 28 additions and 48 deletions.
35 changes: 16 additions & 19 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,24 +1,21 @@
MIT License

Copyright (c) 2023 RAUL MAURICIO UÑATE CASTRO
Copyright (c) 2023 Raúl Mauricio Uñate Castro

Permission is hereby granted, free of charge, to any person obtaining a copy of this library and associated documentation
files (the "Software"), to deal in the library without restriction, including without limitation the rights to use, copy,
modify, merge, publish, distribute, sublicense, and/or sell copies of the library, and to permit persons to whom the
library is furnished to do so, subject to the following conditions:
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
library.
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

"RAUL MAURICIO UÑATE CASTRO, the copyright holder of this library, must be acknowledged and mentioned in all copies or
derivative works of the library."

Additionally, if modifications are made to the library, an additional notice should be included in the documentation or
other notification means of the changes made, stating:

"This library has been modified from the original library developed by RAUL MAURICIO UÑATE CASTRO."

THE LIBRARY IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
WARRANTIES OF MERCHANTABILITY, 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 LIBRARY OR THE USE OR OTHER DEALINGS IN THE LIBRARY.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
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.
1 change: 0 additions & 1 deletion src/Bases/BasePhp2Js.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ abstract class BasePhp2Js
*/
public function __call($method, $parameters)
{
// Se lanza una excepción indicando que el método llamado no existe en la clase.
throw MethodNotFoundException::create(static::class, $method);
}
}
2 changes: 1 addition & 1 deletion src/Blade/PHP2JSServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class PHP2JSServiceProvider extends ServiceProvider
*/
public function register(): void
{
//....
//...
}

/**
Expand Down
4 changes: 0 additions & 4 deletions src/Constants/Immutable.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@

namespace Rmunate\Php2Js\Constants;

/**
* Class Immutable.
* This class contains constants that define immutable properties of the PHP2JS library.
*/
class Immutable
{
/**
Expand Down
3 changes: 0 additions & 3 deletions src/Data/AgentPhp2Js.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@

class AgentPhp2Js
{
/**
* Propierties Object.
*/
private $agent;

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Data/DataPhp2Js.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ public static function getDataUser()
$data = new UserPhp2Js();

return [
'user' => $data->getDataUser(),
'user' => $data->getDataUser()
];
}
}
2 changes: 1 addition & 1 deletion src/Data/LaravelPhp2Js.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,6 @@ public function getEnvironment(): string
*/
public function getEnvUrl(): string
{
return env('APP_URL', 'Unknown');
return env('APP_URL','Unknown');
}
}
2 changes: 1 addition & 1 deletion src/Data/ServerPhp2Js.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public function getPhpExtensions(): array
*
* @return string
*/
public function getClientLanguage(): string
public function getClientLanguage() : string
{
return $_SERVER['HTTP_ACCEPT_LANGUAGE'] ?? 'Unknown';
}
Expand Down
2 changes: 1 addition & 1 deletion src/Data/TokenPhp2Js.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ public function csrfToken(): string
*/
public function csrfTokenCookie(): string
{
return (isset($_COOKIE['XSRF-TOKEN'])) ? $_COOKIE['XSRF-TOKEN'] : null;
return $_COOKIE['XSRF-TOKEN'] ?? null;
}
}
3 changes: 0 additions & 3 deletions src/Data/UrlPhp2Js.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@

class UrlPhp2Js
{
/**
* Propierties Object.
*/
private $facadeRouteCurrent;
private $serverHTTPx;
private $serverHost;
Expand Down
3 changes: 0 additions & 3 deletions src/Data/UserPhp2Js.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@

class UserPhp2Js
{
/**
* Propierties Object.
*/
private $user;

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Exceptions/MethodNotFoundException.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class MethodNotFoundException extends BadMethodCallException
* @param string $className
* @param string $methodName
*
* @return static
* @return static
*/
public static function create(string $className, string $methodName)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Exceptions/PHP2JSExceptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class PHP2JSExceptions extends Exception
* @param int $code The exception code (optional).
* @param \Throwable $previous The previous exception (optional).
*
* @return static
* @return static
*/
public static function create(string $message, int $code = 0, \Throwable $previous = null)
{
Expand Down
2 changes: 1 addition & 1 deletion src/JS/JS.php
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ public function generate(): string
/**
* @param mixed $idElement
* @param mixed $license
* @param mixed $alias
* @param mixed $alias
*
* @return string
*/
Expand Down
2 changes: 1 addition & 1 deletion src/License/License.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class License
{
/**
* Generate the license comment.
*
*
* @return string
*/
public static function comment(): string
Expand Down
1 change: 1 addition & 0 deletions src/Render.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ class Render extends BasePhp2Js
private $attach;

/**
* Propierties Object
* Determinate Inject JS.
*/
private $injectJS = false;
Expand Down
2 changes: 1 addition & 1 deletion src/Stubs/ScriptJS.stub
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script id="{ID}">

{LICENSE}
{LICENSE}

const {ALIAS} = {JSON};

Expand Down
2 changes: 1 addition & 1 deletion src/Support/Deprecated.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class Deprecated
/**
* Return Script JS
* Support Version 2.X Library.
*
*
* @return string
*/
public static function __PHP(): string
Expand Down
4 changes: 0 additions & 4 deletions src/Traits/JSUtilities.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@

use Rmunate\Php2Js\License\License;

/**
* Trait JSUtilities.
* This trait provides utility methods used by the PHP2JS library for JavaScript generation.
*/
trait JSUtilities
{
/**
Expand Down

0 comments on commit 68751a9

Please sign in to comment.