Skip to content

Commit

Permalink
Bump to PHP 8.2 (#103)
Browse files Browse the repository at this point in the history
  • Loading branch information
z-glitch authored Jun 25, 2023
1 parent 3c87be0 commit 23d6560
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 9 deletions.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
.git
Dockerfile
builds
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM php:7.4-apache
FROM php:8.2-apache
MAINTAINER Julian Xhokaxhiu <info at julianxhokaxhiu dot com>

# internal variables
Expand Down Expand Up @@ -52,4 +52,4 @@ RUN chmod -R 0775 /var/www/html \
&& chown -R www-data:www-data /var/www/html

# create volumes
VOLUME $FULL_BUILDS_DIR
VOLUME $FULL_BUILDS_DIR
2 changes: 1 addition & 1 deletion src/Helpers/Build.php
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ protected function _getChannel( $token, $type, $version ) {
* @param string $fileName The name of the file
* @return string The absolute URL for the file to be downloaded
*/
protected function _getUrl( $fileName = '', $basePath ) {
protected function _getUrl( $fileName, $basePath ) {
$prop = $this->getBuildPropValue( 'ro.build.ota.url' );

if( !empty( $prop ) )
Expand Down
4 changes: 2 additions & 2 deletions views/ota-list-columns.twig
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@
<td>{% set filename = build['filename'] %}{{ formatedFileSizes[filename] }}</td>

{% if build['url'] matches '/github\.com/' %}
<td><a href="' . {{ branding['GithubURL'] }}">Github</a></td>
<td><a href="{{ branding['GithubURL'] }}">Github</a></td>
{% else %}
<td><a href="' . {{ branding['LocalURL'] }}">local</a></td>
<td><a href="{{ branding['LocalURL'] }}">local</a></td>
{% endif %}

<td>{{ build['timestamp'] | date('Y/m/d') }}</td>
Expand Down
4 changes: 2 additions & 2 deletions views/ota-list-javascript.twig
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@
<td><a href="{{ build['url'] }}">{{ build['filename'] }}</a><br>[md5sum: {{ build['md5sum'] }}]</td>
<td>{% set filename = build['filename'] %}{{ formatedFileSizes[filename] }}</td>
{% if build['url'] matches '/github\.com/' %}
<td><a href="' . {{ branding['GithubURL'] }}">Github</a></td>
<td><a href="{{ branding['GithubURL'] }}">Github</a></td>
{% else %}
<td><a href="' . {{ branding['LocalURL'] }}">local</a></td>
<td><a href="{{ branding['LocalURL'] }}">local</a></td>
{% endif %}
<td>{{ build['timestamp'] | date('Y/m/d') }}</td>
</tr>
Expand Down
4 changes: 2 additions & 2 deletions views/ota-list-tables.twig
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@
<td>{% set filename = build['filename'] %}{{ formatedFileSizes[filename] }}</td>

{% if build['url'] matches '/github\.com/' %}
<td><a href="' . {{ branding['GithubURL'] }}">Github</a></td>
<td><a href="{{ branding['GithubURL'] }}">Github</a></td>
{% else %}
<td><a href="' . {{ branding['LocalURL'] }}">local</a></td>
<td><a href="{{ branding['LocalURL'] }}">local</a></td>
{% endif %}

<td>{{ build['timestamp'] | date('Y/m/d') }}</td>
Expand Down

0 comments on commit 23d6560

Please sign in to comment.