Skip to content

Commit

Permalink
various formatting things
Browse files Browse the repository at this point in the history
  • Loading branch information
danielgp committed Apr 5, 2021
1 parent 92a1c98 commit 98aeb7f
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion source/InputOutputArrays.php
Expand Up @@ -66,7 +66,7 @@ protected function setArrayToJsonSafely($inputParameters, $preety = false)
$contentToWrite = json_encode($inputParameters, $encodingFlags);
if ($contentToWrite === false) {
throw new \RuntimeException(sprintf('Unable to encode string into JSON (code %s with message %s)', ''
. json_last_error(), json_last_error_msg()));
. json_last_error(), json_last_error_msg()));
}
return utf8_encode($contentToWrite);
}
Expand Down
3 changes: 1 addition & 2 deletions source/InputOutputFiles.php
Expand Up @@ -28,7 +28,6 @@

trait InputOutputFiles
{

use InputOutputFilePermissions;

public function checkFileExistance($strFilePath, $strFileName)
Expand Down Expand Up @@ -159,7 +158,7 @@ public function openFileSafelyAndReturnHandle($strFileName, $strFileOperationCha
$fHandle = fopen($strFileName, $strFileOperationChar);
if ($fHandle === false) {
throw new \RuntimeException(sprintf('Unable to open file %s for %s purposes!'
. '', $strFileName, $strFileOperationName));
. '', $strFileName, $strFileOperationName));
}
return $fHandle;
}
Expand Down
4 changes: 2 additions & 2 deletions source/InputOutputMemory.php
Expand Up @@ -23,12 +23,12 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/

namespace danielgp\io_operations;

trait InputOutputMemory
{

public function getMemoryUsageString()
{
return '<span style="color:grey!important;font-weight:bold;">['
Expand Down
2 changes: 1 addition & 1 deletion source/InputOutputOperations.php
Expand Up @@ -23,7 +23,7 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/

namespace danielgp\io_operations;

trait InputOutputOperations
Expand Down
1 change: 0 additions & 1 deletion source/InputOutputStrings.php
Expand Up @@ -107,5 +107,4 @@ protected function setTab($intMultiplier = 1)
{
return str_repeat(' ', (4 * $intMultiplier));
}

}
1 change: 0 additions & 1 deletion source/InputOutputTiming.php
Expand Up @@ -28,7 +28,6 @@

trait InputOutputTiming
{

use InputOutputMemory;

public $intTimeCounter = 0;
Expand Down

0 comments on commit 98aeb7f

Please sign in to comment.